wendys-llc
commited on
Upload folder using huggingface_hub
Browse files- README.md +32 -0
- checkpoint-15/config.json +33 -0
- checkpoint-15/model.safetensors +3 -0
- checkpoint-15/optimizer.pt +3 -0
- checkpoint-15/rng_state.pth +3 -0
- checkpoint-15/scheduler.pt +3 -0
- checkpoint-15/trainer_state.json +165 -0
- checkpoint-15/training_args.bin +3 -0
- config.json +33 -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,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-stfol-259iu/autotrain-data
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
loss: 0.5476600527763367
|
23 |
+
|
24 |
+
f1: 0.8000000000000002
|
25 |
+
|
26 |
+
precision: 0.8
|
27 |
+
|
28 |
+
recall: 0.8
|
29 |
+
|
30 |
+
auc: 0.9600000000000001
|
31 |
+
|
32 |
+
accuracy: 0.8
|
checkpoint-15/config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 2,
|
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": "negative",
|
14 |
+
"1": "positive"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"negative": 0,
|
21 |
+
"positive": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.38.1"
|
33 |
+
}
|
checkpoint-15/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:024bebd2751098ea2b8ffbb77f39321a48c0fbc9fe89873d87f86dce92230817
|
3 |
+
size 343223968
|
checkpoint-15/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ddba12fab79bd8700fac3332c4665e1d523e90552c72f1627fa8d6dc32df9e7
|
3 |
+
size 686563258
|
checkpoint-15/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7418d27a2c45be00ce5b32254b0aa77a46f3283fb6f72db3a3c507999de5bbf3
|
3 |
+
size 13926
|
checkpoint-15/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2d0facd13ec6092c2b43cce23b0a73463bc00999cd16da7cbf795867dc294419
|
3 |
+
size 1064
|
checkpoint-15/trainer_state.json
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.5476600527763367,
|
3 |
+
"best_model_checkpoint": "autotrain-stfol-259iu/checkpoint-15",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 15,
|
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.2,
|
13 |
+
"grad_norm": 12.681371688842773,
|
14 |
+
"learning_rate": 2.5e-05,
|
15 |
+
"loss": 0.9608,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.4,
|
20 |
+
"grad_norm": 8.062833786010742,
|
21 |
+
"learning_rate": 5e-05,
|
22 |
+
"loss": 0.7349,
|
23 |
+
"step": 2
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.6,
|
27 |
+
"grad_norm": 14.134114265441895,
|
28 |
+
"learning_rate": 4.615384615384616e-05,
|
29 |
+
"loss": 0.7334,
|
30 |
+
"step": 3
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.8,
|
34 |
+
"grad_norm": 7.968293190002441,
|
35 |
+
"learning_rate": 4.230769230769231e-05,
|
36 |
+
"loss": 0.5725,
|
37 |
+
"step": 4
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.0,
|
41 |
+
"grad_norm": 11.32354736328125,
|
42 |
+
"learning_rate": 3.846153846153846e-05,
|
43 |
+
"loss": 0.6612,
|
44 |
+
"step": 5
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.0,
|
48 |
+
"eval_accuracy": 0.6,
|
49 |
+
"eval_auc": 0.92,
|
50 |
+
"eval_f1": 0.6,
|
51 |
+
"eval_loss": 0.7027295827865601,
|
52 |
+
"eval_precision": 0.6,
|
53 |
+
"eval_recall": 0.6,
|
54 |
+
"eval_runtime": 2.7247,
|
55 |
+
"eval_samples_per_second": 3.67,
|
56 |
+
"eval_steps_per_second": 0.367,
|
57 |
+
"step": 5
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 1.2,
|
61 |
+
"grad_norm": 6.763383388519287,
|
62 |
+
"learning_rate": 3.461538461538462e-05,
|
63 |
+
"loss": 0.4969,
|
64 |
+
"step": 6
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 1.4,
|
68 |
+
"grad_norm": 5.934206485748291,
|
69 |
+
"learning_rate": 3.0769230769230774e-05,
|
70 |
+
"loss": 0.3405,
|
71 |
+
"step": 7
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 1.6,
|
75 |
+
"grad_norm": 6.117756366729736,
|
76 |
+
"learning_rate": 2.6923076923076923e-05,
|
77 |
+
"loss": 0.4799,
|
78 |
+
"step": 8
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 1.8,
|
82 |
+
"grad_norm": 6.462957382202148,
|
83 |
+
"learning_rate": 2.307692307692308e-05,
|
84 |
+
"loss": 0.3804,
|
85 |
+
"step": 9
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 2.0,
|
89 |
+
"grad_norm": 4.997406005859375,
|
90 |
+
"learning_rate": 1.923076923076923e-05,
|
91 |
+
"loss": 0.2619,
|
92 |
+
"step": 10
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 2.0,
|
96 |
+
"eval_accuracy": 0.8,
|
97 |
+
"eval_auc": 1.0,
|
98 |
+
"eval_f1": 0.8000000000000002,
|
99 |
+
"eval_loss": 0.5533014535903931,
|
100 |
+
"eval_precision": 0.8,
|
101 |
+
"eval_recall": 0.8,
|
102 |
+
"eval_runtime": 2.6603,
|
103 |
+
"eval_samples_per_second": 3.759,
|
104 |
+
"eval_steps_per_second": 0.376,
|
105 |
+
"step": 10
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 2.2,
|
109 |
+
"grad_norm": 5.67341423034668,
|
110 |
+
"learning_rate": 1.5384615384615387e-05,
|
111 |
+
"loss": 0.3258,
|
112 |
+
"step": 11
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"epoch": 2.4,
|
116 |
+
"grad_norm": 8.994383811950684,
|
117 |
+
"learning_rate": 1.153846153846154e-05,
|
118 |
+
"loss": 0.3379,
|
119 |
+
"step": 12
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 2.6,
|
123 |
+
"grad_norm": 4.565295696258545,
|
124 |
+
"learning_rate": 7.692307692307694e-06,
|
125 |
+
"loss": 0.2759,
|
126 |
+
"step": 13
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"epoch": 2.8,
|
130 |
+
"grad_norm": 3.521322011947632,
|
131 |
+
"learning_rate": 3.846153846153847e-06,
|
132 |
+
"loss": 0.1379,
|
133 |
+
"step": 14
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"epoch": 3.0,
|
137 |
+
"grad_norm": 6.472116470336914,
|
138 |
+
"learning_rate": 0.0,
|
139 |
+
"loss": 0.4121,
|
140 |
+
"step": 15
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 3.0,
|
144 |
+
"eval_accuracy": 0.8,
|
145 |
+
"eval_auc": 0.9600000000000001,
|
146 |
+
"eval_f1": 0.8000000000000002,
|
147 |
+
"eval_loss": 0.5476600527763367,
|
148 |
+
"eval_precision": 0.8,
|
149 |
+
"eval_recall": 0.8,
|
150 |
+
"eval_runtime": 3.3326,
|
151 |
+
"eval_samples_per_second": 3.001,
|
152 |
+
"eval_steps_per_second": 0.3,
|
153 |
+
"step": 15
|
154 |
+
}
|
155 |
+
],
|
156 |
+
"logging_steps": 1,
|
157 |
+
"max_steps": 15,
|
158 |
+
"num_input_tokens_seen": 0,
|
159 |
+
"num_train_epochs": 3,
|
160 |
+
"save_steps": 500,
|
161 |
+
"total_flos": 8834086816063488.0,
|
162 |
+
"train_batch_size": 8,
|
163 |
+
"trial_name": null,
|
164 |
+
"trial_params": null
|
165 |
+
}
|
checkpoint-15/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5adaedda7fa0e25e46dc4ffbfc888df70411b8ba7c687f5e43bcfb76d973b59
|
3 |
+
size 4920
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 2,
|
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": "negative",
|
14 |
+
"1": "positive"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"negative": 0,
|
21 |
+
"positive": 1
|
22 |
+
},
|
23 |
+
"layer_norm_eps": 1e-12,
|
24 |
+
"model_type": "vit",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_channels": 3,
|
27 |
+
"num_hidden_layers": 12,
|
28 |
+
"patch_size": 16,
|
29 |
+
"problem_type": "single_label_classification",
|
30 |
+
"qkv_bias": true,
|
31 |
+
"torch_dtype": "float32",
|
32 |
+
"transformers_version": "4.38.1"
|
33 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:024bebd2751098ea2b8ffbb77f39321a48c0fbc9fe89873d87f86dce92230817
|
3 |
+
size 343223968
|
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:b5adaedda7fa0e25e46dc4ffbfc888df70411b8ba7c687f5e43bcfb76d973b59
|
3 |
+
size 4920
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain-stfol-259iu/autotrain-data",
|
3 |
+
"model": "google/vit-base-patch16-224",
|
4 |
+
"username": "wendys-llc",
|
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-stfol-259iu",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "false",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"save_strategy": "epoch",
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "wendys-llc/autotrain-stfol-259iu",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|