Instructions to use simlaharma/vit-base-cifar10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use simlaharma/vit-base-cifar10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="simlaharma/vit-base-cifar10") 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("simlaharma/vit-base-cifar10") model = AutoModelForImageClassification.from_pretrained("simlaharma/vit-base-cifar10", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
5a81be5
1
Parent(s): 08b0c67
update model card README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
-
- image-classification
|
| 5 |
-
- vision
|
| 6 |
- generated_from_trainer
|
| 7 |
datasets:
|
| 8 |
- cifar10
|
|
@@ -23,7 +21,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +31,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the cifar10 dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss: 0.
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -67,16 +65,16 @@ The following hyperparameters were used during training:
|
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 70 |
-
| 0.
|
| 71 |
-
| 0.
|
| 72 |
-
| 0.
|
| 73 |
-
| 0.
|
| 74 |
-
| 0.
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
|
| 81 |
|
| 82 |
### Framework versions
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
|
|
|
|
|
|
| 4 |
- generated_from_trainer
|
| 5 |
datasets:
|
| 6 |
- cifar10
|
|
|
|
| 21 |
metrics:
|
| 22 |
- name: Accuracy
|
| 23 |
type: accuracy
|
| 24 |
+
value: 0.9856
|
| 25 |
---
|
| 26 |
|
| 27 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
|
| 32 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the cifar10 dataset.
|
| 33 |
It achieves the following results on the evaluation set:
|
| 34 |
+
- Loss: 0.0496
|
| 35 |
+
- Accuracy: 0.9856
|
| 36 |
|
| 37 |
## Model description
|
| 38 |
|
|
|
|
| 65 |
|
| 66 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 67 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 68 |
+
| 0.4169 | 1.0 | 664 | 0.1741 | 0.9725 |
|
| 69 |
+
| 0.3364 | 2.0 | 1328 | 0.1108 | 0.9745 |
|
| 70 |
+
| 0.2856 | 3.0 | 1992 | 0.0864 | 0.9764 |
|
| 71 |
+
| 0.2716 | 4.0 | 2656 | 0.0721 | 0.9811 |
|
| 72 |
+
| 0.2738 | 5.0 | 3320 | 0.0678 | 0.9824 |
|
| 73 |
+
| 0.2432 | 6.0 | 3984 | 0.0610 | 0.9825 |
|
| 74 |
+
| 0.2163 | 7.0 | 4648 | 0.0603 | 0.9843 |
|
| 75 |
+
| 0.2368 | 8.0 | 5312 | 0.0580 | 0.9835 |
|
| 76 |
+
| 0.2236 | 9.0 | 5976 | 0.0506 | 0.9855 |
|
| 77 |
+
| 0.1671 | 10.0 | 6640 | 0.0496 | 0.9856 |
|
| 78 |
|
| 79 |
|
| 80 |
### Framework versions
|