Upload folder using huggingface_hub
Browse files- checkpoint-1170/config.json +74 -0
- checkpoint-1170/model.safetensors +3 -0
- checkpoint-1170/optimizer.pt +3 -0
- checkpoint-1170/preprocessor_config.json +22 -0
- checkpoint-1170/rng_state.pth +3 -0
- checkpoint-1170/scheduler.pt +3 -0
- checkpoint-1170/trainer_state.json +80 -0
- checkpoint-1170/training_args.bin +3 -0
- config.json +2 -2
- model.safetensors +1 -1
- training_args.bin +2 -2
checkpoint-1170/config.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dima806/portuguese_meals_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": "donuts",
|
13 |
+
"1": "hamburguer",
|
14 |
+
"2": "feijoada",
|
15 |
+
"3": "batatas_fritas",
|
16 |
+
"4": "esparguete_bolonhesa",
|
17 |
+
"5": "caldo_verde",
|
18 |
+
"6": "pasteis_bacalhau",
|
19 |
+
"7": "cozido_portuguesa",
|
20 |
+
"8": "jardineira",
|
21 |
+
"9": "arroz_cabidela",
|
22 |
+
"10": "nata",
|
23 |
+
"11": "croissant",
|
24 |
+
"12": "cachorro",
|
25 |
+
"13": "tripas_moda_porto",
|
26 |
+
"14": "aletria",
|
27 |
+
"15": "pizza",
|
28 |
+
"16": "bacalhau_natas",
|
29 |
+
"17": "ovo",
|
30 |
+
"18": "waffles",
|
31 |
+
"19": "francesinha",
|
32 |
+
"20": "bolo_chocolate",
|
33 |
+
"21": "gelado",
|
34 |
+
"22": "bacalhau_bras"
|
35 |
+
},
|
36 |
+
"image_size": 224,
|
37 |
+
"initializer_range": 0.02,
|
38 |
+
"intermediate_size": 3072,
|
39 |
+
"label2id": {
|
40 |
+
"aletria": 14,
|
41 |
+
"arroz_cabidela": 9,
|
42 |
+
"bacalhau_bras": 22,
|
43 |
+
"bacalhau_natas": 16,
|
44 |
+
"batatas_fritas": 3,
|
45 |
+
"bolo_chocolate": 20,
|
46 |
+
"cachorro": 12,
|
47 |
+
"caldo_verde": 5,
|
48 |
+
"cozido_portuguesa": 7,
|
49 |
+
"croissant": 11,
|
50 |
+
"donuts": 0,
|
51 |
+
"esparguete_bolonhesa": 4,
|
52 |
+
"feijoada": 2,
|
53 |
+
"francesinha": 19,
|
54 |
+
"gelado": 21,
|
55 |
+
"hamburguer": 1,
|
56 |
+
"jardineira": 8,
|
57 |
+
"nata": 10,
|
58 |
+
"ovo": 17,
|
59 |
+
"pasteis_bacalhau": 6,
|
60 |
+
"pizza": 15,
|
61 |
+
"tripas_moda_porto": 13,
|
62 |
+
"waffles": 18
|
63 |
+
},
|
64 |
+
"layer_norm_eps": 1e-12,
|
65 |
+
"model_type": "vit",
|
66 |
+
"num_attention_heads": 12,
|
67 |
+
"num_channels": 3,
|
68 |
+
"num_hidden_layers": 12,
|
69 |
+
"patch_size": 16,
|
70 |
+
"problem_type": "single_label_classification",
|
71 |
+
"qkv_bias": true,
|
72 |
+
"torch_dtype": "float32",
|
73 |
+
"transformers_version": "4.38.2"
|
74 |
+
}
|
checkpoint-1170/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7201a5fa659cd355ccfa0035416c14616bc8221b9058053680f9debd78d6671
|
3 |
+
size 343288572
|
checkpoint-1170/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f4417cd046a9d0b76bc265bff24b245287df497db9e69f675c57f11d2d20ec5
|
3 |
+
size 686697605
|
checkpoint-1170/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-1170/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:736376ac7649dc5d8ffccdd5b41cbf45d9c78e4db371f013d314e543febb5ccb
|
3 |
+
size 14575
|
checkpoint-1170/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11589b819cfed85d579936b701d6a3fbc4cd8f0117eafda7fa403e7a09b4e9c6
|
3 |
+
size 627
|
checkpoint-1170/trainer_state.json
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.14643093943595886,
|
3 |
+
"best_model_checkpoint": "portuguese_meals_image_detection/checkpoint-1170",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 1170,
|
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.9983929288871033,
|
14 |
+
"eval_loss": 0.1672438383102417,
|
15 |
+
"eval_runtime": 83.9012,
|
16 |
+
"eval_samples_per_second": 59.332,
|
17 |
+
"eval_steps_per_second": 7.425,
|
18 |
+
"step": 234
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"epoch": 2.0,
|
22 |
+
"eval_accuracy": 0.9979911611088791,
|
23 |
+
"eval_loss": 0.1579115092754364,
|
24 |
+
"eval_runtime": 81.7647,
|
25 |
+
"eval_samples_per_second": 60.882,
|
26 |
+
"eval_steps_per_second": 7.619,
|
27 |
+
"step": 468
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 2.14,
|
31 |
+
"grad_norm": 0.29458585381507874,
|
32 |
+
"learning_rate": 1.1964285714285714e-06,
|
33 |
+
"loss": 0.1745,
|
34 |
+
"step": 500
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"epoch": 3.0,
|
38 |
+
"eval_accuracy": 0.9975893933306549,
|
39 |
+
"eval_loss": 0.15152783691883087,
|
40 |
+
"eval_runtime": 82.5271,
|
41 |
+
"eval_samples_per_second": 60.32,
|
42 |
+
"eval_steps_per_second": 7.549,
|
43 |
+
"step": 702
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"epoch": 4.0,
|
47 |
+
"eval_accuracy": 0.9979911611088791,
|
48 |
+
"eval_loss": 0.147627055644989,
|
49 |
+
"eval_runtime": 81.4645,
|
50 |
+
"eval_samples_per_second": 61.106,
|
51 |
+
"eval_steps_per_second": 7.648,
|
52 |
+
"step": 936
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 4.27,
|
56 |
+
"grad_norm": 0.49102333188056946,
|
57 |
+
"learning_rate": 3.0357142857142855e-07,
|
58 |
+
"loss": 0.1473,
|
59 |
+
"step": 1000
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 5.0,
|
63 |
+
"eval_accuracy": 0.9979911611088791,
|
64 |
+
"eval_loss": 0.14643093943595886,
|
65 |
+
"eval_runtime": 82.7385,
|
66 |
+
"eval_samples_per_second": 60.165,
|
67 |
+
"eval_steps_per_second": 7.53,
|
68 |
+
"step": 1170
|
69 |
+
}
|
70 |
+
],
|
71 |
+
"logging_steps": 500,
|
72 |
+
"max_steps": 1170,
|
73 |
+
"num_input_tokens_seen": 0,
|
74 |
+
"num_train_epochs": 5,
|
75 |
+
"save_steps": 500,
|
76 |
+
"total_flos": 2.892932907195341e+18,
|
77 |
+
"train_batch_size": 32,
|
78 |
+
"trial_name": null,
|
79 |
+
"trial_params": null
|
80 |
+
}
|
checkpoint-1170/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5cc25cb4f2add0e0609361efd72190b7181a2c9c67e2a5ed3c97d009d462c3d
|
3 |
+
size 4411
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -70,5 +70,5 @@
|
|
70 |
"problem_type": "single_label_classification",
|
71 |
"qkv_bias": true,
|
72 |
"torch_dtype": "float32",
|
73 |
-
"transformers_version": "4.
|
74 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "dima806/portuguese_meals_image_detection",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
70 |
"problem_type": "single_label_classification",
|
71 |
"qkv_bias": true,
|
72 |
"torch_dtype": "float32",
|
73 |
+
"transformers_version": "4.38.2"
|
74 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343288572
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7201a5fa659cd355ccfa0035416c14616bc8221b9058053680f9debd78d6671
|
3 |
size 343288572
|
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:a5cc25cb4f2add0e0609361efd72190b7181a2c9c67e2a5ed3c97d009d462c3d
|
3 |
+
size 4411
|