Sioood commited on
Commit
f85fc2f
1 Parent(s): 065f039

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 0.905655026435852
22
+
23
+ f1: 0.6666666666666666
24
+
25
+ precision: 0.5
26
+
27
+ recall: 1.0
28
+
29
+ auc: 0.0
30
+
31
+ accuracy: 0.5
checkpoint-3/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": "painting",
14
+ "1": "statue"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "painting": 0,
21
+ "statue": 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.43.1"
33
+ }
checkpoint-3/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae87dd92526e0bcb4b896182a66498212d80b4e522d0ec719e59b61a50bb2ddc
3
+ size 343223968
checkpoint-3/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8eb0ad8c9e81fa0606af9669c775b957487b6c423c919638fd1f0e8a9d9276a
3
+ size 686563258
checkpoint-3/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:778aadf2118cc0bcefbf0dfad09f5a02407a09c5799fb9cf0c480efbabddbae1
3
+ size 13990
checkpoint-3/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8a41b254d981983d12a5d0bed17f4768863ab9648e2daeb9b71c409365e3b73
3
+ size 1064
checkpoint-3/trainer_state.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.905655026435852,
3
+ "best_model_checkpoint": "autotrain-test-image-classification/checkpoint-3",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 3,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 7.5393147468566895,
14
+ "learning_rate": 5e-05,
15
+ "loss": 0.676,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_accuracy": 0.0,
21
+ "eval_auc": 0.0,
22
+ "eval_f1": 0.0,
23
+ "eval_loss": 1.1967339515686035,
24
+ "eval_precision": 0.0,
25
+ "eval_recall": 0.0,
26
+ "eval_runtime": 0.8839,
27
+ "eval_samples_per_second": 2.263,
28
+ "eval_steps_per_second": 1.131,
29
+ "step": 1
30
+ },
31
+ {
32
+ "epoch": 2.0,
33
+ "grad_norm": 7.13826847076416,
34
+ "learning_rate": 2.5e-05,
35
+ "loss": 0.5203,
36
+ "step": 2
37
+ },
38
+ {
39
+ "epoch": 2.0,
40
+ "eval_accuracy": 0.5,
41
+ "eval_auc": 0.0,
42
+ "eval_f1": 0.6666666666666666,
43
+ "eval_loss": 0.9895367622375488,
44
+ "eval_precision": 0.5,
45
+ "eval_recall": 1.0,
46
+ "eval_runtime": 1.0298,
47
+ "eval_samples_per_second": 1.942,
48
+ "eval_steps_per_second": 0.971,
49
+ "step": 2
50
+ },
51
+ {
52
+ "epoch": 3.0,
53
+ "grad_norm": 6.204862117767334,
54
+ "learning_rate": 0.0,
55
+ "loss": 0.4634,
56
+ "step": 3
57
+ },
58
+ {
59
+ "epoch": 3.0,
60
+ "eval_accuracy": 0.5,
61
+ "eval_auc": 0.0,
62
+ "eval_f1": 0.6666666666666666,
63
+ "eval_loss": 0.905655026435852,
64
+ "eval_precision": 0.5,
65
+ "eval_recall": 1.0,
66
+ "eval_runtime": 0.8148,
67
+ "eval_samples_per_second": 2.454,
68
+ "eval_steps_per_second": 1.227,
69
+ "step": 3
70
+ }
71
+ ],
72
+ "logging_steps": 1,
73
+ "max_steps": 3,
74
+ "num_input_tokens_seen": 0,
75
+ "num_train_epochs": 3,
76
+ "save_steps": 500,
77
+ "stateful_callbacks": {
78
+ "EarlyStoppingCallback": {
79
+ "args": {
80
+ "early_stopping_patience": 5,
81
+ "early_stopping_threshold": 0.01
82
+ },
83
+ "attributes": {
84
+ "early_stopping_patience_counter": 0
85
+ }
86
+ },
87
+ "TrainerControl": {
88
+ "args": {
89
+ "should_epoch_stop": false,
90
+ "should_evaluate": false,
91
+ "should_log": false,
92
+ "should_save": true,
93
+ "should_training_stop": true
94
+ },
95
+ "attributes": {}
96
+ }
97
+ },
98
+ "total_flos": 1859807750750208.0,
99
+ "train_batch_size": 8,
100
+ "trial_name": null,
101
+ "trial_params": null
102
+ }
checkpoint-3/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9d609934e013e488ae326680a990e277c0b378bc56c7d16d6c5860af5db7a96
3
+ size 5240
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": "painting",
14
+ "1": "statue"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "painting": 0,
21
+ "statue": 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.43.1"
33
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae87dd92526e0bcb4b896182a66498212d80b4e522d0ec719e59b61a50bb2ddc
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
+ }
runs/Aug06_08-38-36_r-sioood-autotrain-advanced-bnxnbtzx-adbaf-5vw1w/events.out.tfevents.1722933519.r-sioood-autotrain-advanced-bnxnbtzx-adbaf-5vw1w.128.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7c07ff49691ad8f94cf2ce641d5aa98897588848247ec01d851b12dbcdfb7c9e
3
- size 5015
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5644c8d0eba417256252fee5f4fcb63bceb420b15225214189d3de6664e3335
3
+ size 7511
runs/Aug06_08-38-36_r-sioood-autotrain-advanced-bnxnbtzx-adbaf-5vw1w/events.out.tfevents.1722933568.r-sioood-autotrain-advanced-bnxnbtzx-adbaf-5vw1w.128.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40193bc439835d701f765fe927b29e7487dbca6ebf050c271b93d589f8735f03
3
+ size 597
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9d609934e013e488ae326680a990e277c0b378bc56c7d16d6c5860af5db7a96
3
+ size 5240
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "autotrain-test-image-classification/autotrain-data",
3
+ "model": "google/vit-base-patch16-224",
4
+ "username": "Sioood",
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-test-image-classification",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
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
+ }