Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use dacunaq/vit-base-patch32-384-finetuned-humid-classes-31 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dacunaq/vit-base-patch32-384-finetuned-humid-classes-31 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dacunaq/vit-base-patch32-384-finetuned-humid-classes-31") 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("dacunaq/vit-base-patch32-384-finetuned-humid-classes-31") model = AutoModelForImageClassification.from_pretrained("dacunaq/vit-base-patch32-384-finetuned-humid-classes-31", device_map="auto") - Notebooks
- Google Colab
- Kaggle
vit-base-patch32-384-finetuned-humid-classes-31
This model is a fine-tuned version of google/vit-base-patch32-384 on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 0.0597
- Accuracy: 1.0
- F1 Macro: 1.0
- Precision Macro: 1.0
- Recall Macro: 1.0
- Precision Dry: 1.0
- Recall Dry: 1.0
- F1 Dry: 1.0
- Precision Firm: 1.0
- Recall Firm: 1.0
- F1 Firm: 1.0
- Precision Humid: 1.0
- Recall Humid: 1.0
- F1 Humid: 1.0
- Precision Lump: 1.0
- Recall Lump: 1.0
- F1 Lump: 1.0
- Precision Moist: 1.0
- Recall Moist: 1.0
- F1 Moist: 1.0
- Precision Rockies: 1.0
- Recall Rockies: 1.0
- F1 Rockies: 1.0
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 50
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Precision Macro | Recall Macro | Precision Dry | Recall Dry | F1 Dry | Precision Firm | Recall Firm | F1 Firm | Precision Humid | Recall Humid | F1 Humid | Precision Lump | Recall Lump | F1 Lump | Precision Moist | Recall Moist | F1 Moist | Precision Rockies | Recall Rockies | F1 Rockies |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 3 | 1.8441 | 0.2564 | 0.1375 | 0.0900 | 0.3056 | 0.3125 | 0.8333 | 0.4545 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.2273 | 1.0 | 0.3704 |
| No log | 2.0 | 6 | 1.5090 | 0.4615 | 0.3686 | 0.3476 | 0.4331 | 0.0 | 0.0 | 0.0 | 0.6667 | 0.7273 | 0.6957 | 0.4444 | 0.5714 | 0.5 | 0.0 | 0.0 | 0.0 | 0.6667 | 0.5 | 0.5714 | 0.3077 | 0.8 | 0.4444 |
| No log | 3.0 | 9 | 1.2395 | 0.5128 | 0.3249 | 0.2720 | 0.4524 | 0.0 | 0.0 | 0.0 | 0.8462 | 1.0 | 0.9167 | 0.5 | 0.7143 | 0.5882 | 0.0 | 0.0 | 0.0 | 0.2857 | 1.0 | 0.4444 | 0.0 | 0.0 | 0.0 |
| 1.6428 | 4.0 | 12 | 0.8632 | 0.8974 | 0.8666 | 0.8958 | 0.8639 | 1.0 | 0.8333 | 0.9091 | 1.0 | 1.0 | 1.0 | 0.875 | 1.0 | 0.9333 | 0.75 | 1.0 | 0.8571 | 0.75 | 0.75 | 0.75 | 1.0 | 0.6 | 0.75 |
| 1.6428 | 5.0 | 15 | 0.5889 | 0.9231 | 0.9134 | 0.9500 | 0.9028 | 1.0 | 1.0 | 1.0 | 1.0 | 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| 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.0
- Downloads last month
- -
Model tree for dacunaq/vit-base-patch32-384-finetuned-humid-classes-31
Base model
google/vit-base-patch32-384Evaluation results
- Accuracy on imagefoldervalidation set self-reported1.000