Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use goodcasper/vit_itri_2class_downsample with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use goodcasper/vit_itri_2class_downsample with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="goodcasper/vit_itri_2class_downsample") 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("goodcasper/vit_itri_2class_downsample") model = AutoModelForImageClassification.from_pretrained("goodcasper/vit_itri_2class_downsample") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +100 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/vit-large-patch16-224
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
- precision
|
| 12 |
+
- recall
|
| 13 |
+
- f1
|
| 14 |
+
model-index:
|
| 15 |
+
- name: vit_itri_2class_downsample
|
| 16 |
+
results:
|
| 17 |
+
- task:
|
| 18 |
+
name: Image Classification
|
| 19 |
+
type: image-classification
|
| 20 |
+
dataset:
|
| 21 |
+
name: imagefolder
|
| 22 |
+
type: imagefolder
|
| 23 |
+
config: default
|
| 24 |
+
split: test
|
| 25 |
+
args: default
|
| 26 |
+
metrics:
|
| 27 |
+
- name: Accuracy
|
| 28 |
+
type: accuracy
|
| 29 |
+
value: 0.8977272727272727
|
| 30 |
+
- name: Precision
|
| 31 |
+
type: precision
|
| 32 |
+
value: 0.9210261342224775
|
| 33 |
+
- name: Recall
|
| 34 |
+
type: recall
|
| 35 |
+
value: 0.8977272727272727
|
| 36 |
+
- name: F1
|
| 37 |
+
type: f1
|
| 38 |
+
value: 0.9067029271654793
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 42 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 43 |
+
|
| 44 |
+
# vit_itri_2class_downsample
|
| 45 |
+
|
| 46 |
+
This model is a fine-tuned version of [google/vit-large-patch16-224](https://huggingface.co/google/vit-large-patch16-224) on the imagefolder dataset.
|
| 47 |
+
It achieves the following results on the evaluation set:
|
| 48 |
+
- Loss: 0.0067
|
| 49 |
+
- Accuracy: 0.8977
|
| 50 |
+
- Precision: 0.9210
|
| 51 |
+
- Recall: 0.8977
|
| 52 |
+
- F1: 0.9067
|
| 53 |
+
|
| 54 |
+
## Model description
|
| 55 |
+
|
| 56 |
+
More information needed
|
| 57 |
+
|
| 58 |
+
## Intended uses & limitations
|
| 59 |
+
|
| 60 |
+
More information needed
|
| 61 |
+
|
| 62 |
+
## Training and evaluation data
|
| 63 |
+
|
| 64 |
+
More information needed
|
| 65 |
+
|
| 66 |
+
## Training procedure
|
| 67 |
+
|
| 68 |
+
### Training hyperparameters
|
| 69 |
+
|
| 70 |
+
The following hyperparameters were used during training:
|
| 71 |
+
- learning_rate: 0.0001
|
| 72 |
+
- train_batch_size: 24
|
| 73 |
+
- eval_batch_size: 4
|
| 74 |
+
- seed: 42
|
| 75 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 76 |
+
- lr_scheduler_type: linear
|
| 77 |
+
- num_epochs: 10
|
| 78 |
+
|
| 79 |
+
### Training results
|
| 80 |
+
|
| 81 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
| 82 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
| 83 |
+
| 0.0067 | 1.0 | 197 | 0.0019 | 0.8628 | 0.9198 | 0.8628 | 0.8826 |
|
| 84 |
+
| 0.0005 | 2.0 | 394 | 0.0013 | 0.9040 | 0.9025 | 0.9040 | 0.9032 |
|
| 85 |
+
| 0.0005 | 3.0 | 591 | 0.0016 | 0.9191 | 0.9054 | 0.9191 | 0.8959 |
|
| 86 |
+
| 0.0005 | 4.0 | 788 | 0.0021 | 0.8679 | 0.9180 | 0.8679 | 0.8858 |
|
| 87 |
+
| 0.0001 | 5.0 | 985 | 0.0033 | 0.9102 | 0.9187 | 0.9102 | 0.9139 |
|
| 88 |
+
| 0.0001 | 6.0 | 1182 | 0.0025 | 0.9151 | 0.9254 | 0.9151 | 0.9194 |
|
| 89 |
+
| 0.0 | 7.0 | 1379 | 0.0038 | 0.8945 | 0.9218 | 0.8945 | 0.9048 |
|
| 90 |
+
| 0.0 | 8.0 | 1576 | 0.0048 | 0.9090 | 0.9255 | 0.9090 | 0.9155 |
|
| 91 |
+
| 0.0 | 9.0 | 1773 | 0.0066 | 0.8917 | 0.9198 | 0.8917 | 0.9024 |
|
| 92 |
+
| 0.0 | 10.0 | 1970 | 0.0067 | 0.8977 | 0.9210 | 0.8977 | 0.9067 |
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
### Framework versions
|
| 96 |
+
|
| 97 |
+
- Transformers 4.53.0.dev0
|
| 98 |
+
- Pytorch 2.7.1+cu126
|
| 99 |
+
- Datasets 3.6.0
|
| 100 |
+
- Tokenizers 0.21.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1213261264
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8b21622ac8dd050129b3949fe97744af5f26fa36adcad6e5c5912ac45bbf906
|
| 3 |
size 1213261264
|