Instructions to use Zetatech/pvt-medium-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zetatech/pvt-medium-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Zetatech/pvt-medium-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-medium-224") model = AutoModelForImageClassification.from_pretrained("Zetatech/pvt-medium-224") - Notebooks
- Google Colab
- Kaggle
Create preprocessor_config.json
Browse files- preprocessor_config.json +15 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_resize": true,
|
| 4 |
+
"image_mean": [
|
| 5 |
+
0.485,
|
| 6 |
+
0.456,
|
| 7 |
+
0.406
|
| 8 |
+
],
|
| 9 |
+
"image_std": [
|
| 10 |
+
0.229,
|
| 11 |
+
0.224,
|
| 12 |
+
0.225
|
| 13 |
+
],
|
| 14 |
+
"size": 224
|
| 15 |
+
}
|