dennishauser commited on
Commit
2bf8b17
1 Parent(s): 606b8b4

End of training

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - mnist
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: my_awesome_food_model
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: mnist
18
+ type: mnist
19
+ config: mnist
20
+ split: test
21
+ args: mnist
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.8809
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # my_awesome_food_model
32
+
33
+ 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 mnist dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.5370
36
+ - Accuracy: 0.8809
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 64
57
+ - eval_batch_size: 16
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 256
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - lr_scheduler_warmup_ratio: 0.1
64
+ - num_epochs: 1
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
70
+ | 0.5443 | 0.9979 | 234 | 0.5314 | 0.8862 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.42.4
76
+ - Pytorch 2.3.1+cu121
77
+ - Datasets 2.20.0
78
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "0",
13
+ "1": "1",
14
+ "2": "2",
15
+ "3": "3",
16
+ "4": "4",
17
+ "5": "5",
18
+ "6": "6",
19
+ "7": "7",
20
+ "8": "8",
21
+ "9": "9"
22
+ },
23
+ "image_size": 224,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "0": "0",
28
+ "1": "1",
29
+ "2": "2",
30
+ "3": "3",
31
+ "4": "4",
32
+ "5": "5",
33
+ "6": "6",
34
+ "7": "7",
35
+ "8": "8",
36
+ "9": "9"
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "model_type": "vit",
40
+ "num_attention_heads": 12,
41
+ "num_channels": 3,
42
+ "num_hidden_layers": 12,
43
+ "patch_size": 16,
44
+ "problem_type": "single_label_classification",
45
+ "qkv_bias": true,
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.42.4"
48
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d04d7702ea37cd058ce3c82ab28049b4c5284221f4a89837168880d26ec507a
3
+ size 343248584
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/Jul29_09-22-30_c8edac06b99c/events.out.tfevents.1722244952.c8edac06b99c.292.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6903f6ebbf622f35b583c3d82365e69f9823fd893c8be7315e811595215b860f
3
+ size 10113
runs/Jul29_09-22-30_c8edac06b99c/events.out.tfevents.1722245803.c8edac06b99c.292.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a861ea4c942a26da48372d288db39fed7f6dbbbbcd5854ce8583745d04f2a5d7
3
+ size 411
runs/Jul29_09-38-27_c8edac06b99c/events.out.tfevents.1722245908.c8edac06b99c.292.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a824626eac7b549e51bd9d412937e105fd685485145fafcb2ccdfc7fa20d87
3
+ size 9013
runs/Jul29_09-46-04_c8edac06b99c/events.out.tfevents.1722246364.c8edac06b99c.292.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd1f782c8b828b7075dee6da782f4b91b89c16e3ce627297de38b64c2b2e7f0f
3
+ size 5515
runs/Jul29_09-48-05_c8edac06b99c/events.out.tfevents.1722246486.c8edac06b99c.292.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f9236dc26b474d5d4bef5a85057ccf50ad18a72f8417e88b6ae6b2ec43ae37f
3
+ size 4184
runs/Jul29_09-49-46_c8edac06b99c/events.out.tfevents.1722246588.c8edac06b99c.8207.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9b9bdf7b959ff76f5f7e54af57fe446686232a4e02d7805fb01e472beebc2df
3
+ size 4184
runs/Jul29_09-52-28_c8edac06b99c/events.out.tfevents.1722246749.c8edac06b99c.8925.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b55db7b5f87da375d1f0f3d5ca3b00d4e041f9a92ec16c5f36e4d2bcf5f8347
3
+ size 10534
runs/Jul29_09-52-28_c8edac06b99c/events.out.tfevents.1722249199.c8edac06b99c.8925.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99f549ec7a5946de9fcef2800883a927523578d233c47ed9c20b5320edf123c0
3
+ size 411
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aaea0d32e45587216b962baf2489bc454aaff68bf30b0a3fdbd7f2827e38862
3
+ size 5112