dima806 commited on
Commit
92d2126
1 Parent(s): ed4ebb6

Upload folder using huggingface_hub

Browse files
checkpoint-4680/config.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dima806/house-plant-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": "African Violet (Saintpaulia ionantha)",
13
+ "1": "Aloe Vera",
14
+ "2": "Anthurium (Anthurium andraeanum)",
15
+ "3": "Areca Palm (Dypsis lutescens)",
16
+ "4": "Asparagus Fern (Asparagus setaceus)",
17
+ "5": "Begonia (Begonia spp.)",
18
+ "6": "Bird of Paradise (Strelitzia reginae)",
19
+ "7": "Birds Nest Fern (Asplenium nidus)",
20
+ "8": "Boston Fern (Nephrolepis exaltata)",
21
+ "9": "Calathea",
22
+ "10": "Cast Iron Plant (Aspidistra elatior)",
23
+ "11": "Chinese Money Plant (Pilea peperomioides)",
24
+ "12": "Chinese evergreen (Aglaonema)",
25
+ "13": "Christmas Cactus (Schlumbergera bridgesii)",
26
+ "14": "Chrysanthemum",
27
+ "15": "Ctenanthe",
28
+ "16": "Daffodils (Narcissus spp.)",
29
+ "17": "Dracaena",
30
+ "18": "Dumb Cane (Dieffenbachia spp.)",
31
+ "19": "Elephant Ear (Alocasia spp.)",
32
+ "20": "English Ivy (Hedera helix)",
33
+ "21": "Hyacinth (Hyacinthus orientalis)",
34
+ "22": "Iron Cross begonia (Begonia masoniana)",
35
+ "23": "Jade plant (Crassula ovata)",
36
+ "24": "Kalanchoe",
37
+ "25": "Lilium (Hemerocallis)",
38
+ "26": "Lily of the valley (Convallaria majalis)",
39
+ "27": "Money Tree (Pachira aquatica)",
40
+ "28": "Monstera Deliciosa (Monstera deliciosa)",
41
+ "29": "Orchid",
42
+ "30": "Parlor Palm (Chamaedorea elegans)",
43
+ "31": "Peace lily",
44
+ "32": "Poinsettia (Euphorbia pulcherrima)",
45
+ "33": "Polka Dot Plant (Hypoestes phyllostachya)",
46
+ "34": "Ponytail Palm (Beaucarnea recurvata)",
47
+ "35": "Pothos (Ivy arum)",
48
+ "36": "Prayer Plant (Maranta leuconeura)",
49
+ "37": "Rattlesnake Plant (Calathea lancifolia)",
50
+ "38": "Rubber Plant (Ficus elastica)",
51
+ "39": "Sago Palm (Cycas revoluta)",
52
+ "40": "Schefflera",
53
+ "41": "Snake plant (Sanseviera)",
54
+ "42": "Tradescantia",
55
+ "43": "Tulip",
56
+ "44": "Venus Flytrap",
57
+ "45": "Yucca",
58
+ "46": "ZZ Plant (Zamioculcas zamiifolia)"
59
+ },
60
+ "image_size": 224,
61
+ "initializer_range": 0.02,
62
+ "intermediate_size": 3072,
63
+ "label2id": {
64
+ "African Violet (Saintpaulia ionantha)": 0,
65
+ "Aloe Vera": 1,
66
+ "Anthurium (Anthurium andraeanum)": 2,
67
+ "Areca Palm (Dypsis lutescens)": 3,
68
+ "Asparagus Fern (Asparagus setaceus)": 4,
69
+ "Begonia (Begonia spp.)": 5,
70
+ "Bird of Paradise (Strelitzia reginae)": 6,
71
+ "Birds Nest Fern (Asplenium nidus)": 7,
72
+ "Boston Fern (Nephrolepis exaltata)": 8,
73
+ "Calathea": 9,
74
+ "Cast Iron Plant (Aspidistra elatior)": 10,
75
+ "Chinese Money Plant (Pilea peperomioides)": 11,
76
+ "Chinese evergreen (Aglaonema)": 12,
77
+ "Christmas Cactus (Schlumbergera bridgesii)": 13,
78
+ "Chrysanthemum": 14,
79
+ "Ctenanthe": 15,
80
+ "Daffodils (Narcissus spp.)": 16,
81
+ "Dracaena": 17,
82
+ "Dumb Cane (Dieffenbachia spp.)": 18,
83
+ "Elephant Ear (Alocasia spp.)": 19,
84
+ "English Ivy (Hedera helix)": 20,
85
+ "Hyacinth (Hyacinthus orientalis)": 21,
86
+ "Iron Cross begonia (Begonia masoniana)": 22,
87
+ "Jade plant (Crassula ovata)": 23,
88
+ "Kalanchoe": 24,
89
+ "Lilium (Hemerocallis)": 25,
90
+ "Lily of the valley (Convallaria majalis)": 26,
91
+ "Money Tree (Pachira aquatica)": 27,
92
+ "Monstera Deliciosa (Monstera deliciosa)": 28,
93
+ "Orchid": 29,
94
+ "Parlor Palm (Chamaedorea elegans)": 30,
95
+ "Peace lily": 31,
96
+ "Poinsettia (Euphorbia pulcherrima)": 32,
97
+ "Polka Dot Plant (Hypoestes phyllostachya)": 33,
98
+ "Ponytail Palm (Beaucarnea recurvata)": 34,
99
+ "Pothos (Ivy arum)": 35,
100
+ "Prayer Plant (Maranta leuconeura)": 36,
101
+ "Rattlesnake Plant (Calathea lancifolia)": 37,
102
+ "Rubber Plant (Ficus elastica)": 38,
103
+ "Sago Palm (Cycas revoluta)": 39,
104
+ "Schefflera": 40,
105
+ "Snake plant (Sanseviera)": 41,
106
+ "Tradescantia": 42,
107
+ "Tulip": 43,
108
+ "Venus Flytrap": 44,
109
+ "Yucca": 45,
110
+ "ZZ Plant (Zamioculcas zamiifolia)": 46
111
+ },
112
+ "layer_norm_eps": 1e-12,
113
+ "model_type": "vit",
114
+ "num_attention_heads": 12,
115
+ "num_channels": 3,
116
+ "num_hidden_layers": 12,
117
+ "patch_size": 16,
118
+ "problem_type": "single_label_classification",
119
+ "qkv_bias": true,
120
+ "torch_dtype": "float32",
121
+ "transformers_version": "4.44.2"
122
+ }
checkpoint-4680/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4a84832a33db328eea9857cc95bbff810f5b49dfc0365f46e052b530b6f7a4b
3
+ size 343362404
checkpoint-4680/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d289fb2ebc44ea16ccdd62c0f16d972aed910f852ca9536ddae7682de271aea
3
+ size 686845626
checkpoint-4680/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-4680/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d734dada625f31f864608cf4bf1c46fcf468b889d73804a6c37229da85d5b621
3
+ size 14244
checkpoint-4680/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fbf80943c937cc27085dc497c8b5258b7972babf6000e0624e566f030e5a28e
3
+ size 1064
checkpoint-4680/trainer_state.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 3.3425400257110596,
3
+ "best_model_checkpoint": "house-plant-image-detection/checkpoint-4680",
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4680,
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.20735249924872282,
14
+ "eval_loss": 3.7243916988372803,
15
+ "eval_model_preparation_time": 0.0053,
16
+ "eval_runtime": 416.7605,
17
+ "eval_samples_per_second": 23.954,
18
+ "eval_steps_per_second": 2.995,
19
+ "step": 468
20
+ },
21
+ {
22
+ "epoch": 1.0683760683760684,
23
+ "grad_norm": 1.424812912940979,
24
+ "learning_rate": 8.125269978401728e-07,
25
+ "loss": 3.7509,
26
+ "step": 500
27
+ },
28
+ {
29
+ "epoch": 2.0,
30
+ "eval_accuracy": 0.3650205349093459,
31
+ "eval_loss": 3.650330066680908,
32
+ "eval_model_preparation_time": 0.0053,
33
+ "eval_runtime": 415.1984,
34
+ "eval_samples_per_second": 24.044,
35
+ "eval_steps_per_second": 3.006,
36
+ "step": 936
37
+ },
38
+ {
39
+ "epoch": 2.1367521367521367,
40
+ "grad_norm": 1.4496433734893799,
41
+ "learning_rate": 7.153347732181425e-07,
42
+ "loss": 3.6632,
43
+ "step": 1000
44
+ },
45
+ {
46
+ "epoch": 3.0,
47
+ "eval_accuracy": 0.507362516277672,
48
+ "eval_loss": 3.5817322731018066,
49
+ "eval_model_preparation_time": 0.0053,
50
+ "eval_runtime": 408.2157,
51
+ "eval_samples_per_second": 24.455,
52
+ "eval_steps_per_second": 3.057,
53
+ "step": 1404
54
+ },
55
+ {
56
+ "epoch": 3.2051282051282053,
57
+ "grad_norm": 1.4192156791687012,
58
+ "learning_rate": 6.181425485961123e-07,
59
+ "loss": 3.5805,
60
+ "step": 1500
61
+ },
62
+ {
63
+ "epoch": 4.0,
64
+ "eval_accuracy": 0.6101372332966042,
65
+ "eval_loss": 3.5205447673797607,
66
+ "eval_model_preparation_time": 0.0053,
67
+ "eval_runtime": 409.7634,
68
+ "eval_samples_per_second": 24.363,
69
+ "eval_steps_per_second": 3.046,
70
+ "step": 1872
71
+ },
72
+ {
73
+ "epoch": 4.273504273504273,
74
+ "grad_norm": 1.5265206098556519,
75
+ "learning_rate": 5.20950323974082e-07,
76
+ "loss": 3.5052,
77
+ "step": 2000
78
+ },
79
+ {
80
+ "epoch": 5.0,
81
+ "eval_accuracy": 0.6736451968346189,
82
+ "eval_loss": 3.466716766357422,
83
+ "eval_model_preparation_time": 0.0053,
84
+ "eval_runtime": 423.0883,
85
+ "eval_samples_per_second": 23.596,
86
+ "eval_steps_per_second": 2.95,
87
+ "step": 2340
88
+ },
89
+ {
90
+ "epoch": 5.3418803418803416,
91
+ "grad_norm": 1.5765515565872192,
92
+ "learning_rate": 4.237580993520518e-07,
93
+ "loss": 3.4422,
94
+ "step": 2500
95
+ },
96
+ {
97
+ "epoch": 6.0,
98
+ "eval_accuracy": 0.7151156966843634,
99
+ "eval_loss": 3.422731876373291,
100
+ "eval_model_preparation_time": 0.0053,
101
+ "eval_runtime": 423.7393,
102
+ "eval_samples_per_second": 23.559,
103
+ "eval_steps_per_second": 2.945,
104
+ "step": 2808
105
+ },
106
+ {
107
+ "epoch": 6.410256410256411,
108
+ "grad_norm": 1.4684735536575317,
109
+ "learning_rate": 3.265658747300216e-07,
110
+ "loss": 3.3898,
111
+ "step": 3000
112
+ },
113
+ {
114
+ "epoch": 7.0,
115
+ "eval_accuracy": 0.7370529900831413,
116
+ "eval_loss": 3.3875274658203125,
117
+ "eval_model_preparation_time": 0.0053,
118
+ "eval_runtime": 425.9892,
119
+ "eval_samples_per_second": 23.435,
120
+ "eval_steps_per_second": 2.93,
121
+ "step": 3276
122
+ },
123
+ {
124
+ "epoch": 7.478632478632479,
125
+ "grad_norm": 1.5869113206863403,
126
+ "learning_rate": 2.2937365010799135e-07,
127
+ "loss": 3.3477,
128
+ "step": 3500
129
+ },
130
+ {
131
+ "epoch": 8.0,
132
+ "eval_accuracy": 0.7496744465591506,
133
+ "eval_loss": 3.36271071434021,
134
+ "eval_model_preparation_time": 0.0053,
135
+ "eval_runtime": 425.1997,
136
+ "eval_samples_per_second": 23.478,
137
+ "eval_steps_per_second": 2.935,
138
+ "step": 3744
139
+ },
140
+ {
141
+ "epoch": 8.547008547008547,
142
+ "grad_norm": 1.4942816495895386,
143
+ "learning_rate": 1.321814254859611e-07,
144
+ "loss": 3.3201,
145
+ "step": 4000
146
+ },
147
+ {
148
+ "epoch": 9.0,
149
+ "eval_accuracy": 0.7563858559551238,
150
+ "eval_loss": 3.347600221633911,
151
+ "eval_model_preparation_time": 0.0053,
152
+ "eval_runtime": 426.4217,
153
+ "eval_samples_per_second": 23.411,
154
+ "eval_steps_per_second": 2.927,
155
+ "step": 4212
156
+ },
157
+ {
158
+ "epoch": 9.615384615384615,
159
+ "grad_norm": 1.5854607820510864,
160
+ "learning_rate": 3.4989200863930885e-08,
161
+ "loss": 3.3009,
162
+ "step": 4500
163
+ },
164
+ {
165
+ "epoch": 10.0,
166
+ "eval_accuracy": 0.7592907943503957,
167
+ "eval_loss": 3.3425400257110596,
168
+ "eval_model_preparation_time": 0.0053,
169
+ "eval_runtime": 419.2995,
170
+ "eval_samples_per_second": 23.809,
171
+ "eval_steps_per_second": 2.976,
172
+ "step": 4680
173
+ }
174
+ ],
175
+ "logging_steps": 500,
176
+ "max_steps": 4680,
177
+ "num_input_tokens_seen": 0,
178
+ "num_train_epochs": 10,
179
+ "save_steps": 500,
180
+ "stateful_callbacks": {
181
+ "TrainerControl": {
182
+ "args": {
183
+ "should_epoch_stop": false,
184
+ "should_evaluate": false,
185
+ "should_log": false,
186
+ "should_save": true,
187
+ "should_training_stop": true
188
+ },
189
+ "attributes": {}
190
+ }
191
+ },
192
+ "total_flos": 1.160833051811156e+19,
193
+ "train_batch_size": 32,
194
+ "trial_name": null,
195
+ "trial_params": null
196
+ }
checkpoint-4680/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e63920ba5ce21a92a47ac4454fc135f2117176a194a1a8d6687090b74121760
3
+ size 5112
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
 
1
  {
2
+ "_name_or_path": "dima806/house-plant-image-detection",
3
  "architectures": [
4
  "ViTForImageClassification"
5
  ],
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cd11d1a55bc10fdb0393b76add0f1f16901b2b351a22593776a654f977fcd44c
3
  size 343362404
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4a84832a33db328eea9857cc95bbff810f5b49dfc0365f46e052b530b6f7a4b
3
  size 343362404
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:532a5c4ecfced93f28a090b423b2dad17231b16d0ea743bdcb04b94b1dd880ea
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e63920ba5ce21a92a47ac4454fc135f2117176a194a1a8d6687090b74121760
3
  size 5112