dima806 commited on
Commit
27d116f
1 Parent(s): 9514310

Upload folder using huggingface_hub

Browse files
checkpoint-1585/config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/flowers_16_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": "calendula",
13
+ "1": "coreopsis",
14
+ "2": "rose",
15
+ "3": "black_eyed_susan",
16
+ "4": "water_lily",
17
+ "5": "california_poppy",
18
+ "6": "dandelion",
19
+ "7": "magnolia",
20
+ "8": "astilbe",
21
+ "9": "sunflower",
22
+ "10": "tulip",
23
+ "11": "bellflower",
24
+ "12": "iris",
25
+ "13": "common_daisy",
26
+ "14": "daffodil",
27
+ "15": "carnation"
28
+ },
29
+ "image_size": 224,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "astilbe": 8,
34
+ "bellflower": 11,
35
+ "black_eyed_susan": 3,
36
+ "calendula": 0,
37
+ "california_poppy": 5,
38
+ "carnation": 15,
39
+ "common_daisy": 13,
40
+ "coreopsis": 1,
41
+ "daffodil": 14,
42
+ "dandelion": 6,
43
+ "iris": 12,
44
+ "magnolia": 7,
45
+ "rose": 2,
46
+ "sunflower": 9,
47
+ "tulip": 10,
48
+ "water_lily": 4
49
+ },
50
+ "layer_norm_eps": 1e-12,
51
+ "model_type": "vit",
52
+ "num_attention_heads": 12,
53
+ "num_channels": 3,
54
+ "num_hidden_layers": 12,
55
+ "patch_size": 16,
56
+ "problem_type": "single_label_classification",
57
+ "qkv_bias": true,
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.39.1"
60
+ }
checkpoint-1585/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ce164617577780bc503f08c7248c95a410d2a6071a081f6ae9eb33da11ce144
3
+ size 343267040
checkpoint-1585/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4245b72223a327140254a0fd0e6356338869ec72027bde79945f1b69cf4237f
3
+ size 686654597
checkpoint-1585/preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
checkpoint-1585/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98b0a5301fe8db5459c929f8866de0e73f10dc1ec28ea54bcfbcd8f284eba9fa
3
+ size 14575
checkpoint-1585/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93e48c2d73110377de08d20a3232bf1a3d64e57ea131fa838cceec70b197ee41
3
+ size 627
checkpoint-1585/trainer_state.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.1382625699043274,
3
+ "best_model_checkpoint": "flowers_16_types_image_detection/checkpoint-1585",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1585,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.9933293803735547,
14
+ "eval_loss": 0.14828798174858093,
15
+ "eval_runtime": 65.9907,
16
+ "eval_samples_per_second": 102.227,
17
+ "eval_steps_per_second": 12.79,
18
+ "step": 317
19
+ },
20
+ {
21
+ "epoch": 1.58,
22
+ "grad_norm": 0.7267522811889648,
23
+ "learning_rate": 7.068403908794788e-07,
24
+ "loss": 0.149,
25
+ "step": 500
26
+ },
27
+ {
28
+ "epoch": 2.0,
29
+ "eval_accuracy": 0.9942187963237474,
30
+ "eval_loss": 0.14341050386428833,
31
+ "eval_runtime": 65.1034,
32
+ "eval_samples_per_second": 103.62,
33
+ "eval_steps_per_second": 12.964,
34
+ "step": 634
35
+ },
36
+ {
37
+ "epoch": 3.0,
38
+ "eval_accuracy": 0.9946635042988438,
39
+ "eval_loss": 0.1406962275505066,
40
+ "eval_runtime": 65.451,
41
+ "eval_samples_per_second": 103.07,
42
+ "eval_steps_per_second": 12.895,
43
+ "step": 951
44
+ },
45
+ {
46
+ "epoch": 3.15,
47
+ "grad_norm": 1.938141107559204,
48
+ "learning_rate": 3.8110749185667754e-07,
49
+ "loss": 0.1359,
50
+ "step": 1000
51
+ },
52
+ {
53
+ "epoch": 4.0,
54
+ "eval_accuracy": 0.994515268307145,
55
+ "eval_loss": 0.1391610950231552,
56
+ "eval_runtime": 65.4486,
57
+ "eval_samples_per_second": 103.073,
58
+ "eval_steps_per_second": 12.896,
59
+ "step": 1268
60
+ },
61
+ {
62
+ "epoch": 4.73,
63
+ "grad_norm": 0.4765698313713074,
64
+ "learning_rate": 5.5374592833876216e-08,
65
+ "loss": 0.1317,
66
+ "step": 1500
67
+ },
68
+ {
69
+ "epoch": 5.0,
70
+ "eval_accuracy": 0.9948117402905425,
71
+ "eval_loss": 0.1382625699043274,
72
+ "eval_runtime": 65.5279,
73
+ "eval_samples_per_second": 102.949,
74
+ "eval_steps_per_second": 12.88,
75
+ "step": 1585
76
+ }
77
+ ],
78
+ "logging_steps": 500,
79
+ "max_steps": 1585,
80
+ "num_input_tokens_seen": 0,
81
+ "num_train_epochs": 5,
82
+ "save_steps": 500,
83
+ "total_flos": 3.920811666805555e+18,
84
+ "train_batch_size": 32,
85
+ "trial_name": null,
86
+ "trial_params": null
87
+ }
checkpoint-1585/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a45e1be59f238910d28136054d590a8d0adcf6684a7a895a084f7d9dbc04b4f
3
+ size 4411
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
@@ -56,5 +56,5 @@
56
  "problem_type": "single_label_classification",
57
  "qkv_bias": true,
58
  "torch_dtype": "float32",
59
- "transformers_version": "4.33.2"
60
  }
 
1
  {
2
+ "_name_or_path": "dima806/flowers_16_types_image_detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
56
  "problem_type": "single_label_classification",
57
  "qkv_bias": true,
58
  "torch_dtype": "float32",
59
+ "transformers_version": "4.39.1"
60
  }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ce164617577780bc503f08c7248c95a410d2a6071a081f6ae9eb33da11ce144
3
+ size 343267040
preprocessor_config.json CHANGED
@@ -1,4 +1,18 @@
1
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  "do_normalize": true,
3
  "do_rescale": true,
4
  "do_resize": true,
 
1
  {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
  "do_normalize": true,
17
  "do_rescale": true,
18
  "do_resize": true,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7a1d63bfe467642f7247adbe50cd27f2c392486a7562a6b3cf910d5cf90f36a8
3
- size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a45e1be59f238910d28136054d590a8d0adcf6684a7a895a084f7d9dbc04b4f
3
+ size 4411