An image classification model from data collection, cleaning, model training, deployment and API integration.
The model can classify 20 different types of logos of cars
The types are following:
Develop an AI-powered model to classify various car logos from images.
search_images_ddg function.cnn_learner for efficient training.learner.export().The dataset was collected from DuckDuckGo using car brand names as search terms, ensuring diverse images for training.
The fastai DataBlock API was used to set up the DataLoader, organizing the data into training and validation sets.
fastai provides default GPU-accelerated data augmentations, improving the model’s generalization.
For more details, check the Data_prep_logo_classi.ipynb notebook.
The model was fine-tuned using ResNet101 for 15 epochs, repeated 3 times, achieving an accuracy of approximately 94%. Details can be found in training.ipynb
Data cleaning was the most time-consuming part of the process. Since the data was collected from a browser, there was a significant amount of noise, and some images contained irrelevant content. To clean and update the dataset, I used the fastai ImageClassifierCleaner. Data cleaning was performed after each training or fine-tuning session, except for the final iteration, which represented the final model. Details can be found in data_cleaning.ipynb
For inference, the trained model is used to classify new car logo images. The fastai Learner was utilized to load the fine-tuned model and make predictions. This allows the model to classify unseen car logos accurately, based on the learned patterns during training. Details can be found in inference.ipynb
I deployed to model to HuggingFace Spaces Gradio App. The implementation can be found in deployment folder or here.

The deployed model API is integrated here in GitHub Pages Website. Implementation and other details can be found in docs folder.
Follow these steps to set up and run the project on your local machine.
git clone https://github.com/fayez94/Car-logo-classification.git
cd Car_Logo_Classification
python -m venv myvenv
myvenv\Scripts\activate
python3 -m venv myvenv
source myvenv/bin/activate
pip install -r requirements.txt
python app.py
deactivate
Contributions are always welcome! If you’d like to contribute to the Car Logo Classifier project, here’s how you can help:
git checkout -b feature-name)git commit -m 'Add new feature')git push origin feature-name)Thank you for considering contributing! 🙏
For any questions or suggestions, feel free to reach out!
📧 Email: mdfayezullah2624@gmail.com
🐙 GitHub: fayez94