Upload folder using huggingface_hub (#1)
Browse files- Upload folder using huggingface_hub (073a651061b3186cf54398ced26a1227d397891c)
- config.json +56 -0
- optimizer.pt +3 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- trainer_state.json +148 -0
- training_args.bin +3 -0
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Unlabeled",
|
13 |
+
"1": "basil",
|
14 |
+
"10": "poison%20ivy",
|
15 |
+
"11": "poison%20oak",
|
16 |
+
"12": "rose",
|
17 |
+
"13": "tulip",
|
18 |
+
"2": "blueash",
|
19 |
+
"3": "boxelder",
|
20 |
+
"4": "cilantro",
|
21 |
+
"5": "daisy",
|
22 |
+
"6": "mint",
|
23 |
+
"7": "oak%20leaves",
|
24 |
+
"8": "oregano",
|
25 |
+
"9": "parsely"
|
26 |
+
},
|
27 |
+
"image_size": 224,
|
28 |
+
"initializer_range": 0.02,
|
29 |
+
"intermediate_size": 3072,
|
30 |
+
"label2id": {
|
31 |
+
"Unlabeled": "0",
|
32 |
+
"basil": "1",
|
33 |
+
"blueash": "2",
|
34 |
+
"boxelder": "3",
|
35 |
+
"cilantro": "4",
|
36 |
+
"daisy": "5",
|
37 |
+
"mint": "6",
|
38 |
+
"oak%20leaves": "7",
|
39 |
+
"oregano": "8",
|
40 |
+
"parsely": "9",
|
41 |
+
"poison%20ivy": "10",
|
42 |
+
"poison%20oak": "11",
|
43 |
+
"rose": "12",
|
44 |
+
"tulip": "13"
|
45 |
+
},
|
46 |
+
"layer_norm_eps": 1e-12,
|
47 |
+
"model_type": "vit",
|
48 |
+
"num_attention_heads": 12,
|
49 |
+
"num_channels": 3,
|
50 |
+
"num_hidden_layers": 12,
|
51 |
+
"patch_size": 16,
|
52 |
+
"problem_type": "single_label_classification",
|
53 |
+
"qkv_bias": true,
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.30.2"
|
56 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07cd332e471e357f594305431a260ea02c28a49760030a24aa661fde670c7879
|
3 |
+
size 686586885
|
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:7eac0c87e010477e201a695ab301d3f974c0f6021ef24701e7737ce9bcd02909
|
3 |
+
size 343302829
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8214c01f27f2aeae1e56fc7a28278e26d2d258088ec2bdf3bdc701698ad3524
|
3 |
+
size 13553
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:799ed092fb350886e343bfac6eff042a22f6c5330bc27d3d8edec0f2f57c7b6b
|
3 |
+
size 627
|
trainer_state.json
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.5376309156417847,
|
3 |
+
"best_model_checkpoint": "./plant-classification/checkpoint-160",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"global_step": 160,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 0.12,
|
12 |
+
"learning_rate": 0.0001875,
|
13 |
+
"loss": 2.4258,
|
14 |
+
"step": 10
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.25,
|
18 |
+
"learning_rate": 0.000175,
|
19 |
+
"loss": 1.9889,
|
20 |
+
"step": 20
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.38,
|
24 |
+
"learning_rate": 0.00016250000000000002,
|
25 |
+
"loss": 1.607,
|
26 |
+
"step": 30
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.5,
|
30 |
+
"learning_rate": 0.00015000000000000001,
|
31 |
+
"loss": 1.3676,
|
32 |
+
"step": 40
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 0.5,
|
36 |
+
"eval_accuracy": 0.7850467289719626,
|
37 |
+
"eval_loss": 1.1707247495651245,
|
38 |
+
"eval_runtime": 340.2579,
|
39 |
+
"eval_samples_per_second": 1.572,
|
40 |
+
"eval_steps_per_second": 0.197,
|
41 |
+
"step": 40
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 0.62,
|
45 |
+
"learning_rate": 0.0001375,
|
46 |
+
"loss": 1.1479,
|
47 |
+
"step": 50
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 0.75,
|
51 |
+
"learning_rate": 0.000125,
|
52 |
+
"loss": 1.041,
|
53 |
+
"step": 60
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 0.88,
|
57 |
+
"learning_rate": 0.00011250000000000001,
|
58 |
+
"loss": 0.9377,
|
59 |
+
"step": 70
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.0,
|
63 |
+
"learning_rate": 0.0001,
|
64 |
+
"loss": 0.7748,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.0,
|
69 |
+
"eval_accuracy": 0.8242990654205608,
|
70 |
+
"eval_loss": 0.7840399146080017,
|
71 |
+
"eval_runtime": 345.814,
|
72 |
+
"eval_samples_per_second": 1.547,
|
73 |
+
"eval_steps_per_second": 0.194,
|
74 |
+
"step": 80
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 1.12,
|
78 |
+
"learning_rate": 8.75e-05,
|
79 |
+
"loss": 0.6445,
|
80 |
+
"step": 90
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 1.25,
|
84 |
+
"learning_rate": 7.500000000000001e-05,
|
85 |
+
"loss": 0.6609,
|
86 |
+
"step": 100
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 1.38,
|
90 |
+
"learning_rate": 6.25e-05,
|
91 |
+
"loss": 0.5166,
|
92 |
+
"step": 110
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 1.5,
|
96 |
+
"learning_rate": 5e-05,
|
97 |
+
"loss": 0.5183,
|
98 |
+
"step": 120
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 1.5,
|
102 |
+
"eval_accuracy": 0.8467289719626169,
|
103 |
+
"eval_loss": 0.5941035747528076,
|
104 |
+
"eval_runtime": 349.1506,
|
105 |
+
"eval_samples_per_second": 1.532,
|
106 |
+
"eval_steps_per_second": 0.192,
|
107 |
+
"step": 120
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 1.62,
|
111 |
+
"learning_rate": 3.7500000000000003e-05,
|
112 |
+
"loss": 0.4848,
|
113 |
+
"step": 130
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"epoch": 1.75,
|
117 |
+
"learning_rate": 2.5e-05,
|
118 |
+
"loss": 0.5598,
|
119 |
+
"step": 140
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 1.88,
|
123 |
+
"learning_rate": 1.25e-05,
|
124 |
+
"loss": 0.4853,
|
125 |
+
"step": 150
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"epoch": 2.0,
|
129 |
+
"learning_rate": 0.0,
|
130 |
+
"loss": 0.4338,
|
131 |
+
"step": 160
|
132 |
+
},
|
133 |
+
{
|
134 |
+
"epoch": 2.0,
|
135 |
+
"eval_accuracy": 0.8822429906542056,
|
136 |
+
"eval_loss": 0.5376309156417847,
|
137 |
+
"eval_runtime": 365.9435,
|
138 |
+
"eval_samples_per_second": 1.462,
|
139 |
+
"eval_steps_per_second": 0.183,
|
140 |
+
"step": 160
|
141 |
+
}
|
142 |
+
],
|
143 |
+
"max_steps": 160,
|
144 |
+
"num_train_epochs": 2,
|
145 |
+
"total_flos": 1.9809082826897818e+17,
|
146 |
+
"trial_name": null,
|
147 |
+
"trial_params": null
|
148 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f06724907d8ec1951ee686cbeab0a5bd9d120862596c22d1eb6540c9cfc96f40
|
3 |
+
size 3899
|