Instructions to use feyninc/FeyNobg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- nobg
How to use feyninc/FeyNobg with nobg:
pip install nobg
# Option 1: use via the predict method from nobg import AutoModel, AutoProcessor model = AutoModel.from_pretrained("feyninc/FeyNobg").eval() processor = AutoProcessor.from_pretrained("feyninc/FeyNobg") cutout = model.predict(processor, "image.jpg")# Option 2: use the model and processor directly import torch from loadimg import load_img from nobg import AutoModel, AutoProcessor model = AutoModel.from_pretrained("feyninc/FeyNobg").eval() processor = AutoProcessor.from_pretrained("feyninc/FeyNobg") image = load_img("image.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
Download model.safetensors from feyninc/FeyNobg: direct link, hf CLI and curl.
- Browser
- Download file 1.05 GB
-
https://huggingface.co/feyninc/FeyNobg/resolve/main/model.safetensors
- Command line
-
hf download hf://feyninc/FeyNobg/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/feyninc/FeyNobg/resolve/main/model.safetensors
1.05 GB
- Xet hash:
- 3994bf64df5edcbc626835e081fbfa6cd54858effc4460eb9e2bb8287d857982
- Size of remote file:
- 1.05 GB
- SHA256:
- 7ee181389acf07c6dcf3d72caba2d169224caacdde8bb837ecf7aa3e22e0c3aa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.