Upload folder using huggingface_hub
Browse files- README.md +42 -0
- checkpoint-127/config.json +58 -0
- checkpoint-127/model.safetensors +3 -0
- checkpoint-127/optimizer.pt +3 -0
- checkpoint-127/rng_state.pth +3 -0
- checkpoint-127/scheduler.pt +3 -0
- checkpoint-127/trainer_state.json +165 -0
- checkpoint-127/training_args.bin +3 -0
- config.json +58 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- training_args.bin +3 -0
- training_params.json +28 -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 |
+
- MichalGas/autotrain-data-ycjn-unff-povv
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
loss: nan
|
23 |
+
|
24 |
+
f1_macro: 0.05573770491803279
|
25 |
+
|
26 |
+
f1_micro: 0.20078740157480315
|
27 |
+
|
28 |
+
f1_weighted: 0.06714857364140958
|
29 |
+
|
30 |
+
precision_macro: 0.03346456692913386
|
31 |
+
|
32 |
+
precision_micro: 0.20078740157480315
|
33 |
+
|
34 |
+
precision_weighted: 0.040315580631161266
|
35 |
+
|
36 |
+
recall_macro: 0.16666666666666666
|
37 |
+
|
38 |
+
recall_micro: 0.20078740157480315
|
39 |
+
|
40 |
+
recall_weighted: 0.20078740157480315
|
41 |
+
|
42 |
+
accuracy: 0.20078740157480315
|
checkpoint-127/config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"_num_labels": 6,
|
4 |
+
"architectures": [
|
5 |
+
"ResNetForImageClassification"
|
6 |
+
],
|
7 |
+
"depths": [
|
8 |
+
3,
|
9 |
+
4,
|
10 |
+
6,
|
11 |
+
3
|
12 |
+
],
|
13 |
+
"downsample_in_bottleneck": false,
|
14 |
+
"downsample_in_first_stage": false,
|
15 |
+
"embedding_size": 64,
|
16 |
+
"hidden_act": "relu",
|
17 |
+
"hidden_sizes": [
|
18 |
+
256,
|
19 |
+
512,
|
20 |
+
1024,
|
21 |
+
2048
|
22 |
+
],
|
23 |
+
"id2label": {
|
24 |
+
"0": "bipolars",
|
25 |
+
"1": "clippers",
|
26 |
+
"2": "graspers",
|
27 |
+
"3": "hooks",
|
28 |
+
"4": "irrigators",
|
29 |
+
"5": "scissorss"
|
30 |
+
},
|
31 |
+
"label2id": {
|
32 |
+
"bipolars": 0,
|
33 |
+
"clippers": 1,
|
34 |
+
"graspers": 2,
|
35 |
+
"hooks": 3,
|
36 |
+
"irrigators": 4,
|
37 |
+
"scissorss": 5
|
38 |
+
},
|
39 |
+
"layer_type": "bottleneck",
|
40 |
+
"model_type": "resnet",
|
41 |
+
"num_channels": 3,
|
42 |
+
"out_features": [
|
43 |
+
"stage4"
|
44 |
+
],
|
45 |
+
"out_indices": [
|
46 |
+
4
|
47 |
+
],
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"stage_names": [
|
50 |
+
"stem",
|
51 |
+
"stage1",
|
52 |
+
"stage2",
|
53 |
+
"stage3",
|
54 |
+
"stage4"
|
55 |
+
],
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.36.1"
|
58 |
+
}
|
checkpoint-127/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f9b4d3ae56189fddc44e3ece19ecd43852944599fd0596d432e26d1628ad299
|
3 |
+
size 94335752
|
checkpoint-127/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96d9f11c24e794f5102ad8931c474c88ae3638eec1fcd4cff1651fc514f0fe0a
|
3 |
+
size 1576
|
checkpoint-127/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:91a801bb8df8797f5014ccec00c7d2629028a7a78553be3c9b5fa2b4e3a7916a
|
3 |
+
size 14244
|
checkpoint-127/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:568b4092fe5f2747f46b3b3c6e6e0c8fe23d6f86bafcc38694a95b43c8ac044b
|
3 |
+
size 1064
|
checkpoint-127/trainer_state.json
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": NaN,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-127",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 127,
|
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.05,
|
13 |
+
"learning_rate": 0.0,
|
14 |
+
"loss": 0.0,
|
15 |
+
"step": 6
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.09,
|
19 |
+
"learning_rate": 0.0,
|
20 |
+
"loss": 0.0,
|
21 |
+
"step": 12
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.14,
|
25 |
+
"learning_rate": 0.0,
|
26 |
+
"loss": 0.0,
|
27 |
+
"step": 18
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.19,
|
31 |
+
"learning_rate": 0.0,
|
32 |
+
"loss": 0.0,
|
33 |
+
"step": 24
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.24,
|
37 |
+
"learning_rate": 0.0,
|
38 |
+
"loss": 0.0,
|
39 |
+
"step": 30
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.28,
|
43 |
+
"learning_rate": 0.0,
|
44 |
+
"loss": 0.0,
|
45 |
+
"step": 36
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.33,
|
49 |
+
"learning_rate": 0.0,
|
50 |
+
"loss": 0.0,
|
51 |
+
"step": 42
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.38,
|
55 |
+
"learning_rate": 0.0,
|
56 |
+
"loss": 0.0,
|
57 |
+
"step": 48
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 0.43,
|
61 |
+
"learning_rate": 0.0,
|
62 |
+
"loss": 0.0,
|
63 |
+
"step": 54
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 0.47,
|
67 |
+
"learning_rate": 0.0,
|
68 |
+
"loss": 0.0,
|
69 |
+
"step": 60
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.52,
|
73 |
+
"learning_rate": 0.0,
|
74 |
+
"loss": 0.0,
|
75 |
+
"step": 66
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 0.57,
|
79 |
+
"learning_rate": 0.0,
|
80 |
+
"loss": 0.0,
|
81 |
+
"step": 72
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 0.61,
|
85 |
+
"learning_rate": 0.0,
|
86 |
+
"loss": 0.0,
|
87 |
+
"step": 78
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 0.66,
|
91 |
+
"learning_rate": 0.0,
|
92 |
+
"loss": 0.0,
|
93 |
+
"step": 84
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.71,
|
97 |
+
"learning_rate": 0.0,
|
98 |
+
"loss": 0.0,
|
99 |
+
"step": 90
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.76,
|
103 |
+
"learning_rate": 0.0,
|
104 |
+
"loss": 0.0,
|
105 |
+
"step": 96
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 0.8,
|
109 |
+
"learning_rate": 0.0,
|
110 |
+
"loss": 0.0,
|
111 |
+
"step": 102
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 0.85,
|
115 |
+
"learning_rate": 0.0,
|
116 |
+
"loss": 0.0,
|
117 |
+
"step": 108
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 0.9,
|
121 |
+
"learning_rate": 0.0,
|
122 |
+
"loss": 0.0,
|
123 |
+
"step": 114
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.94,
|
127 |
+
"learning_rate": 0.0,
|
128 |
+
"loss": 0.0,
|
129 |
+
"step": 120
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.99,
|
133 |
+
"learning_rate": 0.0,
|
134 |
+
"loss": 0.0,
|
135 |
+
"step": 126
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 1.0,
|
139 |
+
"eval_accuracy": 0.20078740157480315,
|
140 |
+
"eval_f1_macro": 0.05573770491803279,
|
141 |
+
"eval_f1_micro": 0.20078740157480315,
|
142 |
+
"eval_f1_weighted": 0.06714857364140958,
|
143 |
+
"eval_loss": NaN,
|
144 |
+
"eval_precision_macro": 0.03346456692913386,
|
145 |
+
"eval_precision_micro": 0.20078740157480315,
|
146 |
+
"eval_precision_weighted": 0.040315580631161266,
|
147 |
+
"eval_recall_macro": 0.16666666666666666,
|
148 |
+
"eval_recall_micro": 0.20078740157480315,
|
149 |
+
"eval_recall_weighted": 0.20078740157480315,
|
150 |
+
"eval_runtime": 5.044,
|
151 |
+
"eval_samples_per_second": 50.357,
|
152 |
+
"eval_steps_per_second": 3.172,
|
153 |
+
"step": 127
|
154 |
+
}
|
155 |
+
],
|
156 |
+
"logging_steps": 6,
|
157 |
+
"max_steps": 381,
|
158 |
+
"num_input_tokens_seen": 0,
|
159 |
+
"num_train_epochs": 3,
|
160 |
+
"save_steps": 500,
|
161 |
+
"total_flos": 2.156144787965952e+16,
|
162 |
+
"train_batch_size": 8,
|
163 |
+
"trial_name": null,
|
164 |
+
"trial_params": null
|
165 |
+
}
|
checkpoint-127/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84ef33c860001f3e0592f1afbc83758f26ed367ab729a9fed9dd848ad5a9daf5
|
3 |
+
size 4728
|
config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"_num_labels": 6,
|
4 |
+
"architectures": [
|
5 |
+
"ResNetForImageClassification"
|
6 |
+
],
|
7 |
+
"depths": [
|
8 |
+
3,
|
9 |
+
4,
|
10 |
+
6,
|
11 |
+
3
|
12 |
+
],
|
13 |
+
"downsample_in_bottleneck": false,
|
14 |
+
"downsample_in_first_stage": false,
|
15 |
+
"embedding_size": 64,
|
16 |
+
"hidden_act": "relu",
|
17 |
+
"hidden_sizes": [
|
18 |
+
256,
|
19 |
+
512,
|
20 |
+
1024,
|
21 |
+
2048
|
22 |
+
],
|
23 |
+
"id2label": {
|
24 |
+
"0": "bipolars",
|
25 |
+
"1": "clippers",
|
26 |
+
"2": "graspers",
|
27 |
+
"3": "hooks",
|
28 |
+
"4": "irrigators",
|
29 |
+
"5": "scissorss"
|
30 |
+
},
|
31 |
+
"label2id": {
|
32 |
+
"bipolars": 0,
|
33 |
+
"clippers": 1,
|
34 |
+
"graspers": 2,
|
35 |
+
"hooks": 3,
|
36 |
+
"irrigators": 4,
|
37 |
+
"scissorss": 5
|
38 |
+
},
|
39 |
+
"layer_type": "bottleneck",
|
40 |
+
"model_type": "resnet",
|
41 |
+
"num_channels": 3,
|
42 |
+
"out_features": [
|
43 |
+
"stage4"
|
44 |
+
],
|
45 |
+
"out_indices": [
|
46 |
+
4
|
47 |
+
],
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"stage_names": [
|
50 |
+
"stem",
|
51 |
+
"stage1",
|
52 |
+
"stage2",
|
53 |
+
"stage3",
|
54 |
+
"stage4"
|
55 |
+
],
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.36.1"
|
58 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f9b4d3ae56189fddc44e3ece19ecd43852944599fd0596d432e26d1628ad299
|
3 |
+
size 94335752
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ConvNextImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"shortest_edge": 224
|
21 |
+
}
|
22 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:84ef33c860001f3e0592f1afbc83758f26ed367ab729a9fed9dd848ad5a9daf5
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "MichalGas/autotrain-data-ycjn-unff-povv",
|
3 |
+
"model": "microsoft/resnet-50",
|
4 |
+
"lr": 5e-05,
|
5 |
+
"epochs": 3,
|
6 |
+
"batch_size": 8,
|
7 |
+
"warmup_ratio": 0.1,
|
8 |
+
"gradient_accumulation": 1,
|
9 |
+
"optimizer": "adamw_torch",
|
10 |
+
"scheduler": "linear",
|
11 |
+
"weight_decay": 0.0,
|
12 |
+
"max_grad_norm": 1.0,
|
13 |
+
"seed": 42,
|
14 |
+
"train_split": "train",
|
15 |
+
"valid_split": "validation",
|
16 |
+
"logging_steps": -1,
|
17 |
+
"project_name": "/tmp/model",
|
18 |
+
"auto_find_batch_size": true,
|
19 |
+
"mixed_precision": "fp16",
|
20 |
+
"save_total_limit": 1,
|
21 |
+
"save_strategy": "epoch",
|
22 |
+
"push_to_hub": true,
|
23 |
+
"repo_id": "MichalGas/ycjn-unff-povv-0",
|
24 |
+
"evaluation_strategy": "epoch",
|
25 |
+
"image_column": "autotrain_image",
|
26 |
+
"target_column": "autotrain_label",
|
27 |
+
"log": "none"
|
28 |
+
}
|