Instructions to use Zetatech/pvt-small-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zetatech/pvt-small-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Zetatech/pvt-small-224") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Zetatech/pvt-small-224") model = AutoModelForImageClassification.from_pretrained("Zetatech/pvt-small-224") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,7 +38,7 @@ fine-tuned versions on a task that interests you.
|
|
| 38 |
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
|
| 39 |
|
| 40 |
```python
|
| 41 |
-
from transformers import
|
| 42 |
from PIL import Image
|
| 43 |
import requests
|
| 44 |
|
|
|
|
| 38 |
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
|
| 39 |
|
| 40 |
```python
|
| 41 |
+
from transformers import PvtImageProcessor, PvtForImageClassification
|
| 42 |
from PIL import Image
|
| 43 |
import requests
|
| 44 |
|