- python
- pip
python -m venv env
# mac
source env/bin/activate
# windows
.\env\Scripts\activate
pip install -r requirements.txt
python setup.py
python shell.py
# Using all options
>>> collect --labels <label1> <label2> --limit <limit> --folder <images_folder>
# Using minimal options (limit=5, folder=collectedimages)
>>> collect --labels <label1> <label2>
# Using all options
>>> label --folder <images_folder>
# Using minimal options (folder=collectedimages)
>>> label
>>> load --url <pretrained_model_url>
- The shell already has ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8
- You can get more pretrained models from Tensorflow 2 Detection Model Zoo
# Using all options
>>> train --model <your_model_name> --labels <label1> <label2> --sample <sample_size> --pretrained <pretrained_model_name> --steps <number_of_steps> --folder <images_folder>
# Using minimal options (pretrained=ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8, steps=2000m, folder=collectedimages )
>>> train --model <your_model_name> --labels <label1> <label2> --train <number_of_trainees>
# Test in realtime (via webcam)
>>> test --model <your_model_name>