This repository contains code for a Convolutional Neural Network (CNN) model to perform binary classification on images of cats and dogs. The model is trained on a dataset of labeled images, and it can predict whether an input image contains a cat or a dog.
- Clone the repository to your local machine:
git clone [email protected]:SaidiSouhaieb/Keras-Binary-Classification.git
cd Keras-Binary-Classification
- Install required dependecies
pip install -r requirements.txt
-
Download model from cloud drive link : [https://drive.google.com/drive/folders/1wd5g_VsN1tJsiBwmvhZcaFff8hRChbCi?usp=sharing]
-
Place file near "model_predict.ipynb"
-
Add image path in the "img_path" variable
-
Predict!
-
Download data below link : [https://www.kaggle.com/datasets/chetankv/dogs-cats-images]
-
Follow data structure below
-
Pass the data as structured below
-
Create Data Augmented folder
-
Wait as the images get created
Data Structure
dataset/
|-- train/
| |-- cats/
| |-- dogs/
|-- test/
| |-- cats/
| |-- dogs/
Pass the augmented data created before.
Thank You.