Fadri commited on
Commit
c753772
·
verified ·
1 Parent(s): 91fd6b2

image-classification

Browse files
Files changed (4) hide show
  1. README.md +66 -0
  2. config.json +49 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - image-classification
7
+ - fungi
8
+ - mushrooms
9
+ - generated_from_trainer
10
+ metrics:
11
+ - accuracy
12
+ model-index:
13
+ - name: results
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # results
21
+
22
+ 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.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.0583
25
+ - Accuracy: 0.9865
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 5e-05
45
+ - train_batch_size: 32
46
+ - eval_batch_size: 32
47
+ - seed: 42
48
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 3
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
55
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
56
+ | 0.0388 | 1.0 | 1563 | 0.0732 | 0.9815 |
57
+ | 0.017 | 2.0 | 3126 | 0.0621 | 0.9847 |
58
+ | 0.0028 | 3.0 | 4689 | 0.0583 | 0.9865 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.52.1
64
+ - Pytorch 2.7.0+cu118
65
+ - Datasets 3.6.0
66
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
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
+ "pooler_act": "tanh",
44
+ "pooler_output_size": 768,
45
+ "problem_type": "single_label_classification",
46
+ "qkv_bias": true,
47
+ "torch_dtype": "float32",
48
+ "transformers_version": "4.52.1"
49
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:371a0394884285c44720b1c1cc2d90c1597ff4024f94e2d14c32d00507ca2c80
3
+ size 343248584
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a009187eb7124e6ac60b79581355b5c313b448417a5702d904488655912ad78e
3
+ size 5649