Jakir057 commited on
Commit
0b0c6a5
1 Parent(s): e06363e

Model save

Browse files
Files changed (5) hide show
  1. README.md +93 -0
  2. config.json +46 -0
  3. preprocessor_config.json +22 -0
  4. pytorch_model.bin +3 -0
  5. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: banknote18k
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # banknote18k
17
+
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0096
21
+ - Accuracy: 0.9987
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 4
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | 0.4947 | 0.12 | 100 | 0.3407 | 0.9451 |
53
+ | 0.423 | 0.23 | 200 | 0.2200 | 0.9451 |
54
+ | 0.2237 | 0.35 | 300 | 0.1613 | 0.9536 |
55
+ | 0.2806 | 0.46 | 400 | 0.0884 | 0.9810 |
56
+ | 0.1188 | 0.58 | 500 | 0.0512 | 0.9895 |
57
+ | 0.3279 | 0.7 | 600 | 0.0568 | 0.9876 |
58
+ | 0.1054 | 0.81 | 700 | 0.0342 | 0.9928 |
59
+ | 0.0924 | 0.93 | 800 | 0.0536 | 0.9863 |
60
+ | 0.1068 | 1.05 | 900 | 0.0746 | 0.9804 |
61
+ | 0.213 | 1.16 | 1000 | 0.0340 | 0.9948 |
62
+ | 0.159 | 1.28 | 1100 | 0.0426 | 0.9882 |
63
+ | 0.1048 | 1.39 | 1200 | 0.0248 | 0.9948 |
64
+ | 0.1493 | 1.51 | 1300 | 0.0154 | 0.9974 |
65
+ | 0.1274 | 1.63 | 1400 | 0.0394 | 0.9922 |
66
+ | 0.0915 | 1.74 | 1500 | 0.0422 | 0.9882 |
67
+ | 0.0598 | 1.86 | 1600 | 0.0219 | 0.9948 |
68
+ | 0.1241 | 1.97 | 1700 | 0.0173 | 0.9948 |
69
+ | 0.1249 | 2.09 | 1800 | 0.0179 | 0.9954 |
70
+ | 0.0131 | 2.21 | 1900 | 0.0124 | 0.9961 |
71
+ | 0.0392 | 2.32 | 2000 | 0.0123 | 0.9967 |
72
+ | 0.0655 | 2.44 | 2100 | 0.0223 | 0.9948 |
73
+ | 0.0355 | 2.56 | 2200 | 0.0256 | 0.9941 |
74
+ | 0.0335 | 2.67 | 2300 | 0.0147 | 0.9967 |
75
+ | 0.0618 | 2.79 | 2400 | 0.0123 | 0.9974 |
76
+ | 0.0476 | 2.9 | 2500 | 0.0110 | 0.9980 |
77
+ | 0.0452 | 3.02 | 2600 | 0.0192 | 0.9967 |
78
+ | 0.0104 | 3.14 | 2700 | 0.0184 | 0.9967 |
79
+ | 0.036 | 3.25 | 2800 | 0.0122 | 0.9974 |
80
+ | 0.0358 | 3.37 | 2900 | 0.0104 | 0.9987 |
81
+ | 0.054 | 3.48 | 3000 | 0.0101 | 0.9987 |
82
+ | 0.0395 | 3.6 | 3100 | 0.0132 | 0.9967 |
83
+ | 0.0367 | 3.72 | 3200 | 0.0096 | 0.9987 |
84
+ | 0.0261 | 3.83 | 3300 | 0.0101 | 0.9980 |
85
+ | 0.0017 | 3.95 | 3400 | 0.0096 | 0.9987 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.32.1
91
+ - Pytorch 2.0.1+cu118
92
+ - Datasets 2.14.4
93
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "10",
13
+ "1": "100",
14
+ "2": "1000",
15
+ "3": "2",
16
+ "4": "20",
17
+ "5": "200",
18
+ "6": "5",
19
+ "7": "50",
20
+ "8": "500"
21
+ },
22
+ "image_size": 224,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "10": "0",
27
+ "100": "1",
28
+ "1000": "2",
29
+ "2": "3",
30
+ "20": "4",
31
+ "200": "5",
32
+ "5": "6",
33
+ "50": "7",
34
+ "500": "8"
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "model_type": "vit",
38
+ "num_attention_heads": 12,
39
+ "num_channels": 3,
40
+ "num_hidden_layers": 12,
41
+ "patch_size": 16,
42
+ "problem_type": "single_label_classification",
43
+ "qkv_bias": true,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.32.1"
46
+ }
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": "ViTFeatureExtractor",
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
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98d51b267c59249ff7061cba5f38fb16454bffdec99a2bf796aded8a392e3f61
3
+ size 343290221
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0333b9e9e0b9e860469b17645e692d91a8171e54dd0b1d4565e98bff953d4d7
3
+ size 4027