Upload folder using huggingface_hub
Browse files- README.md +42 -0
- checkpoint-9/config.json +35 -0
- checkpoint-9/model.safetensors +3 -0
- checkpoint-9/optimizer.pt +3 -0
- checkpoint-9/rng_state.pth +3 -0
- checkpoint-9/scheduler.pt +3 -0
- checkpoint-9/trainer_state.json +129 -0
- checkpoint-9/training_args.bin +3 -0
- config.json +35 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
- training_params.json +29 -0
README.md
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
widget:
|
7 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
8 |
+
example_title: Tiger
|
9 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
10 |
+
example_title: Teapot
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
12 |
+
example_title: Palace
|
13 |
+
datasets:
|
14 |
+
- autotrain-kee7d-srgvj/autotrain-data
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
loss: 0.6576321721076965
|
23 |
+
|
24 |
+
f1_macro: 0.8222222222222223
|
25 |
+
|
26 |
+
f1_micro: 0.8333333333333334
|
27 |
+
|
28 |
+
f1_weighted: 0.8222222222222223
|
29 |
+
|
30 |
+
precision_macro: 0.8888888888888888
|
31 |
+
|
32 |
+
precision_micro: 0.8333333333333334
|
33 |
+
|
34 |
+
precision_weighted: 0.8888888888888888
|
35 |
+
|
36 |
+
recall_macro: 0.8333333333333334
|
37 |
+
|
38 |
+
recall_micro: 0.8333333333333334
|
39 |
+
|
40 |
+
recall_weighted: 0.8333333333333334
|
41 |
+
|
42 |
+
accuracy: 0.8333333333333334
|
checkpoint-9/config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "Apple",
|
14 |
+
"1": "Mango",
|
15 |
+
"2": "Pineapple"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"Apple": 0,
|
22 |
+
"Mango": 1,
|
23 |
+
"Pineapple": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"model_type": "vit",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_channels": 3,
|
29 |
+
"num_hidden_layers": 12,
|
30 |
+
"patch_size": 16,
|
31 |
+
"problem_type": "single_label_classification",
|
32 |
+
"qkv_bias": true,
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.37.0"
|
35 |
+
}
|
checkpoint-9/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de9414ad6c7563cf7ebe6394fdf18c17bda0d5061fcf372328d687f9eb203ecc
|
3 |
+
size 343227052
|
checkpoint-9/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2283910899ffae7d4caf259b4cb25b3b991b4c0140b30687e1835f6766a027b0
|
3 |
+
size 686569402
|
checkpoint-9/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:18541ebfcd2ee329c15a0cf1a7b302dc56f377313c0bf7f9860fc139b80a467d
|
3 |
+
size 13990
|
checkpoint-9/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe28afbf6131c4aaf26ff58140d1779aa47b73f2084ea00758f7b4ca1fc0182a
|
3 |
+
size 1064
|
checkpoint-9/trainer_state.json
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.6576321721076965,
|
3 |
+
"best_model_checkpoint": "autotrain-kee7d-srgvj/checkpoint-9",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 9,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.33,
|
13 |
+
"learning_rate": 5e-05,
|
14 |
+
"loss": 1.216,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.67,
|
19 |
+
"learning_rate": 4.375e-05,
|
20 |
+
"loss": 1.2321,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.0,
|
25 |
+
"learning_rate": 3.7500000000000003e-05,
|
26 |
+
"loss": 1.0648,
|
27 |
+
"step": 3
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 1.0,
|
31 |
+
"eval_accuracy": 0.6666666666666666,
|
32 |
+
"eval_f1_macro": 0.6555555555555556,
|
33 |
+
"eval_f1_micro": 0.6666666666666666,
|
34 |
+
"eval_f1_weighted": 0.6555555555555556,
|
35 |
+
"eval_loss": 0.8826575875282288,
|
36 |
+
"eval_precision_macro": 0.7222222222222222,
|
37 |
+
"eval_precision_micro": 0.6666666666666666,
|
38 |
+
"eval_precision_weighted": 0.7222222222222222,
|
39 |
+
"eval_recall_macro": 0.6666666666666666,
|
40 |
+
"eval_recall_micro": 0.6666666666666666,
|
41 |
+
"eval_recall_weighted": 0.6666666666666666,
|
42 |
+
"eval_runtime": 1.8421,
|
43 |
+
"eval_samples_per_second": 3.257,
|
44 |
+
"eval_steps_per_second": 0.543,
|
45 |
+
"step": 3
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 1.33,
|
49 |
+
"learning_rate": 3.125e-05,
|
50 |
+
"loss": 0.8284,
|
51 |
+
"step": 4
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.67,
|
55 |
+
"learning_rate": 2.5e-05,
|
56 |
+
"loss": 0.6514,
|
57 |
+
"step": 5
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 2.0,
|
61 |
+
"learning_rate": 1.8750000000000002e-05,
|
62 |
+
"loss": 0.4979,
|
63 |
+
"step": 6
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 2.0,
|
67 |
+
"eval_accuracy": 0.6666666666666666,
|
68 |
+
"eval_f1_macro": 0.6555555555555556,
|
69 |
+
"eval_f1_micro": 0.6666666666666666,
|
70 |
+
"eval_f1_weighted": 0.6555555555555556,
|
71 |
+
"eval_loss": 0.7131333351135254,
|
72 |
+
"eval_precision_macro": 0.7222222222222222,
|
73 |
+
"eval_precision_micro": 0.6666666666666666,
|
74 |
+
"eval_precision_weighted": 0.7222222222222222,
|
75 |
+
"eval_recall_macro": 0.6666666666666666,
|
76 |
+
"eval_recall_micro": 0.6666666666666666,
|
77 |
+
"eval_recall_weighted": 0.6666666666666666,
|
78 |
+
"eval_runtime": 1.7044,
|
79 |
+
"eval_samples_per_second": 3.52,
|
80 |
+
"eval_steps_per_second": 0.587,
|
81 |
+
"step": 6
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 2.33,
|
85 |
+
"learning_rate": 1.25e-05,
|
86 |
+
"loss": 0.4501,
|
87 |
+
"step": 7
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 2.67,
|
91 |
+
"learning_rate": 6.25e-06,
|
92 |
+
"loss": 0.4732,
|
93 |
+
"step": 8
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 3.0,
|
97 |
+
"learning_rate": 0.0,
|
98 |
+
"loss": 0.3512,
|
99 |
+
"step": 9
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 3.0,
|
103 |
+
"eval_accuracy": 0.8333333333333334,
|
104 |
+
"eval_f1_macro": 0.8222222222222223,
|
105 |
+
"eval_f1_micro": 0.8333333333333334,
|
106 |
+
"eval_f1_weighted": 0.8222222222222223,
|
107 |
+
"eval_loss": 0.6576321721076965,
|
108 |
+
"eval_precision_macro": 0.8888888888888888,
|
109 |
+
"eval_precision_micro": 0.8333333333333334,
|
110 |
+
"eval_precision_weighted": 0.8888888888888888,
|
111 |
+
"eval_recall_macro": 0.8333333333333334,
|
112 |
+
"eval_recall_micro": 0.8333333333333334,
|
113 |
+
"eval_recall_weighted": 0.8333333333333334,
|
114 |
+
"eval_runtime": 2.071,
|
115 |
+
"eval_samples_per_second": 2.897,
|
116 |
+
"eval_steps_per_second": 0.483,
|
117 |
+
"step": 9
|
118 |
+
}
|
119 |
+
],
|
120 |
+
"logging_steps": 1,
|
121 |
+
"max_steps": 9,
|
122 |
+
"num_input_tokens_seen": 0,
|
123 |
+
"num_train_epochs": 3,
|
124 |
+
"save_steps": 500,
|
125 |
+
"total_flos": 5346995206404096.0,
|
126 |
+
"train_batch_size": 8,
|
127 |
+
"trial_name": null,
|
128 |
+
"trial_params": null
|
129 |
+
}
|
checkpoint-9/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aadea75eeb681830f821340b959b795db71a261d78cc47b1ac01295a3de1645d
|
3 |
+
size 4728
|
config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"architectures": [
|
5 |
+
"ViTForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"encoder_stride": 16,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "Apple",
|
14 |
+
"1": "Mango",
|
15 |
+
"2": "Pineapple"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"Apple": 0,
|
22 |
+
"Mango": 1,
|
23 |
+
"Pineapple": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"model_type": "vit",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_channels": 3,
|
29 |
+
"num_hidden_layers": 12,
|
30 |
+
"patch_size": 16,
|
31 |
+
"problem_type": "single_label_classification",
|
32 |
+
"qkv_bias": true,
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.37.0"
|
35 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de9414ad6c7563cf7ebe6394fdf18c17bda0d5061fcf372328d687f9eb203ecc
|
3 |
+
size 343227052
|
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 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aadea75eeb681830f821340b959b795db71a261d78cc47b1ac01295a3de1645d
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain-kee7d-srgvj/autotrain-data",
|
3 |
+
"model": "google/vit-base-patch16-224",
|
4 |
+
"username": "Wei-Meng",
|
5 |
+
"lr": 5e-05,
|
6 |
+
"epochs": 3,
|
7 |
+
"batch_size": 8,
|
8 |
+
"warmup_ratio": 0.1,
|
9 |
+
"gradient_accumulation": 1,
|
10 |
+
"optimizer": "adamw_torch",
|
11 |
+
"scheduler": "linear",
|
12 |
+
"weight_decay": 0.0,
|
13 |
+
"max_grad_norm": 1.0,
|
14 |
+
"seed": 42,
|
15 |
+
"train_split": "train",
|
16 |
+
"valid_split": "validation",
|
17 |
+
"logging_steps": -1,
|
18 |
+
"project_name": "autotrain-kee7d-srgvj",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": null,
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"save_strategy": "epoch",
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "Wei-Meng/autotrain-kee7d-srgvj",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|