Upload folder using huggingface_hub
Browse files- README.md +42 -0
- checkpoint-6/config.json +35 -0
- checkpoint-6/model.safetensors +3 -0
- checkpoint-6/optimizer.pt +3 -0
- checkpoint-6/rng_state.pth +3 -0
- checkpoint-6/scheduler.pt +3 -0
- checkpoint-6/trainer_state.json +111 -0
- checkpoint-6/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 |
+
- tangfei/autotrain-data-autotrain-3u170-rx6d7
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
loss: 1.0810903310775757
|
23 |
+
|
24 |
+
f1_macro: 0.26666666666666666
|
25 |
+
|
26 |
+
f1_micro: 0.5
|
27 |
+
|
28 |
+
f1_weighted: 0.4
|
29 |
+
|
30 |
+
precision_macro: 0.2222222222222222
|
31 |
+
|
32 |
+
precision_micro: 0.5
|
33 |
+
|
34 |
+
precision_weighted: 0.3333333333333333
|
35 |
+
|
36 |
+
recall_macro: 0.3333333333333333
|
37 |
+
|
38 |
+
recall_micro: 0.5
|
39 |
+
|
40 |
+
recall_weighted: 0.5
|
41 |
+
|
42 |
+
accuracy: 0.5
|
checkpoint-6/config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-large-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": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "11covered_with_a_quilt_and_only_the_head_exposed",
|
14 |
+
"1": "12covered_with_a_quilt_and_exposed_other_parts_of_the_body",
|
15 |
+
"2": "13has_nothing_to_do_with_11_and_12_above"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 4096,
|
20 |
+
"label2id": {
|
21 |
+
"11covered_with_a_quilt_and_only_the_head_exposed": 0,
|
22 |
+
"12covered_with_a_quilt_and_exposed_other_parts_of_the_body": 1,
|
23 |
+
"13has_nothing_to_do_with_11_and_12_above": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"model_type": "vit",
|
27 |
+
"num_attention_heads": 16,
|
28 |
+
"num_channels": 3,
|
29 |
+
"num_hidden_layers": 24,
|
30 |
+
"patch_size": 16,
|
31 |
+
"problem_type": "single_label_classification",
|
32 |
+
"qkv_bias": true,
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.36.1"
|
35 |
+
}
|
checkpoint-6/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a8b0b88f79ad52c0adda5edd9e20c2b73f4afeaee267a58ab9d4aa4fac6d3c1
|
3 |
+
size 1213265372
|
checkpoint-6/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e77ebdc1cf28dc93e415bda7126850ae683fe5ca19520c92295120f521f0400
|
3 |
+
size 2426754730
|
checkpoint-6/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7640281fdeacc9892a2a93d02ffcafb5fb535dd127212a48d3a862da2c688d0f
|
3 |
+
size 13990
|
checkpoint-6/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a507d9cafa2419d0ab9d8bfd3d73565df3d210c7e1a2b8ba116f25efdab63f1
|
3 |
+
size 1064
|
checkpoint-6/trainer_state.json
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 1.0810903310775757,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-6",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 6,
|
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.5,
|
13 |
+
"learning_rate": 5e-05,
|
14 |
+
"loss": 1.0986,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 1.0,
|
19 |
+
"learning_rate": 4e-05,
|
20 |
+
"loss": 1.0986,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 1.0,
|
25 |
+
"eval_accuracy": 0.5,
|
26 |
+
"eval_f1_macro": 0.26666666666666666,
|
27 |
+
"eval_f1_micro": 0.5,
|
28 |
+
"eval_f1_weighted": 0.4,
|
29 |
+
"eval_loss": 1.0924081802368164,
|
30 |
+
"eval_precision_macro": 0.2222222222222222,
|
31 |
+
"eval_precision_micro": 0.5,
|
32 |
+
"eval_precision_weighted": 0.3333333333333333,
|
33 |
+
"eval_recall_macro": 0.3333333333333333,
|
34 |
+
"eval_recall_micro": 0.5,
|
35 |
+
"eval_recall_weighted": 0.5,
|
36 |
+
"eval_runtime": 3.9639,
|
37 |
+
"eval_samples_per_second": 1.009,
|
38 |
+
"eval_steps_per_second": 0.252,
|
39 |
+
"step": 2
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.5,
|
43 |
+
"learning_rate": 3e-05,
|
44 |
+
"loss": 1.0872,
|
45 |
+
"step": 3
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 2.0,
|
49 |
+
"learning_rate": 2e-05,
|
50 |
+
"loss": 1.0947,
|
51 |
+
"step": 4
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 2.0,
|
55 |
+
"eval_accuracy": 0.5,
|
56 |
+
"eval_f1_macro": 0.26666666666666666,
|
57 |
+
"eval_f1_micro": 0.5,
|
58 |
+
"eval_f1_weighted": 0.4,
|
59 |
+
"eval_loss": 1.0845551490783691,
|
60 |
+
"eval_precision_macro": 0.2222222222222222,
|
61 |
+
"eval_precision_micro": 0.5,
|
62 |
+
"eval_precision_weighted": 0.3333333333333333,
|
63 |
+
"eval_recall_macro": 0.3333333333333333,
|
64 |
+
"eval_recall_micro": 0.5,
|
65 |
+
"eval_recall_weighted": 0.5,
|
66 |
+
"eval_runtime": 4.1625,
|
67 |
+
"eval_samples_per_second": 0.961,
|
68 |
+
"eval_steps_per_second": 0.24,
|
69 |
+
"step": 4
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 2.5,
|
73 |
+
"learning_rate": 1e-05,
|
74 |
+
"loss": 1.0774,
|
75 |
+
"step": 5
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 3.0,
|
79 |
+
"learning_rate": 0.0,
|
80 |
+
"loss": 1.0742,
|
81 |
+
"step": 6
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 3.0,
|
85 |
+
"eval_accuracy": 0.5,
|
86 |
+
"eval_f1_macro": 0.26666666666666666,
|
87 |
+
"eval_f1_micro": 0.5,
|
88 |
+
"eval_f1_weighted": 0.4,
|
89 |
+
"eval_loss": 1.0810903310775757,
|
90 |
+
"eval_precision_macro": 0.2222222222222222,
|
91 |
+
"eval_precision_micro": 0.5,
|
92 |
+
"eval_precision_weighted": 0.3333333333333333,
|
93 |
+
"eval_recall_macro": 0.3333333333333333,
|
94 |
+
"eval_recall_micro": 0.5,
|
95 |
+
"eval_recall_weighted": 0.5,
|
96 |
+
"eval_runtime": 4.1477,
|
97 |
+
"eval_samples_per_second": 0.964,
|
98 |
+
"eval_steps_per_second": 0.241,
|
99 |
+
"step": 6
|
100 |
+
}
|
101 |
+
],
|
102 |
+
"logging_steps": 1,
|
103 |
+
"max_steps": 6,
|
104 |
+
"num_input_tokens_seen": 0,
|
105 |
+
"num_train_epochs": 3,
|
106 |
+
"save_steps": 500,
|
107 |
+
"total_flos": 9861663802023936.0,
|
108 |
+
"train_batch_size": 8,
|
109 |
+
"trial_name": null,
|
110 |
+
"trial_params": null
|
111 |
+
}
|
checkpoint-6/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb31623627eda26ed00438e03593456b35ba995bf5102ece264666d213ed9d51
|
3 |
+
size 4728
|
config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-large-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": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "11covered_with_a_quilt_and_only_the_head_exposed",
|
14 |
+
"1": "12covered_with_a_quilt_and_exposed_other_parts_of_the_body",
|
15 |
+
"2": "13has_nothing_to_do_with_11_and_12_above"
|
16 |
+
},
|
17 |
+
"image_size": 224,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 4096,
|
20 |
+
"label2id": {
|
21 |
+
"11covered_with_a_quilt_and_only_the_head_exposed": 0,
|
22 |
+
"12covered_with_a_quilt_and_exposed_other_parts_of_the_body": 1,
|
23 |
+
"13has_nothing_to_do_with_11_and_12_above": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"model_type": "vit",
|
27 |
+
"num_attention_heads": 16,
|
28 |
+
"num_channels": 3,
|
29 |
+
"num_hidden_layers": 24,
|
30 |
+
"patch_size": 16,
|
31 |
+
"problem_type": "single_label_classification",
|
32 |
+
"qkv_bias": true,
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.36.1"
|
35 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a8b0b88f79ad52c0adda5edd9e20c2b73f4afeaee267a58ab9d4aa4fac6d3c1
|
3 |
+
size 1213265372
|
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:fb31623627eda26ed00438e03593456b35ba995bf5102ece264666d213ed9d51
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "tangfei/autotrain-data-autotrain-3u170-rx6d7",
|
3 |
+
"model": "google/vit-large-patch16-224",
|
4 |
+
"username": "tangfei",
|
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": "/tmp/model",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "fp32",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"save_strategy": "epoch",
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "tangfei/autotrain-3u170-rx6d7",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|