Upload folder using huggingface_hub
Browse files- README.md +42 -0
- checkpoint-5/config.json +56 -0
- checkpoint-5/model.safetensors +3 -0
- checkpoint-5/optimizer.pt +3 -0
- checkpoint-5/rng_state.pth +3 -0
- checkpoint-5/scheduler.pt +3 -0
- checkpoint-5/trainer_state.json +69 -0
- checkpoint-5/training_args.bin +3 -0
- config.json +56 -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 |
+
- chanhua/autotrain-data-autotrain-82nel-cfd2f
|
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.06666666666666668
|
25 |
+
|
26 |
+
f1_micro: 0.20000000000000004
|
27 |
+
|
28 |
+
f1_weighted: 0.06666666666666668
|
29 |
+
|
30 |
+
precision_macro: 0.04
|
31 |
+
|
32 |
+
precision_micro: 0.2
|
33 |
+
|
34 |
+
precision_weighted: 0.04
|
35 |
+
|
36 |
+
recall_macro: 0.2
|
37 |
+
|
38 |
+
recall_micro: 0.2
|
39 |
+
|
40 |
+
recall_weighted: 0.2
|
41 |
+
|
42 |
+
accuracy: 0.2
|
checkpoint-5/config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"_num_labels": 5,
|
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": "10_just_a_pure_cotton_quilt",
|
25 |
+
"1": "11_cover_the_quilt_with_only_the_head_exposed",
|
26 |
+
"2": "12_just_a_pure_face",
|
27 |
+
"3": "13_cover_the_quilt_to_expose_the_head_and_shoulders",
|
28 |
+
"4": "14_has_nothing_to_do_with_11_and_13_above"
|
29 |
+
},
|
30 |
+
"label2id": {
|
31 |
+
"10_just_a_pure_cotton_quilt": 0,
|
32 |
+
"11_cover_the_quilt_with_only_the_head_exposed": 1,
|
33 |
+
"12_just_a_pure_face": 2,
|
34 |
+
"13_cover_the_quilt_to_expose_the_head_and_shoulders": 3,
|
35 |
+
"14_has_nothing_to_do_with_11_and_13_above": 4
|
36 |
+
},
|
37 |
+
"layer_type": "bottleneck",
|
38 |
+
"model_type": "resnet",
|
39 |
+
"num_channels": 3,
|
40 |
+
"out_features": [
|
41 |
+
"stage4"
|
42 |
+
],
|
43 |
+
"out_indices": [
|
44 |
+
4
|
45 |
+
],
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"stage_names": [
|
48 |
+
"stem",
|
49 |
+
"stage1",
|
50 |
+
"stage2",
|
51 |
+
"stage3",
|
52 |
+
"stage4"
|
53 |
+
],
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.36.1"
|
56 |
+
}
|
checkpoint-5/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93d713b1fb29f689f8520f92e3f7d660e4ff93780bc56582f85afc2dd3509701
|
3 |
+
size 94327540
|
checkpoint-5/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2fadbc480f648140725db2d9a7933f4323031ffa76e8542b50a79c97eccd2b21
|
3 |
+
size 188277178
|
checkpoint-5/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:737244e7387ea1faf1fca2e8bcd151a65250d3da4d78566c99384172d0320686
|
3 |
+
size 13990
|
checkpoint-5/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9e6cc9e2bbfd55b279092f1e7dca7d1edf31d36ea1e594195628b26a9264ad2
|
3 |
+
size 1064
|
checkpoint-5/trainer_state.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": NaN,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-5",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 5,
|
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 |
+
"learning_rate": 2.5e-05,
|
14 |
+
"loss": 0.0,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.4,
|
19 |
+
"learning_rate": 5e-05,
|
20 |
+
"loss": 0.0,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.6,
|
25 |
+
"learning_rate": 4.615384615384616e-05,
|
26 |
+
"loss": 0.0,
|
27 |
+
"step": 3
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.8,
|
31 |
+
"learning_rate": 4.230769230769231e-05,
|
32 |
+
"loss": 0.0,
|
33 |
+
"step": 4
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 1.0,
|
37 |
+
"learning_rate": 3.846153846153846e-05,
|
38 |
+
"loss": 0.0,
|
39 |
+
"step": 5
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 1.0,
|
43 |
+
"eval_accuracy": 0.2,
|
44 |
+
"eval_f1_macro": 0.06666666666666668,
|
45 |
+
"eval_f1_micro": 0.20000000000000004,
|
46 |
+
"eval_f1_weighted": 0.06666666666666668,
|
47 |
+
"eval_loss": NaN,
|
48 |
+
"eval_precision_macro": 0.04,
|
49 |
+
"eval_precision_micro": 0.2,
|
50 |
+
"eval_precision_weighted": 0.04,
|
51 |
+
"eval_recall_macro": 0.2,
|
52 |
+
"eval_recall_micro": 0.2,
|
53 |
+
"eval_recall_weighted": 0.2,
|
54 |
+
"eval_runtime": 1.4358,
|
55 |
+
"eval_samples_per_second": 6.965,
|
56 |
+
"eval_steps_per_second": 0.696,
|
57 |
+
"step": 5
|
58 |
+
}
|
59 |
+
],
|
60 |
+
"logging_steps": 1,
|
61 |
+
"max_steps": 15,
|
62 |
+
"num_input_tokens_seen": 0,
|
63 |
+
"num_train_epochs": 3,
|
64 |
+
"save_steps": 500,
|
65 |
+
"total_flos": 849638208061440.0,
|
66 |
+
"train_batch_size": 8,
|
67 |
+
"trial_name": null,
|
68 |
+
"trial_params": null
|
69 |
+
}
|
checkpoint-5/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b2843b0a57b374c98c1147bc8e6bd5363c58e316e1fe9a4f88cef01169f479b
|
3 |
+
size 4728
|
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/resnet-50",
|
3 |
+
"_num_labels": 5,
|
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": "10_just_a_pure_cotton_quilt",
|
25 |
+
"1": "11_cover_the_quilt_with_only_the_head_exposed",
|
26 |
+
"2": "12_just_a_pure_face",
|
27 |
+
"3": "13_cover_the_quilt_to_expose_the_head_and_shoulders",
|
28 |
+
"4": "14_has_nothing_to_do_with_11_and_13_above"
|
29 |
+
},
|
30 |
+
"label2id": {
|
31 |
+
"10_just_a_pure_cotton_quilt": 0,
|
32 |
+
"11_cover_the_quilt_with_only_the_head_exposed": 1,
|
33 |
+
"12_just_a_pure_face": 2,
|
34 |
+
"13_cover_the_quilt_to_expose_the_head_and_shoulders": 3,
|
35 |
+
"14_has_nothing_to_do_with_11_and_13_above": 4
|
36 |
+
},
|
37 |
+
"layer_type": "bottleneck",
|
38 |
+
"model_type": "resnet",
|
39 |
+
"num_channels": 3,
|
40 |
+
"out_features": [
|
41 |
+
"stage4"
|
42 |
+
],
|
43 |
+
"out_indices": [
|
44 |
+
4
|
45 |
+
],
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"stage_names": [
|
48 |
+
"stem",
|
49 |
+
"stage1",
|
50 |
+
"stage2",
|
51 |
+
"stage3",
|
52 |
+
"stage4"
|
53 |
+
],
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.36.1"
|
56 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93d713b1fb29f689f8520f92e3f7d660e4ff93780bc56582f85afc2dd3509701
|
3 |
+
size 94327540
|
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:4b2843b0a57b374c98c1147bc8e6bd5363c58e316e1fe9a4f88cef01169f479b
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "chanhua/autotrain-data-autotrain-82nel-cfd2f",
|
3 |
+
"model": "microsoft/resnet-50",
|
4 |
+
"username": "chanhua",
|
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": "no",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"save_strategy": "epoch",
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "chanhua/autotrain-82nel-cfd2f",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|