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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nobg
/
sam3-finetuned

Image Segmentation
nobg
Safetensors
model_hub_mixin
nobg-sam3
pytorch_model_hub_mixin
background-removal
image-matting
lora
Model card Files Files and versions
xet
Community

Instructions to use nobg/sam3-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • nobg

    How to use nobg/sam3-finetuned with nobg:

    pip install nobg
    import torch
    from loadimg import load_img
    from nobg import AutoModel, AutoProcessor
    
    model = AutoModel.from_pretrained("nobg/sam3-finetuned").eval()
    processor = AutoProcessor.from_pretrained("nobg/sam3-finetuned")
    
    image = load_img("input.jpg").convert("RGB")
    inputs = processor(image, return_tensors="pt")
    
    with torch.no_grad():
        outputs = model(pixel_values=inputs["pixel_values"])
    
    alpha = processor.post_process_alpha_matting(outputs, target_sizes=[(image.height, image.width)])[0]
    processor.cutout(image, alpha).save("output.png")
  • Notebooks
  • Google Colab
  • Kaggle
sam3-finetuned
3.44 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
not-lain's picture
not-lain
Add full-length eval report sam3_eval_after_full.md.json
d387b87 verified 1 day ago
  • adapter
    Add unmerged LoRA adapter (r=16) 1 day ago
  • eval
    Add full-length eval report sam3_eval_after_full.md.json 1 day ago
  • .gitattributes
    1.52 kB
    initial commit 1 day ago
  • README.md
    9.95 kB
    Rescore over complete test splits (8006 images, no subsampling) 1 day ago
  • config.json
    925 Bytes
    Add merged SAM3 LoRA fine-tune (7000 steps, 19310-image mix) 1 day ago
  • model.safetensors
    3.36 GB
    xet
    Add merged SAM3 LoRA fine-tune (7000 steps, 19310-image mix) 1 day ago
  • processor_config.json
    664 Bytes
    Add merged SAM3 LoRA fine-tune (7000 steps, 19310-image mix) 1 day ago
  • tokenizer.json
    3.64 MB
    Add merged SAM3 LoRA fine-tune (7000 steps, 19310-image mix) 1 day ago
  • tokenizer_config.json
    450 Bytes
    Add merged SAM3 LoRA fine-tune (7000 steps, 19310-image mix) 1 day ago