mshuggingface commited on
Commit
502a97f
1 Parent(s): 734b35e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: image-categories-2023-08-28-08-43-770487
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.6764705882352942
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
+ # image-categories-2023-08-28-08-43-770487
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 imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.9626
36
+ - Accuracy: 0.6765
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: 0.0002
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 8
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 1
62
+
63
+ ### Training results
64
+
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.32.0
70
+ - Pytorch 2.0.1
71
+ - Datasets 2.14.4
72
+ - Tokenizers 0.13.3
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_accuracy": 0.6764705882352942,
4
+ "eval_loss": 0.9626137018203735,
5
+ "eval_runtime": 2.8865,
6
+ "eval_samples_per_second": 47.116,
7
+ "eval_steps_per_second": 5.889,
8
+ "train_loss": 1.1862452450920553,
9
+ "train_runtime": 62.578,
10
+ "train_samples_per_second": 17.258,
11
+ "train_steps_per_second": 1.087
12
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "architectural",
13
+ "1": "blurry",
14
+ "2": "fashion",
15
+ "3": "graphic_design",
16
+ "4": "illustration_and_sketches",
17
+ "5": "movie",
18
+ "6": "photography"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "architectural": 0,
25
+ "blurry": 1,
26
+ "fashion": 2,
27
+ "graphic_design": 3,
28
+ "illustration_and_sketches": 4,
29
+ "movie": 5,
30
+ "photography": 6
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.32.0"
42
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_accuracy": 0.6764705882352942,
4
+ "eval_loss": 0.9626137018203735,
5
+ "eval_runtime": 2.8865,
6
+ "eval_samples_per_second": 47.116,
7
+ "eval_steps_per_second": 5.889
8
+ }
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": "ViTFeatureExtractor",
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a79739603e799a0a1b3013b1b2dd8024027baaea90de63b4ff0696d17e21093f
3
+ size 343281325
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 1.1862452450920553,
4
+ "train_runtime": 62.578,
5
+ "train_samples_per_second": 17.258,
6
+ "train_steps_per_second": 1.087
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 100,
6
+ "global_step": 68,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.15,
13
+ "learning_rate": 0.00017058823529411766,
14
+ "loss": 1.7833,
15
+ "step": 10
16
+ },
17
+ {
18
+ "epoch": 0.29,
19
+ "learning_rate": 0.0001411764705882353,
20
+ "loss": 1.4406,
21
+ "step": 20
22
+ },
23
+ {
24
+ "epoch": 0.44,
25
+ "learning_rate": 0.00011176470588235294,
26
+ "loss": 1.1285,
27
+ "step": 30
28
+ },
29
+ {
30
+ "epoch": 0.59,
31
+ "learning_rate": 8.23529411764706e-05,
32
+ "loss": 1.0222,
33
+ "step": 40
34
+ },
35
+ {
36
+ "epoch": 0.74,
37
+ "learning_rate": 5.294117647058824e-05,
38
+ "loss": 0.9368,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 0.88,
43
+ "learning_rate": 2.3529411764705884e-05,
44
+ "loss": 0.9278,
45
+ "step": 60
46
+ },
47
+ {
48
+ "epoch": 1.0,
49
+ "step": 68,
50
+ "total_flos": 8.369509927919616e+16,
51
+ "train_loss": 1.1862452450920553,
52
+ "train_runtime": 62.578,
53
+ "train_samples_per_second": 17.258,
54
+ "train_steps_per_second": 1.087
55
+ }
56
+ ],
57
+ "logging_steps": 10,
58
+ "max_steps": 68,
59
+ "num_train_epochs": 1,
60
+ "save_steps": 100,
61
+ "total_flos": 8.369509927919616e+16,
62
+ "trial_name": null,
63
+ "trial_params": null
64
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:955050fdcb5268bef141c4ab89eed7007a75ba6fc074977417042bd7e25bbf4e
3
+ size 4091