punchnami commited on
Commit
60b5fcc
·
verified ·
1 Parent(s): 9682e4e

Upload 9 files

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - image-classification
6
+ - vision
7
+ - generated_from_trainer
8
+ datasets:
9
+ - imagefolder
10
+ metrics:
11
+ - accuracy
12
+ model-index:
13
+ - name: output
14
+ results:
15
+ - task:
16
+ name: Image Classification
17
+ type: image-classification
18
+ dataset:
19
+ name: imagefolder
20
+ type: imagefolder
21
+ config: default
22
+ split: train
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.9668874172185431
28
+ ---
29
+
30
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
31
+ should probably proofread and complete it, then remove this comment. -->
32
+
33
+ # output
34
+
35
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.
36
+ It achieves the following results on the evaluation set:
37
+ - Loss: 0.1172
38
+ - Accuracy: 0.9669
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 5e-05
58
+ - train_batch_size: 8
59
+ - eval_batch_size: 8
60
+ - seed: 42
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 3.0
64
+
65
+ ### Training results
66
+
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.38.0.dev0
72
+ - Pytorch 2.2.0+cpu
73
+ - Datasets 2.17.0
74
+ - Tokenizers 0.15.1
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9668874172185431,
4
+ "eval_loss": 0.11718238145112991,
5
+ "eval_runtime": 161.4495,
6
+ "eval_samples_per_second": 3.741,
7
+ "eval_steps_per_second": 0.471,
8
+ "train_loss": 0.2442077654544438,
9
+ "train_runtime": 16583.1029,
10
+ "train_samples_per_second": 0.619,
11
+ "train_steps_per_second": 0.077
12
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "finetuning_task": "image-classification",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.0,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "no_pothole",
14
+ "1": "pothole"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "no_pothole": "0",
21
+ "pothole": "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.38.0.dev0"
33
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.9668874172185431,
4
+ "eval_loss": 0.11718238145112991,
5
+ "eval_runtime": 161.4495,
6
+ "eval_samples_per_second": 3.741,
7
+ "eval_steps_per_second": 0.471
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccb2e422b34b1bf09d4e5695b10167aa257ea5bb2a476279bc96c03a050871d2
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
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.2442077654544438,
4
+ "train_runtime": 16583.1029,
5
+ "train_samples_per_second": 0.619,
6
+ "train_steps_per_second": 0.077
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1284,
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.17,
13
+ "learning_rate": 3.0529595015576326e-05,
14
+ "loss": 0.3272,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 2.34,
19
+ "learning_rate": 1.1059190031152649e-05,
20
+ "loss": 0.214,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 3.0,
25
+ "step": 1284,
26
+ "total_flos": 7.955327653834015e+17,
27
+ "train_loss": 0.2442077654544438,
28
+ "train_runtime": 16583.1029,
29
+ "train_samples_per_second": 0.619,
30
+ "train_steps_per_second": 0.077
31
+ }
32
+ ],
33
+ "logging_steps": 500,
34
+ "max_steps": 1284,
35
+ "num_input_tokens_seen": 0,
36
+ "num_train_epochs": 3,
37
+ "save_steps": 500,
38
+ "total_flos": 7.955327653834015e+17,
39
+ "train_batch_size": 8,
40
+ "trial_name": null,
41
+ "trial_params": null
42
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eee21a3ed8629189fee9c5567bbd985627753a07960974e2ee4a2ce96646b3d3
3
+ size 4984