Instructions to use nateraw/vit-age-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nateraw/vit-age-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="nateraw/vit-age-classifier") 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("nateraw/vit-age-classifier") model = AutoModelForImageClassification.from_pretrained("nateraw/vit-age-classifier", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
b3bbed0
1
Parent(s): 3da95f8
:sparkles: add preprocessor config
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.5,
|
| 6 |
+
0.5,
|
| 7 |
+
0.5
|
| 8 |
+
],
|
| 9 |
+
"image_std": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"size": 224
|
| 15 |
+
}
|