Upload folder using huggingface_hub
Browse files- README.md +32 -0
- checkpoint-12/config.json +33 -0
- checkpoint-12/model.safetensors +3 -0
- checkpoint-12/optimizer.pt +3 -0
- checkpoint-12/rng_state.pth +3 -0
- checkpoint-12/scheduler.pt +3 -0
- checkpoint-12/trainer_state.json +132 -0
- checkpoint-12/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 |
+
- dvs/autotrain-data-autotrain-kisd2-y8ibj
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
loss: 0.4466552734375
|
23 |
+
|
24 |
+
f1: 1.0
|
25 |
+
|
26 |
+
precision: 1.0
|
27 |
+
|
28 |
+
recall: 1.0
|
29 |
+
|
30 |
+
auc: 1.0
|
31 |
+
|
32 |
+
accuracy: 1.0
|
checkpoint-12/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": "mulder",
|
14 |
+
"1": "scully"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"mulder": 0,
|
21 |
+
"scully": 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.37.0"
|
33 |
+
}
|
checkpoint-12/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5bf9f5886a14c355300d0f63aeceeb45457cd6635c91f3af3964205ba7b8d63
|
3 |
+
size 343223968
|
checkpoint-12/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ceb06700532571e19f26ab4279304641f98a1240bd85488e9dc04200d4a274de
|
3 |
+
size 686568890
|
checkpoint-12/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1eb5bed9f156ad999108926cfddc79fe4c9d2ede0900e133770f3bb23804cc8c
|
3 |
+
size 14244
|
checkpoint-12/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2646a5c68a2e6e3c323dae609f38aff33d23d1d30e4fa67a2c425c4e419cb039
|
3 |
+
size 1064
|
checkpoint-12/trainer_state.json
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.4466552734375,
|
3 |
+
"best_model_checkpoint": "/tmp/model/checkpoint-12",
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 12,
|
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.25,
|
13 |
+
"learning_rate": 2.5e-05,
|
14 |
+
"loss": 0.5942,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.5,
|
19 |
+
"learning_rate": 5e-05,
|
20 |
+
"loss": 0.6104,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.75,
|
25 |
+
"learning_rate": 4.5e-05,
|
26 |
+
"loss": 0.8108,
|
27 |
+
"step": 3
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 1.0,
|
31 |
+
"learning_rate": 4.5e-05,
|
32 |
+
"loss": 1.2256,
|
33 |
+
"step": 4
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 1.0,
|
37 |
+
"eval_accuracy": 0.42857142857142855,
|
38 |
+
"eval_auc": 1.0,
|
39 |
+
"eval_f1": 0.0,
|
40 |
+
"eval_loss": 0.6931501030921936,
|
41 |
+
"eval_precision": 0.0,
|
42 |
+
"eval_recall": 0.0,
|
43 |
+
"eval_runtime": 0.1781,
|
44 |
+
"eval_samples_per_second": 39.307,
|
45 |
+
"eval_steps_per_second": 5.615,
|
46 |
+
"step": 4
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.25,
|
50 |
+
"learning_rate": 4e-05,
|
51 |
+
"loss": 0.5964,
|
52 |
+
"step": 5
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 1.5,
|
56 |
+
"learning_rate": 4e-05,
|
57 |
+
"loss": 0.633,
|
58 |
+
"step": 6
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.75,
|
62 |
+
"learning_rate": 3.5e-05,
|
63 |
+
"loss": 0.6581,
|
64 |
+
"step": 7
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 2.0,
|
68 |
+
"learning_rate": 3.5e-05,
|
69 |
+
"loss": 0.4944,
|
70 |
+
"step": 8
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"epoch": 2.0,
|
74 |
+
"eval_accuracy": 0.5714285714285714,
|
75 |
+
"eval_auc": 1.0,
|
76 |
+
"eval_f1": 0.4,
|
77 |
+
"eval_loss": 0.5654993653297424,
|
78 |
+
"eval_precision": 1.0,
|
79 |
+
"eval_recall": 0.25,
|
80 |
+
"eval_runtime": 0.1786,
|
81 |
+
"eval_samples_per_second": 39.192,
|
82 |
+
"eval_steps_per_second": 5.599,
|
83 |
+
"step": 8
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 2.25,
|
87 |
+
"learning_rate": 3e-05,
|
88 |
+
"loss": 0.429,
|
89 |
+
"step": 9
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"epoch": 2.5,
|
93 |
+
"learning_rate": 2.5e-05,
|
94 |
+
"loss": 0.4291,
|
95 |
+
"step": 10
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 2.75,
|
99 |
+
"learning_rate": 2e-05,
|
100 |
+
"loss": 0.5811,
|
101 |
+
"step": 11
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 3.0,
|
105 |
+
"learning_rate": 1.5e-05,
|
106 |
+
"loss": 0.637,
|
107 |
+
"step": 12
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 3.0,
|
111 |
+
"eval_accuracy": 1.0,
|
112 |
+
"eval_auc": 1.0,
|
113 |
+
"eval_f1": 1.0,
|
114 |
+
"eval_loss": 0.4466552734375,
|
115 |
+
"eval_precision": 1.0,
|
116 |
+
"eval_recall": 1.0,
|
117 |
+
"eval_runtime": 0.1756,
|
118 |
+
"eval_samples_per_second": 39.861,
|
119 |
+
"eval_steps_per_second": 5.694,
|
120 |
+
"step": 12
|
121 |
+
}
|
122 |
+
],
|
123 |
+
"logging_steps": 1,
|
124 |
+
"max_steps": 12,
|
125 |
+
"num_input_tokens_seen": 0,
|
126 |
+
"num_train_epochs": 3,
|
127 |
+
"save_steps": 500,
|
128 |
+
"total_flos": 6276851158781952.0,
|
129 |
+
"train_batch_size": 8,
|
130 |
+
"trial_name": null,
|
131 |
+
"trial_params": null
|
132 |
+
}
|
checkpoint-12/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f45963c9c0569460957ff8b2be2285a92afc7a9435910d0b06c5d88704ec9e3
|
3 |
+
size 4728
|
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": "mulder",
|
14 |
+
"1": "scully"
|
15 |
+
},
|
16 |
+
"image_size": 224,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"mulder": 0,
|
21 |
+
"scully": 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.37.0"
|
33 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5bf9f5886a14c355300d0f63aeceeb45457cd6635c91f3af3964205ba7b8d63
|
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:5f45963c9c0569460957ff8b2be2285a92afc7a9435910d0b06c5d88704ec9e3
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "dvs/autotrain-data-autotrain-kisd2-y8ibj",
|
3 |
+
"model": "google/vit-base-patch16-224",
|
4 |
+
"username": "dvs",
|
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": "fp16",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"save_strategy": "epoch",
|
23 |
+
"push_to_hub": true,
|
24 |
+
"repo_id": "dvs/autotrain-kisd2-y8ibj",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|