Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

lygitdata
/
BiRefNet_garmentiq_backup

Image Segmentation
BiRefNet
Safetensors
Transformers
Transformers.js
background-removal
mask-generation
Dichotomous Image Segmentation
Camouflaged Object Detection
Salient Object Detection
pytorch_model_hub_mixin
model_hub_mixin
custom_code
Model card Files Files and versions
xet
Community

Instructions to use lygitdata/BiRefNet_garmentiq_backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • BiRefNet

    How to use lygitdata/BiRefNet_garmentiq_backup with BiRefNet:

    # Option 1: use with transformers
    
    from transformers import AutoModelForImageSegmentation
    birefnet = AutoModelForImageSegmentation.from_pretrained("lygitdata/BiRefNet_garmentiq_backup", trust_remote_code=True)
    
    # Option 2: use with BiRefNet
    
    # Install from https://github.com/ZhengPeng7/BiRefNet
    
    from models.birefnet import BiRefNet
    model = BiRefNet.from_pretrained("lygitdata/BiRefNet_garmentiq_backup")
  • Transformers

    How to use lygitdata/BiRefNet_garmentiq_backup with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="lygitdata/BiRefNet_garmentiq_backup", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForImageSegmentation
    model = AutoModelForImageSegmentation.from_pretrained("lygitdata/BiRefNet_garmentiq_backup", trust_remote_code=True, dtype="auto")
  • Transformers.js

    How to use lygitdata/BiRefNet_garmentiq_backup with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'lygitdata/BiRefNet_garmentiq_backup');
  • Notebooks
  • Google Colab
  • Kaggle
BiRefNet_garmentiq_backup
445 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
lygitdata's picture
lygitdata
Upload 9 files
5f1a10e verified 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • BiRefNet_config.py
    298 Bytes
    Upload 9 files 11 months ago
  • README.md
    9.98 kB
    Upload 9 files 11 months ago
  • birefnet.py
    92.1 kB
    Upload 9 files 11 months ago
  • config.json
    405 Bytes
    Upload 9 files 11 months ago
  • gitattributes
    1.52 kB
    Upload 9 files 11 months ago
  • gitignore
    1.91 kB
    Upload 9 files 11 months ago
  • handler.py
    4.76 kB
    Upload 9 files 11 months ago
  • model.safetensors
    444 MB
    xet
    Upload 9 files 11 months ago
  • requirements.txt
    149 Bytes
    Upload 9 files 11 months ago