Upload folder using huggingface_hub
Browse files- checkpoint-2500/config.json +48 -0
- checkpoint-2500/model.safetensors +3 -0
- checkpoint-2500/optimizer.pt +3 -0
- checkpoint-2500/preprocessor_config.json +22 -0
- checkpoint-2500/rng_state.pth +3 -0
- checkpoint-2500/scheduler.pt +3 -0
- checkpoint-2500/trainer_state.json +101 -0
- checkpoint-2500/training_args.bin +3 -0
- config.json +2 -2
- model.safetensors +1 -1
- training_args.bin +2 -2
checkpoint-2500/config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/fast_food_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": "Burger",
|
13 |
+
"1": "Taco",
|
14 |
+
"2": "Baked Potato",
|
15 |
+
"3": "Hot Dog",
|
16 |
+
"4": "Pizza",
|
17 |
+
"5": "Sandwich",
|
18 |
+
"6": "Fries",
|
19 |
+
"7": "Donut",
|
20 |
+
"8": "Crispy Chicken",
|
21 |
+
"9": "Taquito"
|
22 |
+
},
|
23 |
+
"image_size": 224,
|
24 |
+
"initializer_range": 0.02,
|
25 |
+
"intermediate_size": 3072,
|
26 |
+
"label2id": {
|
27 |
+
"Baked Potato": 2,
|
28 |
+
"Burger": 0,
|
29 |
+
"Crispy Chicken": 8,
|
30 |
+
"Donut": 7,
|
31 |
+
"Fries": 6,
|
32 |
+
"Hot Dog": 3,
|
33 |
+
"Pizza": 4,
|
34 |
+
"Sandwich": 5,
|
35 |
+
"Taco": 1,
|
36 |
+
"Taquito": 9
|
37 |
+
},
|
38 |
+
"layer_norm_eps": 1e-12,
|
39 |
+
"model_type": "vit",
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_channels": 3,
|
42 |
+
"num_hidden_layers": 12,
|
43 |
+
"patch_size": 16,
|
44 |
+
"problem_type": "single_label_classification",
|
45 |
+
"qkv_bias": true,
|
46 |
+
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.38.2"
|
48 |
+
}
|
checkpoint-2500/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e449fb2047c493850c63944ec78f69d53e056aa68e76b08e2a825fb3828e9bd1
|
3 |
+
size 343248584
|
checkpoint-2500/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c07703279b80c0c3373a4a381a0b68ffcd61a7bac35f55bf1b16f4f73b12891e
|
3 |
+
size 686617605
|
checkpoint-2500/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-2500/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78111858a949b75b1440bbba6d9bdb3f55762aa2fcf3e465dbdcdc42be57a290
|
3 |
+
size 14575
|
checkpoint-2500/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:580423f007d6dc6795f171a7af04cb8adc879b55c3b16bc635ee8497e361256f
|
3 |
+
size 627
|
checkpoint-2500/trainer_state.json
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.13462364673614502,
|
3 |
+
"best_model_checkpoint": "fast_food_image_detection/checkpoint-2500",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2500,
|
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 |
+
"grad_norm": 0.28725844621658325,
|
14 |
+
"learning_rate": 1.6326530612244897e-06,
|
15 |
+
"loss": 0.225,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_accuracy": 0.9757074881041823,
|
21 |
+
"eval_loss": 0.14208008348941803,
|
22 |
+
"eval_runtime": 39.2448,
|
23 |
+
"eval_samples_per_second": 101.746,
|
24 |
+
"eval_steps_per_second": 12.741,
|
25 |
+
"step": 500
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"epoch": 2.0,
|
29 |
+
"grad_norm": 0.3262328803539276,
|
30 |
+
"learning_rate": 1.2244897959183673e-06,
|
31 |
+
"loss": 0.2101,
|
32 |
+
"step": 1000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 2.0,
|
36 |
+
"eval_accuracy": 0.9769596794390183,
|
37 |
+
"eval_loss": 0.13922728598117828,
|
38 |
+
"eval_runtime": 38.0806,
|
39 |
+
"eval_samples_per_second": 104.856,
|
40 |
+
"eval_steps_per_second": 13.13,
|
41 |
+
"step": 1000
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 3.0,
|
45 |
+
"grad_norm": 0.27534928917884827,
|
46 |
+
"learning_rate": 8.163265306122449e-07,
|
47 |
+
"loss": 0.1932,
|
48 |
+
"step": 1500
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"epoch": 3.0,
|
52 |
+
"eval_accuracy": 0.9774605559729527,
|
53 |
+
"eval_loss": 0.1367102861404419,
|
54 |
+
"eval_runtime": 37.9368,
|
55 |
+
"eval_samples_per_second": 105.254,
|
56 |
+
"eval_steps_per_second": 13.18,
|
57 |
+
"step": 1500
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 4.0,
|
61 |
+
"grad_norm": 3.9497718811035156,
|
62 |
+
"learning_rate": 4.0816326530612243e-07,
|
63 |
+
"loss": 0.1909,
|
64 |
+
"step": 2000
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 4.0,
|
68 |
+
"eval_accuracy": 0.9769596794390183,
|
69 |
+
"eval_loss": 0.13517306745052338,
|
70 |
+
"eval_runtime": 37.8037,
|
71 |
+
"eval_samples_per_second": 105.625,
|
72 |
+
"eval_steps_per_second": 13.226,
|
73 |
+
"step": 2000
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 5.0,
|
77 |
+
"grad_norm": 0.22323879599571228,
|
78 |
+
"learning_rate": 0.0,
|
79 |
+
"loss": 0.1859,
|
80 |
+
"step": 2500
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 5.0,
|
84 |
+
"eval_accuracy": 0.9774605559729527,
|
85 |
+
"eval_loss": 0.13462364673614502,
|
86 |
+
"eval_runtime": 38.526,
|
87 |
+
"eval_samples_per_second": 103.644,
|
88 |
+
"eval_steps_per_second": 12.978,
|
89 |
+
"step": 2500
|
90 |
+
}
|
91 |
+
],
|
92 |
+
"logging_steps": 500,
|
93 |
+
"max_steps": 2500,
|
94 |
+
"num_input_tokens_seen": 0,
|
95 |
+
"num_train_epochs": 5,
|
96 |
+
"save_steps": 500,
|
97 |
+
"total_flos": 6.188179040444621e+18,
|
98 |
+
"train_batch_size": 32,
|
99 |
+
"trial_name": null,
|
100 |
+
"trial_params": null
|
101 |
+
}
|
checkpoint-2500/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f339c0d35d4ee4484ca0d8a29340cf2b74ada3041c946af1d48551812f5c5cdf
|
3 |
+
size 4411
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -44,5 +44,5 @@
|
|
44 |
"problem_type": "single_label_classification",
|
45 |
"qkv_bias": true,
|
46 |
"torch_dtype": "float32",
|
47 |
-
"transformers_version": "4.
|
48 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "dima806/fast_food_image_detection",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
44 |
"problem_type": "single_label_classification",
|
45 |
"qkv_bias": true,
|
46 |
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.38.2"
|
48 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343248584
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e449fb2047c493850c63944ec78f69d53e056aa68e76b08e2a825fb3828e9bd1
|
3 |
size 343248584
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f339c0d35d4ee4484ca0d8a29340cf2b74ada3041c946af1d48551812f5c5cdf
|
3 |
+
size 4411
|