sagemaker
commited on
Commit
·
4b0fde4
1
Parent(s):
db8926f
add model
Browse files- README.md +61 -0
- config.json +44 -0
- pytorch_model.bin +3 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
|
7 |
+
model-index:
|
8 |
+
- name: vit-base-patch16-224-in21k-image-classification-sagemaker
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# vit-base-patch16-224-in21k-image-classification-sagemaker
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [vit-base-patch16-224-in21k](https://huggingface.co/vit-base-patch16-224-in21k) on the cifar10 dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.3033
|
19 |
+
- Accuracy: 0.972
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 2e-05
|
39 |
+
- train_batch_size: 16
|
40 |
+
- eval_batch_size: 64
|
41 |
+
- seed: 42
|
42 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
+
- lr_scheduler_type: linear
|
44 |
+
- lr_scheduler_warmup_steps: 500
|
45 |
+
- num_epochs: 3
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
50 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
51 |
+
| No log | 1.0 | 313 | 1.4603 | 0.936 |
|
52 |
+
| 1.6548 | 2.0 | 626 | 0.4451 | 0.966 |
|
53 |
+
| 1.6548 | 3.0 | 939 | 0.3033 | 0.972 |
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.6.1
|
59 |
+
- Pytorch 1.7.1
|
60 |
+
- Datasets 1.6.2
|
61 |
+
- Tokenizers 0.10.3
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.0,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"id2label": {
|
11 |
+
"0": "airplane",
|
12 |
+
"1": "automobile",
|
13 |
+
"2": "bird",
|
14 |
+
"3": "cat",
|
15 |
+
"4": "deer",
|
16 |
+
"5": "dog",
|
17 |
+
"6": "frog",
|
18 |
+
"7": "horse",
|
19 |
+
"8": "ship",
|
20 |
+
"9": "truck"
|
21 |
+
},
|
22 |
+
"image_size": 224,
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"airplane": 0,
|
27 |
+
"automobile": 1,
|
28 |
+
"bird": 2,
|
29 |
+
"cat": 3,
|
30 |
+
"deer": 4,
|
31 |
+
"dog": 5,
|
32 |
+
"frog": 6,
|
33 |
+
"horse": 7,
|
34 |
+
"ship": 8,
|
35 |
+
"truck": 9
|
36 |
+
},
|
37 |
+
"layer_norm_eps": 1e-12,
|
38 |
+
"model_type": "vit",
|
39 |
+
"num_attention_heads": 12,
|
40 |
+
"num_channels": 3,
|
41 |
+
"num_hidden_layers": 12,
|
42 |
+
"patch_size": 16,
|
43 |
+
"transformers_version": "4.6.1"
|
44 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8d0753702c45efe12e3a223e52e4a8f770c75a133d164a3e7a2137617e1f309
|
3 |
+
size 343309559
|