Downloads ยท 30 days
0
d-v-18/image-dataset
image-dataset is a machine learning model from d-v-18. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads ยท 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
9.8 MB
Likes
0
Public
Click a slice to open those files.
.pth9.8 MB ยท 99%
From the Hugging Face model README

This project is a complete, end-to-end image classification pipeline designed to distinguish between Pets (Dogs, Cats, Birds, Rabbits) and Non-Pets (Wild Animals, Humans, Objects, Places).
Built using PyTorch and MobileNetV2, the system not only classifies images into broad categories but also provides fine-grained identification, ecological data (dietary habits and natural habitats), and implements intelligent guardrails to ensure accuracy for visually similar wild species.
The system utilizes a powerful two-stage inference process:
One of the core strengths of this project is its intelligent override logic. Since wild felines (like lions or tigers) share many visual features with domestic cats, standard models can often misclassify them. This system cross-references the specific identified name with a "Wild Animal" database to force a "Non-Pet" classification for species like:
For every animal identified, the application provides:
A modern, responsive dashboard built with Flask and Vanilla CSS, featuring:
image/
โโโ app.py # Flask Web Server & Inference Logic
โโโ train.py # PyTorch Training Pipeline
โโโ classifier_model.pth # Trained Model Weights
โโโ classes.txt # Category Labels
โโโ training_history.png # Accuracy/Loss Visualization
โโโ static/
โ โโโ css/style.css # Premium UI Styling
โ โโโ uploads/ # Temporary storage for uploaded images
โโโ templates/
โ โโโ index.html # Main Dashboard Template
โโโ README.md # Project Documentation
Clone the Project
git clone https://github.com/4mh23cs043-collab/image.git
cd image
Install Dependencies
pip install torch torchvision flask pillow
Launch the Application
python app.py
Access the Dashboard
Open your browser and navigate to:
http://127.0.0.1:5001
The model was trained using Transfer Learning on a curated dataset of over 7,000 images. By freezing the early layers of MobileNetV2 and training a custom classification head, we achieved:
This project was developed as a collaborative effort to demonstrate a production-ready AI application. Feel free to fork the repository and submit pull requests for any enhancements!
Created by Nuthan & The AI Pair Programming Team