dima806 commited on
Commit
cc914c0
·
1 Parent(s): 95482c2

Upload folder using huggingface_hub

Browse files
checkpoint-5130/config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/diamond_types_image_detection",
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": "pear",
13
+ "1": "cushion",
14
+ "2": "princess",
15
+ "3": "round",
16
+ "4": "marquise",
17
+ "5": "oval",
18
+ "6": "emerald",
19
+ "7": "heart"
20
+ },
21
+ "image_size": 224,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "cushion": 1,
26
+ "emerald": 6,
27
+ "heart": 7,
28
+ "marquise": 4,
29
+ "oval": 5,
30
+ "pear": 0,
31
+ "princess": 2,
32
+ "round": 3
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "model_type": "vit",
36
+ "num_attention_heads": 12,
37
+ "num_channels": 3,
38
+ "num_hidden_layers": 12,
39
+ "patch_size": 16,
40
+ "problem_type": "single_label_classification",
41
+ "qkv_bias": true,
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.35.2"
44
+ }
checkpoint-5130/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c994df1dc68654e7ee179850e3a7febd74d10740e3b6047635aacce533b73320
3
+ size 343242432
checkpoint-5130/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:227fa8f127ffcb78ab335eca37038e7f5d8d8c0fd0bf4a73d94d4378e58448f6
3
+ size 686605317
checkpoint-5130/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
+ }
checkpoint-5130/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dafada588683fee7f1561624562c0f307a3c6a7aa207c4f73709dc0b93a6a56c
3
+ size 14575
checkpoint-5130/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ae9ada28bda062ee66b6cc0b11063a97e39f040933689084ae1f1ca2f1eeeaa
3
+ size 627
checkpoint-5130/trainer_state.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.05889441445469856,
3
+ "best_model_checkpoint": "diamond_types_image_detection/checkpoint-5130",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5130,
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.19,
13
+ "learning_rate": 4.557086614173229e-06,
14
+ "loss": 0.253,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.39,
19
+ "learning_rate": 4.06496062992126e-06,
20
+ "loss": 0.13,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.58,
25
+ "learning_rate": 3.5728346456692912e-06,
26
+ "loss": 0.1038,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 0.78,
31
+ "learning_rate": 3.0807086614173234e-06,
32
+ "loss": 0.0861,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 0.97,
37
+ "learning_rate": 2.588582677165354e-06,
38
+ "loss": 0.0769,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 1.0,
43
+ "eval_accuracy": 0.9920486948892301,
44
+ "eval_loss": 0.07366491854190826,
45
+ "eval_runtime": 224.0956,
46
+ "eval_samples_per_second": 81.376,
47
+ "eval_steps_per_second": 2.544,
48
+ "step": 2565
49
+ },
50
+ {
51
+ "epoch": 1.17,
52
+ "learning_rate": 2.096456692913386e-06,
53
+ "loss": 0.0698,
54
+ "step": 3000
55
+ },
56
+ {
57
+ "epoch": 1.36,
58
+ "learning_rate": 1.6043307086614174e-06,
59
+ "loss": 0.0637,
60
+ "step": 3500
61
+ },
62
+ {
63
+ "epoch": 1.56,
64
+ "learning_rate": 1.1122047244094488e-06,
65
+ "loss": 0.0628,
66
+ "step": 4000
67
+ },
68
+ {
69
+ "epoch": 1.75,
70
+ "learning_rate": 6.200787401574803e-07,
71
+ "loss": 0.0614,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 1.95,
76
+ "learning_rate": 1.2795275590551183e-07,
77
+ "loss": 0.0572,
78
+ "step": 5000
79
+ },
80
+ {
81
+ "epoch": 2.0,
82
+ "eval_accuracy": 0.9922680412371134,
83
+ "eval_loss": 0.05889441445469856,
84
+ "eval_runtime": 224.5184,
85
+ "eval_samples_per_second": 81.223,
86
+ "eval_steps_per_second": 2.539,
87
+ "step": 5130
88
+ }
89
+ ],
90
+ "logging_steps": 500,
91
+ "max_steps": 5130,
92
+ "num_train_epochs": 2,
93
+ "save_steps": 500,
94
+ "total_flos": 2.5436718549196997e+19,
95
+ "trial_name": null,
96
+ "trial_params": null
97
+ }
checkpoint-5130/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c64fa31b601e69917019a4fd82b3d445298995a3a8cbf908bac6d5ec63d41ce9
3
+ size 4091
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -40,5 +40,5 @@
40
  "problem_type": "single_label_classification",
41
  "qkv_bias": true,
42
  "torch_dtype": "float32",
43
- "transformers_version": "4.33.0"
44
  }
 
1
  {
2
+ "_name_or_path": "dima806/diamond_types_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
40
  "problem_type": "single_label_classification",
41
  "qkv_bias": true,
42
  "torch_dtype": "float32",
43
+ "transformers_version": "4.35.2"
44
  }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c994df1dc68654e7ee179850e3a7febd74d10740e3b6047635aacce533b73320
3
+ size 343242432
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a15599710f10f7194aeb8c648b1850c5e668d00523fdcb068678c842dd9bc67c
3
- size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c64fa31b601e69917019a4fd82b3d445298995a3a8cbf908bac6d5ec63d41ce9
3
+ size 4091