Image Classification
Transformers
PyTorch
Core ML
ONNX
Safetensors
convnext
Generated from Trainer
Eval Results (legacy)
Instructions to use flyswot/convnext-tiny-224_flyswot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flyswot/convnext-tiny-224_flyswot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="flyswot/convnext-tiny-224_flyswot") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("flyswot/convnext-tiny-224_flyswot") model = AutoModelForImageClassification.from_pretrained("flyswot/convnext-tiny-224_flyswot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
70a6103
1
Parent(s): 9b84c86
Upload processor (#4)
Browse files- Upload processor (1ce5ba480e02c3a5d178c1d201988c820a7d3714)
- preprocessor_config.json +6 -1
preprocessor_config.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"crop_pct": 0.875,
|
| 3 |
"do_normalize": true,
|
|
|
|
| 4 |
"do_resize": true,
|
| 5 |
"feature_extractor_type": "ConvNextFeatureExtractor",
|
| 6 |
"image_mean": [
|
|
@@ -8,11 +9,15 @@
|
|
| 8 |
0.456,
|
| 9 |
0.406
|
| 10 |
],
|
|
|
|
| 11 |
"image_std": [
|
| 12 |
0.229,
|
| 13 |
0.224,
|
| 14 |
0.225
|
| 15 |
],
|
| 16 |
"resample": 3,
|
| 17 |
-
"
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"crop_pct": 0.875,
|
| 3 |
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
"do_resize": true,
|
| 6 |
"feature_extractor_type": "ConvNextFeatureExtractor",
|
| 7 |
"image_mean": [
|
|
|
|
| 9 |
0.456,
|
| 10 |
0.406
|
| 11 |
],
|
| 12 |
+
"image_processor_type": "ConvNextImageProcessor",
|
| 13 |
"image_std": [
|
| 14 |
0.229,
|
| 15 |
0.224,
|
| 16 |
0.225
|
| 17 |
],
|
| 18 |
"resample": 3,
|
| 19 |
+
"rescale_factor": 0.00392156862745098,
|
| 20 |
+
"size": {
|
| 21 |
+
"shortest_edge": 224
|
| 22 |
+
}
|
| 23 |
}
|