Instructions to use nqvii/deit_fold_4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nqvii/deit_fold_4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="nqvii/deit_fold_4") 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/deit_fold_4") model = AutoModelForImageClassification.from_pretrained("nqvii/deit_fold_4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training Fold 4
Browse files- README.md +108 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: facebook/deit-small-patch16-224
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
datasets:
|
| 8 |
+
- imagefolder
|
| 9 |
+
metrics:
|
| 10 |
+
- accuracy
|
| 11 |
+
- recall
|
| 12 |
+
model-index:
|
| 13 |
+
- name: deit_fold_4
|
| 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.9515570934256056
|
| 28 |
+
- name: Recall
|
| 29 |
+
type: recall
|
| 30 |
+
value: 0.9524889695792607
|
| 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 |
+
# deit_fold_4
|
| 37 |
+
|
| 38 |
+
This model is a fine-tuned version of [facebook/deit-small-patch16-224](https://huggingface.co/facebook/deit-small-patch16-224) on the imagefolder dataset.
|
| 39 |
+
It achieves the following results on the evaluation set:
|
| 40 |
+
- Loss: 1.1613
|
| 41 |
+
- Accuracy: 0.9516
|
| 42 |
+
- F1 Score: 0.9557
|
| 43 |
+
- Recall: 0.9525
|
| 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 |
+
| 3.0112 | 1.0 | 19 | 2.9175 | 0.1349 | 0.1173 | 0.1476 |
|
| 77 |
+
| 2.8882 | 2.0 | 38 | 2.7478 | 0.2837 | 0.2479 | 0.2602 |
|
| 78 |
+
| 2.6765 | 3.0 | 57 | 2.5537 | 0.4360 | 0.3402 | 0.3670 |
|
| 79 |
+
| 2.3897 | 4.0 | 76 | 2.2672 | 0.5882 | 0.5441 | 0.5359 |
|
| 80 |
+
| 1.9781 | 5.0 | 95 | 1.8705 | 0.7924 | 0.7997 | 0.7861 |
|
| 81 |
+
| 1.6123 | 6.0 | 114 | 1.5627 | 0.8512 | 0.8659 | 0.8675 |
|
| 82 |
+
| 1.4216 | 7.0 | 133 | 1.3723 | 0.8962 | 0.9067 | 0.9017 |
|
| 83 |
+
| 1.2460 | 8.0 | 152 | 1.2605 | 0.9308 | 0.9380 | 0.9351 |
|
| 84 |
+
| 1.1724 | 9.0 | 171 | 1.2218 | 0.9308 | 0.9370 | 0.9337 |
|
| 85 |
+
| 1.1521 | 10.0 | 190 | 1.1915 | 0.9446 | 0.9492 | 0.9488 |
|
| 86 |
+
| 1.1116 | 11.0 | 209 | 1.1921 | 0.9377 | 0.9440 | 0.9451 |
|
| 87 |
+
| 1.0878 | 12.0 | 228 | 1.1973 | 0.9343 | 0.9406 | 0.9428 |
|
| 88 |
+
| 1.0601 | 13.0 | 247 | 1.1842 | 0.9377 | 0.9435 | 0.9451 |
|
| 89 |
+
| 1.0711 | 14.0 | 266 | 1.1563 | 0.9446 | 0.9497 | 0.9475 |
|
| 90 |
+
| 1.0461 | 15.0 | 285 | 1.1533 | 0.9446 | 0.9497 | 0.9475 |
|
| 91 |
+
| 1.0390 | 16.0 | 304 | 1.1613 | 0.9516 | 0.9557 | 0.9525 |
|
| 92 |
+
| 1.0080 | 17.0 | 323 | 1.1645 | 0.9412 | 0.9463 | 0.9465 |
|
| 93 |
+
| 1.0109 | 18.0 | 342 | 1.1656 | 0.9377 | 0.9434 | 0.9438 |
|
| 94 |
+
| 1.0092 | 19.0 | 361 | 1.1701 | 0.9446 | 0.9494 | 0.9501 |
|
| 95 |
+
| 0.9972 | 20.0 | 380 | 1.1859 | 0.9377 | 0.9432 | 0.9429 |
|
| 96 |
+
| 1.0005 | 21.0 | 399 | 1.1708 | 0.9446 | 0.9501 | 0.9522 |
|
| 97 |
+
| 0.9900 | 22.0 | 418 | 1.1849 | 0.9412 | 0.9470 | 0.9476 |
|
| 98 |
+
| 0.9758 | 23.0 | 437 | 1.1893 | 0.9446 | 0.9496 | 0.9511 |
|
| 99 |
+
| 0.9886 | 24.0 | 456 | 1.1739 | 0.9446 | 0.9496 | 0.9511 |
|
| 100 |
+
| 0.9757 | 25.0 | 475 | 1.1648 | 0.9412 | 0.9460 | 0.9440 |
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
### Framework versions
|
| 104 |
+
|
| 105 |
+
- Transformers 5.0.0
|
| 106 |
+
- Pytorch 2.10.0+cu128
|
| 107 |
+
- Datasets 5.0.0
|
| 108 |
+
- 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 86691704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e570773cf6a1812c5a71aab4063b930bef2dfa9b9b637d0320fda5e85343bc29
|
| 3 |
size 86691704
|