This repository contains a Convolutional Neural Network (CNN) model to classify breast cancer images.
Follow the steps below to set up and run the project:
git clone https://github.com/Sasank-V/Breast-Cancer-Classification.git
cd Breast-Cancer-ClassificationCreate a virtual environment inside the project directory:
# On Windows
python -m venv venv
venv\Scripts\activate
# On macOS/Linux
python3 -m venv venv
source venv/bin/activateInstall the required packages from requirements.txt:
pip install -r requirements.txtNavigate to the code directory and run the training script:
cd code
python train.pyOnce done, deactivate the virtual environment:
deactivateBreast-Cancer-Classification/
│── code/
│ ├── train.py # CNN training script
│── datasets/ # Dataset (not included in repo)
│ ├── all_images/ # Place the Images Data here
│── requirements.txt # Required packages
│── README.md # Setup and usage guide
- Ensure that you have Python installed (3.8 or above recommended).
- The dataset should be placed inside the
datasets/all_images/folder before training. - Modify
train.pyas needed for hyperparameter tuning.
Happy Coding! 🚀