Downloads · 30 days
0
fxxkingusername/architectural-style-classifier
architectural-style-classifier is a machine learning model from fxxkingusername. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](https://www.python.org/downloads/) [](https://pytorch.org/) [](https://opensource.org/licenses/MIT) [](https://github.com/anonymous/architectural-style-classifier)
Downloads · 30 days
0
Access
Public
Updated Sep 1, 2025
Repo size
60.4 MB
Likes
1
Public
Click a slice to open those files.
.ckpt58.6 MB · 49%
From the Hugging Face model README
A state-of-the-art EfficientNet-B0 based model for architectural style classification, achieving 99.7% validation accuracy and 100% test accuracy with only 5.3M parameters.
| Model | Accuracy | Parameters | Training Time | Model Size |
|---|---|---|---|---|
| EfficientNet-B0 | 99.7% | 5.3M | 2 min | Small |
| ResNet-18 | 99.3% | 11.7M | 3 min | Medium |
| Advanced Hierarchical | 99.6% | 57.4M | 30 min | Large |
# Install from PyPI
pip install architectural-style-classifier
# Or install from source
git clone https://github.com/anonymous/architectural-style-classifier.git
cd architectural-style-classifier
pip install -e .
from architectural_style_classifier import ArchitecturalClassifier
# Initialize classifier
classifier = ArchitecturalClassifier()
# Predict single image
result = classifier.predict("path/to/building.jpg")
print(f"Predicted Style: {result['style_name']}")
print(f"Confidence: {result['confidence']:.1%}")
# Batch prediction
results = classifier.predict_batch("path/to/images/folder/")
# Predict single image
architectural-classifier predict building.jpg
# Batch prediction
architectural-classifier predict-batch images_folder/
# Show model info
architectural-classifier info
architectural-style-classifier/
├── 📄 paper/ # IEEE conference paper
│ ├── main.tex # Main paper (LaTeX)
│ ├── supplementary_data.tex # Detailed results
│ ├── *.png # Analytics visualizations
│ └── README.md # Paper documentation
├── 🧠 checkpoints/ # Trained models
│ └── best_model/ # Best performing model
├── 📊 results/ # Analysis results
│ └── comprehensive_analytics/ # Visualizations & data
├── 🔧 src/ # Source code
│ ├── models/ # Model architectures
│ ├── training/ # Training utilities
│ └── cli.py # Command line interface
├── 📋 requirements.txt # Dependencies
├── ⚙️ setup.py # Package configuration
└── 📖 README.md # This file
This project includes a complete IEEE conference paper submission:
cd paper
make # Compile LaTeX paper
make view # View PDF
The project includes stunning visualizations:
class SimpleAdvancedClassifier(nn.Module):
def __init__(self, num_classes=25, dropout_rate=0.3):
super().__init__()
# EfficientNet-B0 backbone
self.backbone = timm.create_model(
'efficientnet_b0',
pretrained=True,
num_classes=0,
global_pool=''
)
# Custom classifier head
self.classifier = nn.Sequential(
nn.AdaptiveAvgPool2d(1),
nn.Flatten(),
nn.Dropout(dropout_rate),
nn.Linear(self.feature_dim, self.feature_dim // 2),
nn.ReLU(),
nn.Dropout(dropout_rate),
nn.Linear(self.feature_dim // 2, num_classes)
)
class ArchitecturalClassifier:
def __init__(self, checkpoint_path=None, style_mapping_path=None):
"""Initialize the classifier."""
def predict(self, image_path):
"""Predict architectural style for a single image."""
def predict_batch(self, folder_path, extensions=None):
"""Predict architectural styles for multiple images."""
def get_model_info(self):
"""Get model information and statistics."""
# Single image prediction
architectural-classifier predict <image_path> [--checkpoint <path>] [--output <file>]
# Batch prediction
architectural-classifier predict-batch <folder_path> [--extensions <ext1> <ext2>] [--output <file>]
# Model information
architectural-classifier info
# Install package
pip install architectural-style-classifier
# Use in Python
from architectural_style_classifier import ArchitecturalClassifier
classifier = ArchitecturalClassifier()
# Build Docker image
docker build -t architectural-classifier .
# Run container
docker run -it architectural-classifier
The project includes deployment scripts for:
We welcome contributions! Please see our Contributing Guidelines for details.
git clone https://github.com/anonymous/architectural-style-classifier.git
cd architectural-style-classifier
pip install -e ".[dev]"
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this work in your research, please cite:
@article{architectural2024,
title={EfficientNet-B0: A Lightweight Pre-trained Model for High-Accuracy Architectural Style Classification},
author={Anonymous Researchers},
journal={IEEE Conference on Computer Vision and Pattern Recognition},
year={2024}
}
| Metric | Value |
|---|---|
| Model Type | EfficientNet-B0 + Custom Head |
| Input Size | 224x224 RGB |
| Output Classes | 25 architectural styles |
| Parameters | 5.3M |
| Validation Accuracy | 99.7% |
| Test Accuracy | 100% |
| Training Time | ~2 minutes |
| Inference Speed | 15ms/image |
| Model Size | 20.2MB |
🏆 Ready for production deployment and research publication!
For questions, issues, or contributions, please visit our GitHub repository.