Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐱🐶 Cat vs Dog Classifier

An interactive deep learning + Streamlit web app that classifies cats and dogs from uploaded images with confidence scores.

Built to practice real-world deep learning workflows using TensorFlow, Streamlit, and your custom dataset.


🚀 Features

  • Upload an image of a cat or dog
  • See the predicted label with emoji (🐱 or 🐶)
  • Displays confidence (accuracy) %
  • Clean, centered, user-friendly interface
  • Runs locally or can be deployed online (Streamlit Cloud)

🖥️ Demo

Demo of Cat vs Dog Classifier

Above: Example usage of the app with a sample image. Upload your own cat or dog photo to see predictions!


🛠️ Tech Stack

  • Python 3.10+
  • TensorFlow (for the trained CNN model)
  • Streamlit (for the web app)
  • Pillow & NumPy (for image processing)

🗂️ Project Structure

cat-dog-classifier/
│
├── app.py                  # Streamlit app
├── cat_dog_classifier.h5   # Trained model
├── requirements.txt        # Dependencies for deployment
└── README.md               # Project documentation

⚡ Installation & Running Locally

1️⃣ Clone this repository

git clone https://github.com/SultanAhmmed/cat-dog-classifier.git
cd cat-dog-classifier

2️⃣ Create and activate a virtual environment (recommended)

Windows:

python -m venv dl_env
.\dl_env\Scripts\activate

Linux / Mac:

python3 -m venv dl_env
source dl_env/bin/activate

3️⃣ Install dependencies

pip install -r requirements.txt

4️⃣ Run the app

streamlit run app.py

Your browser will open automatically. Upload a cat or dog image and get your prediction!


📸 Example Predictions

  • Upload image: dog.jpg
    Output: "✅ It's a Dog 🐶", Confidence: 98.3%

  • Upload image: cat.jpg
    Output: "✅ It's a Cat 🐱", Confidence: 97.1%


🎯 Why this project?

  • Practice image-based deep learning projects
  • Learn TensorFlow workflow (training, saving, loading models)
  • Learn building and deploying ML apps with Streamlit
  • Build a portfolio project for your CV

🪴 Future Improvements

  • Allow live webcam capture
  • Display model architecture and training accuracy
  • Add batch image classification
  • Support mobile responsiveness

🙌 Contributing

PRs and suggestions are welcome to improve this project and help learners build stronger deep learning + deployment workflows.


📜 License

This project is under the MIT License.


💡 Author

👤 Sultan Ahmmed
🌱 Learning and building practical AI projects to improve real-world skills.

About

An interactive deep learning + Streamlit web app that classifies cats and dogs from uploaded images with confidence scores.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages