Image Classification
Keras
LiteRT
TF-Keras
Safetensors
English
efficientnetv2-s
efficientnetv2
fgic
transfer-learning
gem-pooling
focal-loss
swa
grad-cam
calibration
temperature-scaling
computer-vision
tensorflow.js
Eval Results (legacy)
Instructions to use 0xgr3y/Arch-Building-Image-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use 0xgr3y/Arch-Building-Image-Classification with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://0xgr3y/Arch-Building-Image-Classification") - Notebooks
- Google Colab
- Kaggle
Upload label_mapping.json with huggingface_hub
Browse files- label_mapping.json +5 -5
label_mapping.json
CHANGED
|
@@ -30,14 +30,14 @@
|
|
| 30 |
"6": "temple",
|
| 31 |
"7": "windmill"
|
| 32 |
},
|
| 33 |
-
"model_file": "
|
| 34 |
"input_shape": [
|
| 35 |
320,
|
| 36 |
320,
|
| 37 |
3
|
| 38 |
],
|
| 39 |
-
"preprocessing": "
|
| 40 |
-
"architecture": "
|
| 41 |
"training": {
|
| 42 |
"phase1": {
|
| 43 |
"optimizer": "AdamW",
|
|
@@ -55,7 +55,7 @@
|
|
| 55 |
"lr": 0.0003,
|
| 56 |
"weight_decay": 2e-05,
|
| 57 |
"lr_multipliers": {
|
| 58 |
-
"
|
| 59 |
},
|
| 60 |
"warmup_epochs": 5,
|
| 61 |
"max_epochs": 50,
|
|
@@ -63,7 +63,7 @@
|
|
| 63 |
"augmentation": "standard_only",
|
| 64 |
"focal_loss_gamma": 2.0,
|
| 65 |
"label_smoothing": 0.05,
|
| 66 |
-
"unfreeze": "
|
| 67 |
},
|
| 68 |
"swa": {
|
| 69 |
"epochs": 10,
|
|
|
|
| 30 |
"6": "temple",
|
| 31 |
"7": "windmill"
|
| 32 |
},
|
| 33 |
+
"model_file": "fine_tuning_swa.keras",
|
| 34 |
"input_shape": [
|
| 35 |
320,
|
| 36 |
320,
|
| 37 |
3
|
| 38 |
],
|
| 39 |
+
"preprocessing": "efficientnet_v2.preprocess_input",
|
| 40 |
+
"architecture": "EfficientNetV2-S(ImageNet,frozen_Ph1)+Conv2D(256,3x3,relu,same)+BN+MaxPooling2D(2,2)+GeMPooling(p=3.0,trainable)+Dense(256,relu)+BN+Dropout(0.4)+Dense(n_classes,softmax)",
|
| 41 |
"training": {
|
| 42 |
"phase1": {
|
| 43 |
"optimizer": "AdamW",
|
|
|
|
| 55 |
"lr": 0.0003,
|
| 56 |
"weight_decay": 2e-05,
|
| 57 |
"lr_multipliers": {
|
| 58 |
+
"block6": 0.1
|
| 59 |
},
|
| 60 |
"warmup_epochs": 5,
|
| 61 |
"max_epochs": 50,
|
|
|
|
| 63 |
"augmentation": "standard_only",
|
| 64 |
"focal_loss_gamma": 2.0,
|
| 65 |
"label_smoothing": 0.05,
|
| 66 |
+
"unfreeze": "block6+top_conv (BN frozen)"
|
| 67 |
},
|
| 68 |
"swa": {
|
| 69 |
"epochs": 10,
|