Instructions to use Modotte/AIRealNet-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Modotte/AIRealNet-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Modotte/AIRealNet-2") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Modotte/AIRealNet-2") model = AutoModelForImageClassification.from_pretrained("Modotte/AIRealNet-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update to new model
Browse files
README.md
CHANGED
|
@@ -100,7 +100,7 @@ pip install -U transformers
|
|
| 100 |
```python
|
| 101 |
from transformers import pipeline
|
| 102 |
|
| 103 |
-
pipe = pipeline("image-classification", model="Modotte/AIRealNet")
|
| 104 |
pipe("https://cdn-uploads.huggingface.co/production/uploads/677fcdf29b9a9863eba3f29f/rYzxmRIFgqg2_EfEFRi89.jpeg")# example image
|
| 105 |
```
|
| 106 |
# Demo
|
|
|
|
| 100 |
```python
|
| 101 |
from transformers import pipeline
|
| 102 |
|
| 103 |
+
pipe = pipeline("image-classification", model="Modotte/AIRealNet-2")
|
| 104 |
pipe("https://cdn-uploads.huggingface.co/production/uploads/677fcdf29b9a9863eba3f29f/rYzxmRIFgqg2_EfEFRi89.jpeg")# example image
|
| 105 |
```
|
| 106 |
# Demo
|