Commit ·
5f8797f
1
Parent(s): a98e6e8
End of training
Browse files- README.md +63 -0
- config.json +49 -0
- preprocessor_config.json +23 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/final_weather
|
| 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/final_weather
|
| 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.2163
|
| 20 |
+
- Validation Loss: 0.2833
|
| 21 |
+
- Train Accuracy: 0.9228
|
| 22 |
+
- Train Precision: 0.9236
|
| 23 |
+
- Train Recall: 0.9228
|
| 24 |
+
- Train F1: 0.9228
|
| 25 |
+
- Epoch: 4
|
| 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': 27445, '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.2256 | 0.6330 | 0.8958 | 0.8986 | 0.8958 | 0.8958 | 0 |
|
| 52 |
+
| 0.5082 | 0.4391 | 0.9097 | 0.9112 | 0.9097 | 0.9099 | 1 |
|
| 53 |
+
| 0.3426 | 0.3675 | 0.9075 | 0.9129 | 0.9075 | 0.9066 | 2 |
|
| 54 |
+
| 0.2638 | 0.3435 | 0.9111 | 0.9155 | 0.9111 | 0.9108 | 3 |
|
| 55 |
+
| 0.2163 | 0.2833 | 0.9228 | 0.9236 | 0.9228 | 0.9228 | 4 |
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
### Framework versions
|
| 59 |
+
|
| 60 |
+
- Transformers 4.51.3
|
| 61 |
+
- TensorFlow 2.18.0
|
| 62 |
+
- Datasets 3.6.0
|
| 63 |
+
- 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:caabbcb97d5c9b97b47b190c732083812b23e7807ee4b747d3220894f3b6f9c0
|
| 3 |
+
size 343497400
|