Remunata commited on
Commit
92cf6fe
1 Parent(s): 486d148

End of training

Browse files
Files changed (4) hide show
  1. README.md +65 -0
  2. config.json +40 -0
  3. preprocessor_config.json +36 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/vit-base-patch16-224-in21k
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: Remunata/rupiah_classifier_v2
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Remunata/rupiah_classifier_v2
15
+
16
+ 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.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.1314
19
+ - Train Accuracy: 0.9379
20
+ - Validation Loss: 0.2477
21
+ - Validation Accuracy: 0.9379
22
+ - Epoch: 9
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 66500, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
42
+ - training_precision: float32
43
+
44
+ ### Training results
45
+
46
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
47
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
48
+ | 0.9566 | 0.8213 | 0.6179 | 0.8213 | 0 |
49
+ | 0.3346 | 0.8828 | 0.4223 | 0.8828 | 1 |
50
+ | 0.2572 | 0.9048 | 0.3674 | 0.9048 | 2 |
51
+ | 0.2092 | 0.9181 | 0.3146 | 0.9181 | 3 |
52
+ | 0.1856 | 0.9112 | 0.3320 | 0.9112 | 4 |
53
+ | 0.1722 | 0.8999 | 0.4168 | 0.8999 | 5 |
54
+ | 0.1564 | 0.9406 | 0.2184 | 0.9406 | 6 |
55
+ | 0.1402 | 0.8935 | 0.4184 | 0.8935 | 7 |
56
+ | 0.1352 | 0.9230 | 0.2832 | 0.9230 | 8 |
57
+ | 0.1314 | 0.9379 | 0.2477 | 0.9379 | 9 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - Transformers 4.41.2
63
+ - TensorFlow 2.15.0
64
+ - Datasets 2.19.2
65
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "100k",
13
+ "1": "10k",
14
+ "2": "1k",
15
+ "3": "20k",
16
+ "4": "2k",
17
+ "5": "50k",
18
+ "6": "5k"
19
+ },
20
+ "image_size": 224,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "100k": "0",
25
+ "10k": "1",
26
+ "1k": "2",
27
+ "20k": "3",
28
+ "2k": "4",
29
+ "50k": "5",
30
+ "5k": "6"
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "model_type": "vit",
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "qkv_bias": true,
39
+ "transformers_version": "4.41.2"
40
+ }
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
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d283225773e051e94a321dab1af840014d1f39def1f914f184a0decf0e7e457f
3
+ size 343485112