git clone https://github.com/primus852/mtt-models
cd mtt-models
sudo apt install python3-opencv
sudo apt-get install python3-venv
python3 -m venv mtt-models-env
source mtt-models-env/bin/activate
pip3 install --upgrade pip
sudo python3 -m pip install -U setuptools
pip3 install -r requirements.txt
python3 main.py --long-epochs 2 --skip-short
python3 main.py --short-epochs 10 --skip-long
python3 main.py --production
This is a standalone Script for 3 things:
- Train a long list of Models with a fraction of the Dataset to measure performance
- Train a Top X short list with the full dataset and out put a model to feed to OpenCV
- Run OpenCV with one of the trained models
The first run may take some time as it will
- Download the Dataset
- Extract the downloaded zip
- Create all needed folders