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 |
+
- autotrain-0kxqs-2lz9p/autotrain-data
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Trained Using AutoTrain
|
18 |
+
|
19 |
+
- Problem type: Image Classification
|
20 |
+
|
21 |
+
## Validation Metricsg
|
22 |
+
loss: 0.378662109375
|
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:3cecf6b54014acb320606ad1e17f6ed3032a5431461b81fe3a93e905c3e6e988
|
3 |
+
size 343223968
|
checkpoint-12/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4631c55a1af4eaba4f79cbb14984e3ba79abde290f75fe1c6e7f8f00e00a1f56
|
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:93701afafb82cd5b48eeea1171fd93817ea95e0fd71ece0f7a98b1ca79d5af15
|
3 |
+
size 14244
|
checkpoint-12/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ac1a734ef79799ab7f70c522071a058de8a1efb1bfead2200e719eb5454da58
|
3 |
+
size 1064
|
checkpoint-12/trainer_state.json
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.378662109375,
|
3 |
+
"best_model_checkpoint": "autotrain-0kxqs-2lz9p/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.8049,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.5,
|
19 |
+
"learning_rate": 5e-05,
|
20 |
+
"loss": 0.8572,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.75,
|
25 |
+
"learning_rate": 4.5e-05,
|
26 |
+
"loss": 0.8177,
|
27 |
+
"step": 3
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 1.0,
|
31 |
+
"learning_rate": 4e-05,
|
32 |
+
"loss": 0.8083,
|
33 |
+
"step": 4
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 1.0,
|
37 |
+
"eval_accuracy": 0.8571428571428571,
|
38 |
+
"eval_auc": 1.0,
|
39 |
+
"eval_f1": 0.8571428571428571,
|
40 |
+
"eval_loss": 0.5485143065452576,
|
41 |
+
"eval_precision": 1.0,
|
42 |
+
"eval_recall": 0.75,
|
43 |
+
"eval_runtime": 0.236,
|
44 |
+
"eval_samples_per_second": 29.662,
|
45 |
+
"eval_steps_per_second": 4.237,
|
46 |
+
"step": 4
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.25,
|
50 |
+
"learning_rate": 3.5e-05,
|
51 |
+
"loss": 0.8636,
|
52 |
+
"step": 5
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 1.5,
|
56 |
+
"learning_rate": 3e-05,
|
57 |
+
"loss": 0.561,
|
58 |
+
"step": 6
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.75,
|
62 |
+
"learning_rate": 2.5e-05,
|
63 |
+
"loss": 0.5573,
|
64 |
+
"step": 7
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 2.0,
|
68 |
+
"learning_rate": 2e-05,
|
69 |
+
"loss": 0.8021,
|
70 |
+
"step": 8
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"epoch": 2.0,
|
74 |
+
"eval_accuracy": 1.0,
|
75 |
+
"eval_auc": 1.0,
|
76 |
+
"eval_f1": 1.0,
|
77 |
+
"eval_loss": 0.4144635498523712,
|
78 |
+
"eval_precision": 1.0,
|
79 |
+
"eval_recall": 1.0,
|
80 |
+
"eval_runtime": 0.2355,
|
81 |
+
"eval_samples_per_second": 29.721,
|
82 |
+
"eval_steps_per_second": 4.246,
|
83 |
+
"step": 8
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 2.25,
|
87 |
+
"learning_rate": 1.5e-05,
|
88 |
+
"loss": 0.6303,
|
89 |
+
"step": 9
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"epoch": 2.5,
|
93 |
+
"learning_rate": 1.5e-05,
|
94 |
+
"loss": 0.4593,
|
95 |
+
"step": 10
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 2.75,
|
99 |
+
"learning_rate": 1e-05,
|
100 |
+
"loss": 0.5066,
|
101 |
+
"step": 11
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 3.0,
|
105 |
+
"learning_rate": 5e-06,
|
106 |
+
"loss": 0.1292,
|
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.378662109375,
|
115 |
+
"eval_precision": 1.0,
|
116 |
+
"eval_recall": 1.0,
|
117 |
+
"eval_runtime": 0.2341,
|
118 |
+
"eval_samples_per_second": 29.9,
|
119 |
+
"eval_steps_per_second": 4.271,
|
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:3e84fe3f97566ec030e79296eb5fd9e8af3e9d68b52a260d50a4289099e8df63
|
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:3cecf6b54014acb320606ad1e17f6ed3032a5431461b81fe3a93e905c3e6e988
|
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:3e84fe3f97566ec030e79296eb5fd9e8af3e9d68b52a260d50a4289099e8df63
|
3 |
+
size 4728
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain-0kxqs-2lz9p/autotrain-data",
|
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": "autotrain-0kxqs-2lz9p",
|
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-0kxqs-2lz9p",
|
25 |
+
"evaluation_strategy": "epoch",
|
26 |
+
"image_column": "autotrain_image",
|
27 |
+
"target_column": "autotrain_label",
|
28 |
+
"log": "none"
|
29 |
+
}
|