shreydan commited on
Commit
06e5058
1 Parent(s): 0864c70

Training in progress, epoch 1

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: vit-base-oxford-iiit-pets
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # vit-base-oxford-iiit-pets
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.2199
21
+ - Accuracy: 0.9405
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0003
41
+ - train_batch_size: 32
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 1.7898 | 1.0 | 185 | 0.3908 | 0.9134 |
53
+ | 0.3065 | 2.0 | 370 | 0.2685 | 0.9269 |
54
+ | 0.2189 | 3.0 | 555 | 0.2441 | 0.9337 |
55
+ | 0.1884 | 4.0 | 740 | 0.2332 | 0.9310 |
56
+ | 0.1769 | 5.0 | 925 | 0.2286 | 0.9364 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.35.0
62
+ - Pytorch 2.0.0
63
+ - Datasets 2.1.0
64
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Siamese",
13
+ "1": "Birman",
14
+ "2": "shiba inu",
15
+ "3": "staffordshire bull terrier",
16
+ "4": "basset hound",
17
+ "5": "Bombay",
18
+ "6": "japanese chin",
19
+ "7": "chihuahua",
20
+ "8": "german shorthaired",
21
+ "9": "pomeranian",
22
+ "10": "beagle",
23
+ "11": "english cocker spaniel",
24
+ "12": "american pit bull terrier",
25
+ "13": "Ragdoll",
26
+ "14": "Persian",
27
+ "15": "Egyptian Mau",
28
+ "16": "miniature pinscher",
29
+ "17": "Sphynx",
30
+ "18": "Maine Coon",
31
+ "19": "keeshond",
32
+ "20": "yorkshire terrier",
33
+ "21": "havanese",
34
+ "22": "leonberger",
35
+ "23": "wheaten terrier",
36
+ "24": "american bulldog",
37
+ "25": "english setter",
38
+ "26": "boxer",
39
+ "27": "newfoundland",
40
+ "28": "Bengal",
41
+ "29": "samoyed",
42
+ "30": "British Shorthair",
43
+ "31": "great pyrenees",
44
+ "32": "Abyssinian",
45
+ "33": "pug",
46
+ "34": "saint bernard",
47
+ "35": "Russian Blue",
48
+ "36": "scottish terrier"
49
+ },
50
+ "image_size": 224,
51
+ "initializer_range": 0.02,
52
+ "intermediate_size": 3072,
53
+ "label2id": {
54
+ "Abyssinian": 32,
55
+ "Bengal": 28,
56
+ "Birman": 1,
57
+ "Bombay": 5,
58
+ "British Shorthair": 30,
59
+ "Egyptian Mau": 15,
60
+ "Maine Coon": 18,
61
+ "Persian": 14,
62
+ "Ragdoll": 13,
63
+ "Russian Blue": 35,
64
+ "Siamese": 0,
65
+ "Sphynx": 17,
66
+ "american bulldog": 24,
67
+ "american pit bull terrier": 12,
68
+ "basset hound": 4,
69
+ "beagle": 10,
70
+ "boxer": 26,
71
+ "chihuahua": 7,
72
+ "english cocker spaniel": 11,
73
+ "english setter": 25,
74
+ "german shorthaired": 8,
75
+ "great pyrenees": 31,
76
+ "havanese": 21,
77
+ "japanese chin": 6,
78
+ "keeshond": 19,
79
+ "leonberger": 22,
80
+ "miniature pinscher": 16,
81
+ "newfoundland": 27,
82
+ "pomeranian": 9,
83
+ "pug": 33,
84
+ "saint bernard": 34,
85
+ "samoyed": 29,
86
+ "scottish terrier": 36,
87
+ "shiba inu": 2,
88
+ "staffordshire bull terrier": 3,
89
+ "wheaten terrier": 23,
90
+ "yorkshire terrier": 20
91
+ },
92
+ "layer_norm_eps": 1e-12,
93
+ "model_type": "vit",
94
+ "num_attention_heads": 12,
95
+ "num_channels": 3,
96
+ "num_hidden_layers": 12,
97
+ "patch_size": 16,
98
+ "problem_type": "single_label_classification",
99
+ "qkv_bias": true,
100
+ "torch_dtype": "float32",
101
+ "transformers_version": "4.35.0"
102
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a2d99e4793396f01408bfce4f17882f2ef69b96f265b65dc799b63a89521311
3
+ size 343331644
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
runs/Dec14_19-03-04_145c21892219/events.out.tfevents.1702580654.145c21892219.46.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae0e48fcf4fa5c38114b15cfae086575c4a5012cc9fef220b2fe1b7b090a2de0
3
+ size 9356
runs/Dec14_19-03-04_145c21892219/events.out.tfevents.1702581408.145c21892219.46.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e03dd4ffbe52089fede9766733de983a6d1715dcc35103d15799703ae4a66a40
3
+ size 411
runs/Dec14_19-33-51_145c21892219/events.out.tfevents.1702582435.145c21892219.4031.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:398d09a259ef656be6cb3fedc0633fbe665866f3f1f6d7ae905bf4656c1a844f
3
+ size 6454
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb89607543827259498e0cecec55e75a3ab6a23ea7d2e86924487c0e7b526876
3
+ size 4155