sharmajai901 commited on
Commit
3aced7b
1 Parent(s): be02eb5

End of training

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: UL_exterior_classification
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: validation
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.6896551724137931
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # UL_exterior_classification
32
+
33
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.6992
36
+ - Accuracy: 0.6897
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 5e-05
56
+ - train_batch_size: 32
57
+ - eval_batch_size: 32
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 4
60
+ - total_train_batch_size: 128
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - lr_scheduler_warmup_ratio: 0.1
64
+ - num_epochs: 7
65
+
66
+ ### Training results
67
+
68
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
+ | No log | 0.8 | 2 | 1.2708 | 0.2184 |
71
+ | No log | 2.0 | 5 | 0.8931 | 0.5977 |
72
+ | No log | 2.8 | 7 | 0.7973 | 0.6437 |
73
+ | 0.9888 | 4.0 | 10 | 0.6992 | 0.6897 |
74
+ | 0.9888 | 4.8 | 12 | 0.6687 | 0.6897 |
75
+ | 0.9888 | 5.6 | 14 | 0.6566 | 0.6897 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.41.2
81
+ - Pytorch 2.3.0+cu121
82
+ - Datasets 2.20.0
83
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.6,
3
+ "eval_accuracy": 0.6896551724137931,
4
+ "eval_loss": 0.6992095708847046,
5
+ "eval_runtime": 2.7286,
6
+ "eval_samples_per_second": 31.884,
7
+ "eval_steps_per_second": 1.099,
8
+ "total_flos": 1.3344240210765005e+17,
9
+ "train_loss": 0.8767854997089931,
10
+ "train_runtime": 140.3985,
11
+ "train_samples_per_second": 15.257,
12
+ "train_steps_per_second": 0.1
13
+ }
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "building_exterior",
13
+ "1": "outdoor_area",
14
+ "2": "street_view"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "building_exterior": 0,
21
+ "outdoor_area": 1,
22
+ "street_view": 2
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "model_type": "vit",
26
+ "num_attention_heads": 12,
27
+ "num_channels": 3,
28
+ "num_hidden_layers": 12,
29
+ "patch_size": 16,
30
+ "problem_type": "single_label_classification",
31
+ "qkv_bias": true,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.41.2"
34
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.6,
3
+ "eval_accuracy": 0.6896551724137931,
4
+ "eval_loss": 0.6992095708847046,
5
+ "eval_runtime": 2.7286,
6
+ "eval_samples_per_second": 31.884,
7
+ "eval_steps_per_second": 1.099
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1f3bcfadc5d12a67eeb284288ab86482d98b70934f28c0408f7ef0dc95458d7
3
+ size 343227052
preprocessor_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_valid_processor_keys": [
3
+ "images",
4
+ "do_resize",
5
+ "size",
6
+ "resample",
7
+ "do_rescale",
8
+ "rescale_factor",
9
+ "do_normalize",
10
+ "image_mean",
11
+ "image_std",
12
+ "return_tensors",
13
+ "data_format",
14
+ "input_data_format"
15
+ ],
16
+ "do_normalize": true,
17
+ "do_rescale": true,
18
+ "do_resize": true,
19
+ "image_mean": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "image_processor_type": "ViTImageProcessor",
25
+ "image_std": [
26
+ 0.5,
27
+ 0.5,
28
+ 0.5
29
+ ],
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "height": 224,
34
+ "width": 224
35
+ }
36
+ }
runs/Jun18_13-08-36_635bd7faf6d1/events.out.tfevents.1718716138.635bd7faf6d1.226.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f396bb035891a35e35d19d30e568066f0e41cfb44fc5fad98c9f0a1fa378c4
3
+ size 7381
runs/Jun18_13-08-36_635bd7faf6d1/events.out.tfevents.1718716290.635bd7faf6d1.226.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de45cba98c5232d6f6ac9333a8dcc623dd5fd2585c5a86129bc352c68e61ad52
3
+ size 405
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.6,
3
+ "total_flos": 1.3344240210765005e+17,
4
+ "train_loss": 0.8767854997089931,
5
+ "train_runtime": 140.3985,
6
+ "train_samples_per_second": 15.257,
7
+ "train_steps_per_second": 0.1
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6896551724137931,
3
+ "best_model_checkpoint": "UL_exterior_classification/checkpoint-10",
4
+ "epoch": 5.6,
5
+ "eval_steps": 500,
6
+ "global_step": 14,
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.8,
13
+ "eval_accuracy": 0.21839080459770116,
14
+ "eval_loss": 1.27083158493042,
15
+ "eval_runtime": 2.8018,
16
+ "eval_samples_per_second": 31.051,
17
+ "eval_steps_per_second": 1.071,
18
+ "step": 2
19
+ },
20
+ {
21
+ "epoch": 2.0,
22
+ "eval_accuracy": 0.5977011494252874,
23
+ "eval_loss": 0.8931179046630859,
24
+ "eval_runtime": 3.492,
25
+ "eval_samples_per_second": 24.914,
26
+ "eval_steps_per_second": 0.859,
27
+ "step": 5
28
+ },
29
+ {
30
+ "epoch": 2.8,
31
+ "eval_accuracy": 0.6436781609195402,
32
+ "eval_loss": 0.7972615361213684,
33
+ "eval_runtime": 3.8271,
34
+ "eval_samples_per_second": 22.732,
35
+ "eval_steps_per_second": 0.784,
36
+ "step": 7
37
+ },
38
+ {
39
+ "epoch": 4.0,
40
+ "grad_norm": 3.223552703857422,
41
+ "learning_rate": 1.6666666666666667e-05,
42
+ "loss": 0.9888,
43
+ "step": 10
44
+ },
45
+ {
46
+ "epoch": 4.0,
47
+ "eval_accuracy": 0.6896551724137931,
48
+ "eval_loss": 0.6992095708847046,
49
+ "eval_runtime": 2.7722,
50
+ "eval_samples_per_second": 31.383,
51
+ "eval_steps_per_second": 1.082,
52
+ "step": 10
53
+ },
54
+ {
55
+ "epoch": 4.8,
56
+ "eval_accuracy": 0.6896551724137931,
57
+ "eval_loss": 0.668693482875824,
58
+ "eval_runtime": 2.7395,
59
+ "eval_samples_per_second": 31.757,
60
+ "eval_steps_per_second": 1.095,
61
+ "step": 12
62
+ },
63
+ {
64
+ "epoch": 5.6,
65
+ "eval_accuracy": 0.6896551724137931,
66
+ "eval_loss": 0.6565638184547424,
67
+ "eval_runtime": 2.8164,
68
+ "eval_samples_per_second": 30.891,
69
+ "eval_steps_per_second": 1.065,
70
+ "step": 14
71
+ },
72
+ {
73
+ "epoch": 5.6,
74
+ "step": 14,
75
+ "total_flos": 1.3344240210765005e+17,
76
+ "train_loss": 0.8767854997089931,
77
+ "train_runtime": 140.3985,
78
+ "train_samples_per_second": 15.257,
79
+ "train_steps_per_second": 0.1
80
+ }
81
+ ],
82
+ "logging_steps": 10,
83
+ "max_steps": 14,
84
+ "num_input_tokens_seen": 0,
85
+ "num_train_epochs": 7,
86
+ "save_steps": 500,
87
+ "stateful_callbacks": {
88
+ "TrainerControl": {
89
+ "args": {
90
+ "should_epoch_stop": false,
91
+ "should_evaluate": false,
92
+ "should_log": false,
93
+ "should_save": true,
94
+ "should_training_stop": true
95
+ },
96
+ "attributes": {}
97
+ }
98
+ },
99
+ "total_flos": 1.3344240210765005e+17,
100
+ "train_batch_size": 32,
101
+ "trial_name": null,
102
+ "trial_params": null
103
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8f72fee755778dc573a4e0bc266e8770ddd3bd6def1c3e4ecdf82296fcc6dd5
3
+ size 5112