This project is a Convolutional Neural Network (CNN) built using Keras to classify images of dogs and cats.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd <project-directory>
-
Create and activate a virtual environment:
python -m venv .venv .\.venv\Scripts\activate # On Windows source .venv/bin/activate # On macOS/Linux
-
Install dependencies:
pip install -r requirements.txt
-
Train the model:
python train_model.py
-
Predict using the trained model:
python predict_image.py --image_path <path-to-image>
model.h5
: Saved model file.