Upload folder using huggingface_hub
Browse files- README.md +41 -0
- checkpoint-2/config.json +37 -0
- checkpoint-2/model.safetensors +3 -0
- checkpoint-2/optimizer.pt +3 -0
- checkpoint-2/rng_state.pth +3 -0
- checkpoint-2/scheduler.pt +3 -0
- checkpoint-2/trainer_state.json +74 -0
- checkpoint-2/training_args.bin +3 -0
- config.json +37 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Sep04_13-52-28_r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb/events.out.tfevents.1725457949.r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb.147.0 +2 -2
- runs/Sep04_13-52-28_r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb/events.out.tfevents.1725458017.r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb.147.1 +3 -0
- training_args.bin +3 -0
- training_params.json +29 -0
README.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
base_model: google/vit-base-patch16-224
|
7 |
+
widget:
|
8 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
9 |
+
example_title: Tiger
|
10 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
11 |
+
example_title: Teapot
|
12 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
+
example_title: Palace
|
14 |
+
---
|
15 |
+
|
16 |
+
# Model Trained Using AutoTrain
|
17 |
+
|
18 |
+
- Problem type: Image Classification
|
19 |
+
|
20 |
+
## Validation Metrics
|
21 |
+
loss: 1.4069738388061523
|
22 |
+
|
23 |
+
f1_macro: 0.0
|
24 |
+
|
25 |
+
f1_micro: 0.0
|
26 |
+
|
27 |
+
f1_weighted: 0.0
|
28 |
+
|
29 |
+
precision_macro: 0.0
|
30 |
+
|
31 |
+
precision_micro: 0.0
|
32 |
+
|
33 |
+
precision_weighted: 0.0
|
34 |
+
|
35 |
+
recall_macro: 0.0
|
36 |
+
|
37 |
+
recall_micro: 0.0
|
38 |
+
|
39 |
+
recall_weighted: 0.0
|
40 |
+
|
41 |
+
accuracy: 0.0
|
checkpoint-2/config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 4,
|
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": "0",
|
14 |
+
"1": "1",
|
15 |
+
"2": "2",
|
16 |
+
"3": "3"
|
17 |
+
},
|
18 |
+
"image_size": 224,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"0": 0,
|
23 |
+
"1": 1,
|
24 |
+
"2": 2,
|
25 |
+
"3": 3
|
26 |
+
},
|
27 |
+
"layer_norm_eps": 1e-12,
|
28 |
+
"model_type": "vit",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_channels": 3,
|
31 |
+
"num_hidden_layers": 12,
|
32 |
+
"patch_size": 16,
|
33 |
+
"problem_type": "single_label_classification",
|
34 |
+
"qkv_bias": true,
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.44.1"
|
37 |
+
}
|
checkpoint-2/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14784d936a7b4b22b06426b6b8c264d98ef2b12fadfb8f4bba0362ae3c6a67ab
|
3 |
+
size 343230128
|
checkpoint-2/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5c73b36e14705a05737196359febe323a68e2e5d46be707b014c6b52b091783
|
3 |
+
size 686575546
|
checkpoint-2/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a62d2dae78cf8353b89576a24a03a7314ead6cd421eb29994c963b94e0a28f0
|
3 |
+
size 13990
|
checkpoint-2/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba5dddc2fa8a733dff0131eb90eb56cf18e8438866994f03c63083a2de07cfee
|
3 |
+
size 1064
|
checkpoint-2/trainer_state.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 1.4069738388061523,
|
3 |
+
"best_model_checkpoint": "autotrain-g2g80-iwcfm/checkpoint-2",
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 2,
|
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.5,
|
13 |
+
"grad_norm": 9.66530704498291,
|
14 |
+
"learning_rate": 5e-05,
|
15 |
+
"loss": 1.4518,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"grad_norm": 9.317709922790527,
|
21 |
+
"learning_rate": 4e-05,
|
22 |
+
"loss": 1.4789,
|
23 |
+
"step": 2
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_accuracy": 0.0,
|
28 |
+
"eval_f1_macro": 0.0,
|
29 |
+
"eval_f1_micro": 0.0,
|
30 |
+
"eval_f1_weighted": 0.0,
|
31 |
+
"eval_loss": 1.4069738388061523,
|
32 |
+
"eval_precision_macro": 0.0,
|
33 |
+
"eval_precision_micro": 0.0,
|
34 |
+
"eval_precision_weighted": 0.0,
|
35 |
+
"eval_recall_macro": 0.0,
|
36 |
+
"eval_recall_micro": 0.0,
|
37 |
+
"eval_recall_weighted": 0.0,
|
38 |
+
"eval_runtime": 1.2944,
|
39 |
+
"eval_samples_per_second": 3.09,
|
40 |
+
"eval_steps_per_second": 0.773,
|
41 |
+
"step": 2
|
42 |
+
}
|
43 |
+
],
|
44 |
+
"logging_steps": 1,
|
45 |
+
"max_steps": 6,
|
46 |
+
"num_input_tokens_seen": 0,
|
47 |
+
"num_train_epochs": 3,
|
48 |
+
"save_steps": 500,
|
49 |
+
"stateful_callbacks": {
|
50 |
+
"EarlyStoppingCallback": {
|
51 |
+
"args": {
|
52 |
+
"early_stopping_patience": 5,
|
53 |
+
"early_stopping_threshold": 0.01
|
54 |
+
},
|
55 |
+
"attributes": {
|
56 |
+
"early_stopping_patience_counter": 0
|
57 |
+
}
|
58 |
+
},
|
59 |
+
"TrainerControl": {
|
60 |
+
"args": {
|
61 |
+
"should_epoch_stop": false,
|
62 |
+
"should_evaluate": false,
|
63 |
+
"should_log": false,
|
64 |
+
"should_save": true,
|
65 |
+
"should_training_stop": false
|
66 |
+
},
|
67 |
+
"attributes": {}
|
68 |
+
}
|
69 |
+
},
|
70 |
+
"total_flos": 1239894058991616.0,
|
71 |
+
"train_batch_size": 8,
|
72 |
+
"trial_name": null,
|
73 |
+
"trial_params": null
|
74 |
+
}
|
checkpoint-2/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:696c2c4e6d522f0d564cc32df0fe6cef49406a19632fe641ac3360fb3280f700
|
3 |
+
size 5240
|
config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224",
|
3 |
+
"_num_labels": 4,
|
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": "0",
|
14 |
+
"1": "1",
|
15 |
+
"2": "2",
|
16 |
+
"3": "3"
|
17 |
+
},
|
18 |
+
"image_size": 224,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"0": 0,
|
23 |
+
"1": 1,
|
24 |
+
"2": 2,
|
25 |
+
"3": 3
|
26 |
+
},
|
27 |
+
"layer_norm_eps": 1e-12,
|
28 |
+
"model_type": "vit",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_channels": 3,
|
31 |
+
"num_hidden_layers": 12,
|
32 |
+
"patch_size": 16,
|
33 |
+
"problem_type": "single_label_classification",
|
34 |
+
"qkv_bias": true,
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.44.1"
|
37 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14784d936a7b4b22b06426b6b8c264d98ef2b12fadfb8f4bba0362ae3c6a67ab
|
3 |
+
size 343230128
|
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 |
+
}
|
runs/Sep04_13-52-28_r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb/events.out.tfevents.1725457949.r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb.147.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f93d31f00c92e15a088df5e20aa3a33964db20c6b9a45bdd29b31ef2d8ac3fd
|
3 |
+
size 9048
|
runs/Sep04_13-52-28_r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb/events.out.tfevents.1725458017.r-palarisk-autotrain-advanced-bf4zk604-46d1c-5jxmb.147.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8315a1fe7fd6b13dbd1129e5413062e80e1a663a62b30a9964722e65cb2eaf5d
|
3 |
+
size 906
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:696c2c4e6d522f0d564cc32df0fe6cef49406a19632fe641ac3360fb3280f700
|
3 |
+
size 5240
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "autotrain-g2g80-iwcfm/autotrain-data",
|
3 |
+
"model": "google/vit-base-patch16-224",
|
4 |
+
"username": "palarisk",
|
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-g2g80-iwcfm",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "none",
|
21 |
+
"save_total_limit": 1,
|
22 |
+
"push_to_hub": true,
|
23 |
+
"eval_strategy": "epoch",
|
24 |
+
"image_column": "autotrain_image",
|
25 |
+
"target_column": "autotrain_label",
|
26 |
+
"log": "tensorboard",
|
27 |
+
"early_stopping_patience": 5,
|
28 |
+
"early_stopping_threshold": 0.01
|
29 |
+
}
|