Kushagra07 commited on
Commit
35cac36
·
verified ·
1 Parent(s): 661494f

Training in progress, epoch 1

Browse files
README.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/deit-base-patch16-224
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imagefolder
8
+ metrics:
9
+ - accuracy
10
+ - recall
11
+ - f1
12
+ - precision
13
+ model-index:
14
+ - name: deit-base-patch16-224-finetuned-ind-4-imbalanced-aadhaarmask-3839
15
+ results:
16
+ - task:
17
+ name: Image Classification
18
+ type: image-classification
19
+ dataset:
20
+ name: imagefolder
21
+ type: imagefolder
22
+ config: default
23
+ split: train
24
+ args: default
25
+ metrics:
26
+ - name: Accuracy
27
+ type: accuracy
28
+ value: 0.9479166666666666
29
+ - name: Recall
30
+ type: recall
31
+ value: 0.9479166666666666
32
+ - name: F1
33
+ type: f1
34
+ value: 0.9464668525772705
35
+ - name: Precision
36
+ type: precision
37
+ value: 0.9472181024490807
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # deit-base-patch16-224-finetuned-ind-4-imbalanced-aadhaarmask-3839
44
+
45
+ This model is a fine-tuned version of [facebook/deit-base-patch16-224](https://huggingface.co/facebook/deit-base-patch16-224) on the imagefolder dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.1444
48
+ - Accuracy: 0.9479
49
+ - Recall: 0.9479
50
+ - F1: 0.9465
51
+ - Precision: 0.9472
52
+
53
+ ## Model description
54
+
55
+ More information needed
56
+
57
+ ## Intended uses & limitations
58
+
59
+ More information needed
60
+
61
+ ## Training and evaluation data
62
+
63
+ More information needed
64
+
65
+ ## Training procedure
66
+
67
+ ### Training hyperparameters
68
+
69
+ The following hyperparameters were used during training:
70
+ - learning_rate: 5e-05
71
+ - train_batch_size: 8
72
+ - eval_batch_size: 8
73
+ - seed: 42
74
+ - gradient_accumulation_steps: 4
75
+ - total_train_batch_size: 32
76
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
77
+ - lr_scheduler_type: linear
78
+ - lr_scheduler_warmup_ratio: 0.1
79
+ - num_epochs: 10
80
+
81
+ ### Training results
82
+
83
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Recall | F1 | Precision |
84
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
85
+ | 0.2268 | 1.0 | 96 | 0.2805 | 0.8919 | 0.8919 | 0.8753 | 0.8798 |
86
+ | 0.2356 | 2.0 | 192 | 0.2842 | 0.9023 | 0.9023 | 0.8950 | 0.8967 |
87
+ | 0.1597 | 3.0 | 288 | 0.2120 | 0.9219 | 0.9219 | 0.9116 | 0.9211 |
88
+ | 0.1349 | 4.0 | 384 | 0.2449 | 0.9206 | 0.9206 | 0.9146 | 0.9193 |
89
+ | 0.1647 | 5.0 | 480 | 0.2226 | 0.9167 | 0.9167 | 0.9129 | 0.9121 |
90
+ | 0.1117 | 6.0 | 576 | 0.1599 | 0.9453 | 0.9453 | 0.9415 | 0.9434 |
91
+ | 0.1232 | 7.0 | 672 | 0.1698 | 0.9492 | 0.9492 | 0.9477 | 0.9485 |
92
+ | 0.1317 | 8.0 | 768 | 0.1624 | 0.9388 | 0.9388 | 0.9365 | 0.9368 |
93
+ | 0.1018 | 9.0 | 864 | 0.1648 | 0.9388 | 0.9388 | 0.9360 | 0.9355 |
94
+ | 0.0828 | 10.0 | 960 | 0.1597 | 0.9453 | 0.9453 | 0.9435 | 0.9454 |
95
+
96
+
97
+ ### Framework versions
98
+
99
+ - Transformers 4.40.1
100
+ - Pytorch 2.2.1+cu121
101
+ - Datasets 2.19.0
102
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/deit-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": "AadhaarBackMasked",
13
+ "1": "AadhaarFrontMasked",
14
+ "2": "AadhaarRegularMasked"
15
+ },
16
+ "image_size": 224,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "AadhaarBackMasked": "0",
21
+ "AadhaarFrontMasked": "1",
22
+ "AadhaarRegularMasked": "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.40.1"
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52b6417291f29890b5c05d8b1eb5ba6f27df6fab9ada551bafed51f15fbf1430
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/Apr24_07-52-12_3ec0cf01dc6a/events.out.tfevents.1713945142.3ec0cf01dc6a.294.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10aec8cfcdbc2eab9fae422754787f574c24f10692d33e71e8b41082afe4d2d4
3
+ size 30240
runs/Apr24_07-52-12_3ec0cf01dc6a/events.out.tfevents.1713949319.3ec0cf01dc6a.294.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa79d8596013b5a5facef1b58c57ba16685ac960584f7c9a86b3755f8ffc42e8
3
+ size 560
runs/Apr24_09-08-30_3ec0cf01dc6a/events.out.tfevents.1713949711.3ec0cf01dc6a.294.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85f42832554530ba051ae8e74f3a5c587e671b3f803d3cc8235be5efb1aa8383
3
+ size 7293
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:021c66a1bf7fae18fe527323ca5d7efceb917e990f4ca5296d4a6f10631c3775
3
+ size 5112