Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

studioludens
/
birefnet-lite-512

Image Segmentation
Transformers.js
ONNX
BiRefNet
swin
background-removal
matting
webgpu
alpha-matting
image-matting
foreground-extraction
salient-object-detection
dichotomous-image-segmentation
client-side
transformers-js
fp16
Model card Files Files and versions
xet
Community

Instructions to use studioludens/birefnet-lite-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers.js

    How to use studioludens/birefnet-lite-512 with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'studioludens/birefnet-lite-512');
  • BiRefNet

    How to use studioludens/birefnet-lite-512 with BiRefNet:

    # Option 1: use with transformers
    
    from transformers import AutoModelForImageSegmentation
    birefnet = AutoModelForImageSegmentation.from_pretrained("studioludens/birefnet-lite-512", 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("studioludens/birefnet-lite-512")
  • Notebooks
  • Google Colab
  • Kaggle
birefnet-lite-512
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
alexludens's picture
alexludens
Improve discoverability: expanded tags, datasets, quickstart + comparison table
4a3c40c verified about 1 month ago
  • onnx
    Upload folder using huggingface_hub about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    8.29 kB
    Improve discoverability: expanded tags, datasets, quickstart + comparison table about 1 month ago
  • config.json
    81 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • preprocessor_config.json
    389 Bytes
    Upload folder using huggingface_hub about 1 month ago