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)
Run this model with HF Jobs
Run 0xgr3y/Arch-Building-Image-Classification on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/0xgr3y/Arch-Building-Image-Classification. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/0xgr3y/Arch-Building-Image-Classification on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" 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 files29 unmodified lines303132333435363738394041424311 unmodified lines555657585960611 unmodified line6364656667686929 unmodified lines"6": "temple","7": "windmill"},"model_file": "best_phase2_swa.keras","input_shape": [320,320,3],"preprocessing": "densenet121.preprocess_input","architecture": "DenseNet121(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)","training": {"phase1": {"optimizer": "AdamW",11 unmodified lines"lr": 0.0003,"weight_decay": 2e-05,"lr_multipliers": {"conv4_block": 0.1},"warmup_epochs": 5,"max_epochs": 50,1 unmodified line"augmentation": "standard_only","focal_loss_gamma": 2.0,"label_smoothing": 0.05,"unfreeze": "conv4_block+conv5_block (BN frozen)"},"swa": {"epochs": 10,29 unmodified lines303132333435363738394041424311 unmodified lines555657585960611 unmodified line6364656667686929 unmodified lines"6": "temple","7": "windmill"},"model_file": "fine_tuning_swa.keras","input_shape": [320,320,3],"preprocessing": "efficientnet_v2.preprocess_input","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)","training": {"phase1": {"optimizer": "AdamW",11 unmodified lines"lr": 0.0003,"weight_decay": 2e-05,"lr_multipliers": {"block6": 0.1},"warmup_epochs": 5,"max_epochs": 50,1 unmodified line"augmentation": "standard_only","focal_loss_gamma": 2.0,"label_smoothing": 0.05,"unfreeze": "block6+top_conv (BN frozen)"},"swa": {"epochs": 10,
label_mapping.json+5-5