Downloads · 30 days
38
17% of all-time downloads
koyelog/indian-monuments-cnn-model
indian-monuments-cnn-model is a image classification model from koyelog. Use it when you need a label for an image. It is set up for keras. The card lists the license as mit.
This model is a fine-tuned image classifier for recognizing major Indian monuments and architectural styles using EfficientNetV2-M as the base. It leverages transfer learning with Keras/TensorFlow, trained on the danu…
Downloads · 30 days
38
17% of all-time downloads
All-time downloads
226
Public
Repo size
24.9 MB
Likes
1
Public
Click a slice to open those files.
.keras24.9 MB · 100%
From the Hugging Face model README
This model is a fine-tuned image classifier for recognizing major Indian monuments and architectural styles using EfficientNetV2-M as the base. It leverages transfer learning with Keras/TensorFlow, trained on the danushkumarv/indian-monuments-image-dataset (24 classes).
timm/tf_efficientnetv2_m.in21k| Metric | Value |
|---|---|
| Accuracy | 0.921 |
| F1 Score | 0.918 |
import keras
from huggingface_hub import from_pretrained_keras
repo_id = "koyelog/indian-monuments-cnn-model"
model = from_pretrained_keras(repo_id)
import numpy as np
from PIL import Image
def preprocess_image(image_path, target_size=(224, 224)):
img = Image.open(image_path).convert('RGB')
img = img.resize(target_size)
img_array = np.asarray(img, dtype=np.float32)
img_array = img_array / 255.0
return np.expand_dims(img_array, axis=0)
x = preprocess_image('path/to/your/monument.jpg')
predictions = model.predict(x)
predicted_class_index = np.argmax(predictions[0])
# Define your class name mapping
class_names = [
"Taj Mahal", "Red Fort", "Charminar", # ...add all class names
]
print(f"Predicted Monument: {class_names[predicted_class_index]}")
@misc{koyelog_indian_monuments_cnn_model,
title={Indian Monuments CNN Model},
author={koyelog},
year={2025},
howpublished={\url{https://huggingface.co/koyelog/indian-monuments-cnn-model}}
}
Model card generated by koyelog