Instructions to use RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea") model = AutoModelForZeroShotImageClassification.from_pretrained("RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea") - Notebooks
- Google Colab
- Kaggle
docs: update usage model id namespace
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ tags: []
|
|
| 27 |
```python
|
| 28 |
from transformers import AutoModel, AutoProcessor
|
| 29 |
|
| 30 |
-
model_id = "
|
| 31 |
model = AutoModel.from_pretrained(model_id)
|
| 32 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 33 |
```
|
|
|
|
| 27 |
```python
|
| 28 |
from transformers import AutoModel, AutoProcessor
|
| 29 |
|
| 30 |
+
model_id = "RISys-Lab/ReasonSigLIP2-So14-384-S0-Rea"
|
| 31 |
model = AutoModel.from_pretrained(model_id)
|
| 32 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 33 |
```
|