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
Enable all 5 images: training curves, confusion matrix, per-class accuracy, confidence histogram, misclassification examples
Browse files
README.md
CHANGED
|
@@ -160,31 +160,11 @@ Four candidate models were evaluated on the validation set:
|
|
| 160 |
| 5 | 95.83% | 0.4130 |
|
| 161 |
| **SWA Average (final)** | **95.93%** | **0.3981** |
|
| 162 |
|
| 163 |
-
<!-- IMAGE PLACEHOLDER: Training curves (accuracy + loss across all phases)
|
| 164 |
-
Upload the training curves image from Cell 39 of the V15 notebook.
|
| 165 |
-
File to upload: cell39_accuracy_loss_curves.png (~68 KB)
|
| 166 |
-
This shows Phase 1 (1 epoch, val_acc 86.71%), Phase 2 (6 epochs, val_acc 93.35%),
|
| 167 |
-
and SWA continuation (5 epochs to val_acc 95.93%).
|
| 168 |
-
Uncomment the line below after uploading:
|
| 169 |

|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
<!-- IMAGE PLACEHOLDER: Confusion matrix heatmap
|
| 173 |
-
Upload the confusion matrix image from Cell 35 of the V15 notebook.
|
| 174 |
-
File to upload: cell35_confusion_matrix.png (~51 KB)
|
| 175 |
-
Shows percentage per row with raw counts, highlighting confusion between
|
| 176 |
-
temple↔mosque and stadium↔temple pairs.
|
| 177 |
-
Uncomment the line below after uploading:
|
| 178 |

|
| 179 |
-
-->
|
| 180 |
|
| 181 |
-
<!-- IMAGE PLACEHOLDER: Per-class accuracy bar chart
|
| 182 |
-
Upload the per-class accuracy image from Cell 40 of the V15 notebook.
|
| 183 |
-
File to upload: cell40_per_class_accuracy.png (~39 KB)
|
| 184 |
-
Shows stadium as the lowest class and skyscraper as the highest.
|
| 185 |
-
Uncomment the line below after uploading:
|
| 186 |

|
| 187 |
-
-->
|
| 188 |
|
| 189 |
## Training Details
|
| 190 |
|
|
@@ -464,13 +444,7 @@ print(f"Predicted: {LABELS[np.argmax(preds)]} ({np.max(preds)*100:.1f}%)")
|
|
| 464 |
- **Skyscraper↔Bridge** confusion occurs when bridge structural elements resemble tall buildings against skyline
|
| 465 |
- Inference confidence can be low on atypical examples (e.g., skyscraper predicted at 57.0% confidence with bridge at 36.2%)
|
| 466 |
|
| 467 |
-
<!-- IMAGE PLACEHOLDER: Misclassification examples
|
| 468 |
-
Upload the misclassification grid from Cell 40 of the V15 notebook.
|
| 469 |
-
File to upload: cell40_misclassification_grid.png (~2.3 MB, resize recommended)
|
| 470 |
-
Shows up to 9 concrete failure cases with true vs predicted labels and confidence.
|
| 471 |
-
Uncomment the line below after uploading:
|
| 472 |

|
| 473 |
-
-->
|
| 474 |
|
| 475 |
## Ethical Considerations
|
| 476 |
|
|
|
|
| 160 |
| 5 | 95.83% | 0.4130 |
|
| 161 |
| **SWA Average (final)** | **95.93%** | **0.3981** |
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |

|
| 164 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |

|
|
|
|
| 166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |

|
|
|
|
| 168 |
|
| 169 |
## Training Details
|
| 170 |
|
|
|
|
| 444 |
- **Skyscraper↔Bridge** confusion occurs when bridge structural elements resemble tall buildings against skyline
|
| 445 |
- Inference confidence can be low on atypical examples (e.g., skyscraper predicted at 57.0% confidence with bridge at 36.2%)
|
| 446 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |

|
|
|
|
| 448 |
|
| 449 |
## Ethical Considerations
|
| 450 |
|