RenAaron Ellis commited on
Commit
6f9bdda
·
1 Parent(s): b674b41

Training in progress epoch 0

Browse files
Files changed (4) hide show
  1. README.md +60 -0
  2. config.json +47 -0
  3. preprocessor_config.json +22 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google/vit-base-patch16-224-in21k
5
+ tags:
6
+ - image-classification
7
+ - tensorflow
8
+ - vision
9
+ - generated_from_keras_callback
10
+ model-index:
11
+ - name: RenSurii/vit-base-patch16-224-in21k-finetuned-image-classification
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
16
+ probably proofread and complete it, then remove this comment. -->
17
+
18
+ # RenSurii/vit-base-patch16-224-in21k-finetuned-image-classification
19
+
20
+ 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 mnist dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Train Loss: 2.0110
23
+ - Train Accuracy: 0.8531
24
+ - Validation Loss: 1.5291
25
+ - Validation Accuracy: 0.8531
26
+ - Epoch: 0
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': 1.0, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 5000, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
46
+ - training_precision: float32
47
+
48
+ ### Training results
49
+
50
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
51
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
52
+ | 2.0110 | 0.8531 | 1.5291 | 0.8531 | 0 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.47.0.dev0
58
+ - TensorFlow 2.18.0
59
+ - Datasets 3.1.0
60
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "0",
14
+ "1": "1",
15
+ "2": "2",
16
+ "3": "3",
17
+ "4": "4",
18
+ "5": "5",
19
+ "6": "6",
20
+ "7": "7",
21
+ "8": "8",
22
+ "9": "9"
23
+ },
24
+ "image_size": 224,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "0": "0",
29
+ "1": "1",
30
+ "2": "2",
31
+ "3": "3",
32
+ "4": "4",
33
+ "5": "5",
34
+ "6": "6",
35
+ "7": "7",
36
+ "8": "8",
37
+ "9": "9"
38
+ },
39
+ "layer_norm_eps": 1e-12,
40
+ "model_type": "vit",
41
+ "num_attention_heads": 12,
42
+ "num_channels": 3,
43
+ "num_hidden_layers": 12,
44
+ "patch_size": 16,
45
+ "qkv_bias": true,
46
+ "transformers_version": "4.47.0.dev0"
47
+ }
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
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df1fe69a301f0ab215175a1dd47a5382ddce873b72553090a630764d587c4562
3
+ size 343494328