Instructions to use nvidia/MambaVision-B-1K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/MambaVision-B-1K with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="nvidia/MambaVision-B-1K", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("nvidia/MambaVision-B-1K", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -82,7 +82,7 @@ predicted_class_idx = logits.argmax(-1).item()
|
|
| 82 |
print("Predicted class:", model.config.id2label[predicted_class_idx])
|
| 83 |
```
|
| 84 |
|
| 85 |
-
The predicted label is brown bear, bruin, Ursus arctos.
|
| 86 |
|
| 87 |
### Feature Extraction
|
| 88 |
|
|
|
|
| 82 |
print("Predicted class:", model.config.id2label[predicted_class_idx])
|
| 83 |
```
|
| 84 |
|
| 85 |
+
The predicted label is ```brown bear, bruin, Ursus arctos.```
|
| 86 |
|
| 87 |
### Feature Extraction
|
| 88 |
|