- Download Python 3.11.4 from python.org.
- During installation, check "Add Python to PATH".
- Verify installation using:
python --version
python3 --versionbrew install python@3.11orsudo apt update && sudo apt install python3.11- Verify installation using:
python3 --versiona
git clone https://github.com/InkolluvenkatBhargav/CNN.gitcd CNN.git- Download Dataset from Here
- Windows
python -m venv venv - macOS/Linux
python3 -m venv venv
- Windows CMD
venv\Scripts\activate - Windows Powershell
venv\Scripts\Activate.ps1 - macOS/Linux
source venv/bin/activate
- In terminal
pip install -r requirements.txt
- In Terminal run
python model.py - After successful execution you should see a file named
- pred_cotton.h5
- For Visualization execute each cell in
model.ipynbby selecting venv kernel
python index.py
- Go to
http://127.0.0.1:5000/