dima806 commited on
Commit
7ad2cdb
1 Parent(s): cc914c0

Upload folder using huggingface_hub

Browse files
checkpoint-2565/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.38.2"
44
+ }
checkpoint-2565/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04c26a29ca2183ef188ca8179cf9b747abf958c4ac1c2c68d902e0a00f7b17c7
3
+ size 343242432
checkpoint-2565/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20a81c19c4d2a45a1c05314f11b8c9d862b6ba397208f2c1a55fb41a2debf61f
3
+ size 686605317
checkpoint-2565/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-2565/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:044da5a6fd7d0c18caebbe2e2122a11b27df80c81ca1d453339e6f9affc39c0c
3
+ size 14575
checkpoint-2565/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5fd7cf00a3ce7bc3e2cc11b5c7fa886801a81f0035be00388855f7827ebf39b
3
+ size 627
checkpoint-2565/trainer_state.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.05002307519316673,
3
+ "best_model_checkpoint": "diamond_types_image_detection/checkpoint-2565",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2565,
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
+ "grad_norm": 0.18087689578533173,
14
+ "learning_rate": 2.4632206759443343e-06,
15
+ "loss": 0.0554,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.39,
20
+ "grad_norm": 0.23432385921478271,
21
+ "learning_rate": 1.8667992047713717e-06,
22
+ "loss": 0.0533,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.58,
27
+ "grad_norm": 0.11465876549482346,
28
+ "learning_rate": 1.2703777335984097e-06,
29
+ "loss": 0.0495,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.78,
34
+ "grad_norm": 0.04937751218676567,
35
+ "learning_rate": 6.739562624254474e-07,
36
+ "loss": 0.0484,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 0.97,
41
+ "grad_norm": 0.04795745760202408,
42
+ "learning_rate": 7.75347912524851e-08,
43
+ "loss": 0.0484,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.9913906558455802,
49
+ "eval_loss": 0.05002307519316673,
50
+ "eval_runtime": 215.3589,
51
+ "eval_samples_per_second": 84.677,
52
+ "eval_steps_per_second": 2.647,
53
+ "step": 2565
54
+ }
55
+ ],
56
+ "logging_steps": 500,
57
+ "max_steps": 2565,
58
+ "num_input_tokens_seen": 0,
59
+ "num_train_epochs": 1,
60
+ "save_steps": 500,
61
+ "total_flos": 1.2718359274598498e+19,
62
+ "train_batch_size": 64,
63
+ "trial_name": null,
64
+ "trial_params": null
65
+ }
checkpoint-2565/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4feb7856462c371d90e2422a2dd8eb7543d6285ac23f4da8dd5be7e4a19123d
3
+ size 4411
config.json CHANGED
@@ -40,5 +40,5 @@
40
  "problem_type": "single_label_classification",
41
  "qkv_bias": true,
42
  "torch_dtype": "float32",
43
- "transformers_version": "4.35.2"
44
  }
 
40
  "problem_type": "single_label_classification",
41
  "qkv_bias": true,
42
  "torch_dtype": "float32",
43
+ "transformers_version": "4.38.2"
44
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c994df1dc68654e7ee179850e3a7febd74d10740e3b6047635aacce533b73320
3
  size 343242432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04c26a29ca2183ef188ca8179cf9b747abf958c4ac1c2c68d902e0a00f7b17c7
3
  size 343242432
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c64fa31b601e69917019a4fd82b3d445298995a3a8cbf908bac6d5ec63d41ce9
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4feb7856462c371d90e2422a2dd8eb7543d6285ac23f4da8dd5be7e4a19123d
3
+ size 4411