-
Create a virtual environment with Python 3.10:
# Install Python 3.10 if needed brew install python@3.10 # Create and activate virtual environment python3.10 -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Download the dataset:
- Download from https://zenodo.org/records/7711810
- Extract the files to the data/ directory
mkdir -p data # Extract EuroSAT_RGB and EuroSAT_MS folders to data/ - Ensure you have both RGB and multispectral (MS) data
-
Run the Jupyter notebook:
jupyter notebook imgClassification.ipynb
- Run through the jupyter notebook to train the model
- Make sure the model is saved as SatCoverClassifier.keras in the correct folder::
# The model should be in models/SatCoverClassifier.keras mkdir -p models
build and run the docker container
docker-compose up --build
# access the app on http://localhost:7860
# or Update your docker-compose.yml to use a different portto stop
# Press Ctrl+C in the terminal or run:
docker-compose down