Instructions to use nqvii/vit_fold_3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nqvii/vit_fold_3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="nqvii/vit_fold_3") 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("nqvii/vit_fold_3") model = AutoModelForImageClassification.from_pretrained("nqvii/vit_fold_3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training Fold 3
Browse files- README.md +127 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/vit-base-patch16-224
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
- recall
|
| 12 |
+
model-index:
|
| 13 |
+
- name: vit_fold_3
|
| 14 |
+
results:
|
| 15 |
+
- task:
|
| 16 |
+
name: Image Classification
|
| 17 |
+
type: image-classification
|
| 18 |
+
dataset:
|
| 19 |
+
name: imagefolder
|
| 20 |
+
type: imagefolder
|
| 21 |
+
config: default
|
| 22 |
+
split: None
|
| 23 |
+
args: default
|
| 24 |
+
metrics:
|
| 25 |
+
- name: Accuracy
|
| 26 |
+
type: accuracy
|
| 27 |
+
value: 0.9827586206896551
|
| 28 |
+
- name: Recall
|
| 29 |
+
type: recall
|
| 30 |
+
value: 0.9840639240770935
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 34 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 35 |
+
|
| 36 |
+
# vit_fold_3
|
| 37 |
+
|
| 38 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
|
| 39 |
+
It achieves the following results on the evaluation set:
|
| 40 |
+
- Loss: 1.0572
|
| 41 |
+
- Accuracy: 0.9828
|
| 42 |
+
- F1 Score: 0.9840
|
| 43 |
+
- Recall: 0.9841
|
| 44 |
+
|
| 45 |
+
## Model description
|
| 46 |
+
|
| 47 |
+
More information needed
|
| 48 |
+
|
| 49 |
+
## Intended uses & limitations
|
| 50 |
+
|
| 51 |
+
More information needed
|
| 52 |
+
|
| 53 |
+
## Training and evaluation data
|
| 54 |
+
|
| 55 |
+
More information needed
|
| 56 |
+
|
| 57 |
+
## Training procedure
|
| 58 |
+
|
| 59 |
+
### Training hyperparameters
|
| 60 |
+
|
| 61 |
+
The following hyperparameters were used during training:
|
| 62 |
+
- learning_rate: 1e-05
|
| 63 |
+
- train_batch_size: 64
|
| 64 |
+
- eval_batch_size: 64
|
| 65 |
+
- seed: 42
|
| 66 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 67 |
+
- lr_scheduler_type: cosine
|
| 68 |
+
- lr_scheduler_warmup_steps: 150
|
| 69 |
+
- num_epochs: 100
|
| 70 |
+
- label_smoothing_factor: 0.15
|
| 71 |
+
|
| 72 |
+
### Training results
|
| 73 |
+
|
| 74 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score | Recall |
|
| 75 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:------:|
|
| 76 |
+
| 2.9536 | 1.0 | 19 | 2.9528 | 0.3 | 0.2473 | 0.3174 |
|
| 77 |
+
| 2.7882 | 2.0 | 38 | 2.6926 | 0.3690 | 0.3570 | 0.3867 |
|
| 78 |
+
| 2.4219 | 3.0 | 57 | 2.3561 | 0.5793 | 0.5998 | 0.5921 |
|
| 79 |
+
| 2.0092 | 4.0 | 76 | 1.9862 | 0.7586 | 0.7827 | 0.7875 |
|
| 80 |
+
| 1.6129 | 5.0 | 95 | 1.6200 | 0.8724 | 0.8863 | 0.8884 |
|
| 81 |
+
| 1.3723 | 6.0 | 114 | 1.3893 | 0.9138 | 0.9220 | 0.9240 |
|
| 82 |
+
| 1.2462 | 7.0 | 133 | 1.2759 | 0.9276 | 0.9335 | 0.9325 |
|
| 83 |
+
| 1.1739 | 8.0 | 152 | 1.2234 | 0.9379 | 0.9427 | 0.9411 |
|
| 84 |
+
| 1.1189 | 9.0 | 171 | 1.1838 | 0.9448 | 0.9486 | 0.9460 |
|
| 85 |
+
| 1.1044 | 10.0 | 190 | 1.1554 | 0.9517 | 0.9557 | 0.9545 |
|
| 86 |
+
| 1.0877 | 11.0 | 209 | 1.1483 | 0.9483 | 0.9529 | 0.9533 |
|
| 87 |
+
| 1.0598 | 12.0 | 228 | 1.1355 | 0.9552 | 0.9591 | 0.9595 |
|
| 88 |
+
| 1.0458 | 13.0 | 247 | 1.1253 | 0.9586 | 0.9624 | 0.9645 |
|
| 89 |
+
| 1.0242 | 14.0 | 266 | 1.0983 | 0.9724 | 0.9742 | 0.9730 |
|
| 90 |
+
| 1.0151 | 15.0 | 285 | 1.0982 | 0.9621 | 0.9644 | 0.9606 |
|
| 91 |
+
| 1.0158 | 16.0 | 304 | 1.0982 | 0.9621 | 0.9656 | 0.9682 |
|
| 92 |
+
| 1.0131 | 17.0 | 323 | 1.0913 | 0.9655 | 0.9685 | 0.9707 |
|
| 93 |
+
| 1.0065 | 18.0 | 342 | 1.0878 | 0.9655 | 0.9685 | 0.9707 |
|
| 94 |
+
| 0.9920 | 19.0 | 361 | 1.0783 | 0.9690 | 0.9708 | 0.9680 |
|
| 95 |
+
| 0.9799 | 20.0 | 380 | 1.0697 | 0.9793 | 0.9808 | 0.9791 |
|
| 96 |
+
| 0.9830 | 21.0 | 399 | 1.0664 | 0.9793 | 0.9808 | 0.9791 |
|
| 97 |
+
| 0.9798 | 22.0 | 418 | 1.0630 | 0.9793 | 0.9810 | 0.9816 |
|
| 98 |
+
| 0.9896 | 23.0 | 437 | 1.0678 | 0.9724 | 0.9750 | 0.9767 |
|
| 99 |
+
| 0.9769 | 24.0 | 456 | 1.0585 | 0.9793 | 0.9809 | 0.9803 |
|
| 100 |
+
| 0.9736 | 25.0 | 475 | 1.0572 | 0.9828 | 0.9840 | 0.9841 |
|
| 101 |
+
| 0.9697 | 26.0 | 494 | 1.0557 | 0.9793 | 0.9809 | 0.9803 |
|
| 102 |
+
| 0.9685 | 27.0 | 513 | 1.0585 | 0.9793 | 0.9808 | 0.9791 |
|
| 103 |
+
| 0.9706 | 28.0 | 532 | 1.0609 | 0.9724 | 0.9749 | 0.9754 |
|
| 104 |
+
| 0.9833 | 29.0 | 551 | 1.0702 | 0.9724 | 0.9750 | 0.9767 |
|
| 105 |
+
| 0.9717 | 30.0 | 570 | 1.0728 | 0.9759 | 0.9776 | 0.9753 |
|
| 106 |
+
| 0.9727 | 31.0 | 589 | 1.0614 | 0.9759 | 0.9779 | 0.9779 |
|
| 107 |
+
| 0.9645 | 32.0 | 608 | 1.0531 | 0.9793 | 0.9809 | 0.9803 |
|
| 108 |
+
| 0.9730 | 33.0 | 627 | 1.0505 | 0.9828 | 0.9839 | 0.9828 |
|
| 109 |
+
| 0.9642 | 34.0 | 646 | 1.0454 | 0.9828 | 0.9839 | 0.9828 |
|
| 110 |
+
| 0.9687 | 35.0 | 665 | 1.0516 | 0.9759 | 0.9779 | 0.9779 |
|
| 111 |
+
| 0.9650 | 36.0 | 684 | 1.0544 | 0.9724 | 0.9748 | 0.9754 |
|
| 112 |
+
| 0.9651 | 37.0 | 703 | 1.0512 | 0.9793 | 0.9809 | 0.9803 |
|
| 113 |
+
| 0.9675 | 38.0 | 722 | 1.0516 | 0.9793 | 0.9808 | 0.9791 |
|
| 114 |
+
| 0.9622 | 39.0 | 741 | 1.0499 | 0.9759 | 0.9780 | 0.9792 |
|
| 115 |
+
| 0.9641 | 40.0 | 760 | 1.0488 | 0.9828 | 0.9839 | 0.9828 |
|
| 116 |
+
| 0.9640 | 41.0 | 779 | 1.0479 | 0.9828 | 0.9839 | 0.9828 |
|
| 117 |
+
| 0.9619 | 42.0 | 798 | 1.0464 | 0.9828 | 0.9839 | 0.9828 |
|
| 118 |
+
| 0.9602 | 43.0 | 817 | 1.0481 | 0.9793 | 0.9809 | 0.9803 |
|
| 119 |
+
| 0.9670 | 44.0 | 836 | 1.0482 | 0.9828 | 0.9839 | 0.9828 |
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
### Framework versions
|
| 123 |
+
|
| 124 |
+
- Transformers 5.0.0
|
| 125 |
+
- Pytorch 2.10.0+cu128
|
| 126 |
+
- Datasets 5.0.0
|
| 127 |
+
- Tokenizers 0.22.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343230128
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91aab055a1d20df10e3261183729d5ee50a79672940a1388b5fd760b8968ec85
|
| 3 |
size 343230128
|