Commit ·
b79f3cc
1
Parent(s): 753d119
End of training
Browse files- README.md +78 -0
- config.json +49 -0
- preprocessor_config.json +23 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/vit-base-patch16-224-in21k
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_keras_callback
|
| 7 |
+
model-index:
|
| 8 |
+
- name: AlaaHussien/weather_classifier_model2
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 13 |
+
probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# AlaaHussien/weather_classifier_model2
|
| 16 |
+
|
| 17 |
+
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.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Train Loss: 0.0700
|
| 20 |
+
- Validation Loss: 0.2853
|
| 21 |
+
- Train Accuracy: 0.9250
|
| 22 |
+
- Train Precision: 0.9267
|
| 23 |
+
- Train Recall: 0.9250
|
| 24 |
+
- Train F1: 0.9248
|
| 25 |
+
- Epoch: 19
|
| 26 |
+
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Intended uses & limitations
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training and evaluation data
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training procedure
|
| 40 |
+
|
| 41 |
+
### Training hyperparameters
|
| 42 |
+
|
| 43 |
+
The following hyperparameters were used during training:
|
| 44 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 109780, '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}
|
| 45 |
+
- training_precision: float32
|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+
|
| 49 |
+
| Train Loss | Validation Loss | Train Accuracy | Train Precision | Train Recall | Train F1 | Epoch |
|
| 50 |
+
|:----------:|:---------------:|:--------------:|:---------------:|:------------:|:--------:|:-----:|
|
| 51 |
+
| 1.2545 | 0.6449 | 0.8944 | 0.9010 | 0.8944 | 0.8907 | 0 |
|
| 52 |
+
| 0.5392 | 0.3960 | 0.9177 | 0.9191 | 0.9177 | 0.9181 | 1 |
|
| 53 |
+
| 0.3498 | 0.3183 | 0.9264 | 0.9271 | 0.9264 | 0.9263 | 2 |
|
| 54 |
+
| 0.2787 | 0.2797 | 0.9323 | 0.9331 | 0.9323 | 0.9323 | 3 |
|
| 55 |
+
| 0.2155 | 0.2695 | 0.9257 | 0.9279 | 0.9257 | 0.9260 | 4 |
|
| 56 |
+
| 0.1899 | 0.3079 | 0.9126 | 0.9165 | 0.9126 | 0.9121 | 5 |
|
| 57 |
+
| 0.1599 | 0.2749 | 0.9235 | 0.9259 | 0.9235 | 0.9241 | 6 |
|
| 58 |
+
| 0.1470 | 0.2709 | 0.9243 | 0.9257 | 0.9243 | 0.9237 | 7 |
|
| 59 |
+
| 0.1305 | 0.2566 | 0.9257 | 0.9263 | 0.9257 | 0.9259 | 8 |
|
| 60 |
+
| 0.1131 | 0.2699 | 0.9257 | 0.9271 | 0.9257 | 0.9260 | 9 |
|
| 61 |
+
| 0.1042 | 0.2719 | 0.9228 | 0.9240 | 0.9228 | 0.9229 | 10 |
|
| 62 |
+
| 0.0977 | 0.2857 | 0.9199 | 0.9208 | 0.9199 | 0.9197 | 11 |
|
| 63 |
+
| 0.0816 | 0.2592 | 0.9279 | 0.9294 | 0.9279 | 0.9281 | 12 |
|
| 64 |
+
| 0.0894 | 0.2888 | 0.9228 | 0.9256 | 0.9228 | 0.9226 | 13 |
|
| 65 |
+
| 0.1011 | 0.2978 | 0.9264 | 0.9287 | 0.9264 | 0.9264 | 14 |
|
| 66 |
+
| 0.0756 | 0.2590 | 0.9330 | 0.9344 | 0.9330 | 0.9330 | 15 |
|
| 67 |
+
| 0.0668 | 0.2863 | 0.9228 | 0.9255 | 0.9228 | 0.9235 | 16 |
|
| 68 |
+
| 0.0650 | 0.2871 | 0.9264 | 0.9282 | 0.9264 | 0.9262 | 17 |
|
| 69 |
+
| 0.0644 | 0.3003 | 0.9257 | 0.9279 | 0.9257 | 0.9261 | 18 |
|
| 70 |
+
| 0.0700 | 0.2853 | 0.9250 | 0.9267 | 0.9250 | 0.9248 | 19 |
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
### Framework versions
|
| 74 |
+
|
| 75 |
+
- Transformers 4.51.3
|
| 76 |
+
- TensorFlow 2.18.0
|
| 77 |
+
- Datasets 3.6.0
|
| 78 |
+
- Tokenizers 0.21.1
|
config.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ViTForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.0,
|
| 6 |
+
"encoder_stride": 16,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.0,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "dew",
|
| 12 |
+
"1": "fogsmog",
|
| 13 |
+
"2": "frost",
|
| 14 |
+
"3": "glaze",
|
| 15 |
+
"4": "hail",
|
| 16 |
+
"5": "lightning",
|
| 17 |
+
"6": "rain",
|
| 18 |
+
"7": "rainbow",
|
| 19 |
+
"8": "rime",
|
| 20 |
+
"9": "sandstorm",
|
| 21 |
+
"10": "snow"
|
| 22 |
+
},
|
| 23 |
+
"image_size": 224,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"intermediate_size": 3072,
|
| 26 |
+
"label2id": {
|
| 27 |
+
"dew": 0,
|
| 28 |
+
"fogsmog": 1,
|
| 29 |
+
"frost": 2,
|
| 30 |
+
"glaze": 3,
|
| 31 |
+
"hail": 4,
|
| 32 |
+
"lightning": 5,
|
| 33 |
+
"rain": 6,
|
| 34 |
+
"rainbow": 7,
|
| 35 |
+
"rime": 8,
|
| 36 |
+
"sandstorm": 9,
|
| 37 |
+
"snow": 10
|
| 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 |
+
"pooler_act": "tanh",
|
| 46 |
+
"pooler_output_size": 768,
|
| 47 |
+
"qkv_bias": true,
|
| 48 |
+
"transformers_version": "4.51.3"
|
| 49 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:746d6d3bff64d9b0c61605750eacc7cccdb8d640422bc41c001f97eb71b48180
|
| 3 |
+
size 343513784
|