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
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("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
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ Blog : [feynobg blogpost](https://usefeyn.com/blog/feynobg/) [HF blogpost](https
|
|
| 21 |
|
| 22 |
## how to use the model
|
| 23 |
```
|
| 24 |
-
pip install nobg
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|
|
|
|
| 21 |
|
| 22 |
## how to use the model
|
| 23 |
```
|
| 24 |
+
pip install nobg>=0.2.5
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|