Before commit autoformat and lint your code
isort .
black .
pflake8 .
-
Use linux (or docker)
-
Install dependencies
pip3 install -r requirements-ml.txt
-
Initialize submodules
git submodule update --init
-
Download weights
- Through command line (if gdrive denied access do manually)
# base dirs mkdir models mkdir models/alignment mkdir models/detection mkdir models/recognition # base gdown https://drive.google.com/u/0/uc\?id\=18wEUfMNohBJ4K3Ly5wpTejPfDzp-8fI8 -O /tmp/antelopev2.zip unzip -o /tmp/antelopev2.zip -d /tmp/ cp /tmp/antelopev2/2d106det.onnx models/alignment/ cp /tmp/antelopev2/scrfd_10g_bnkps.onnx models/detection/ cp /tmp/antelopev2/glintr100.onnx models/recognition/ # retina gdown https://drive.google.com/u/0/uc?id=1wm-6K688HQEx_H90UdAIuKv-NAsKBu85 -O /tmp/retinaface-R50.zip mkdir models/detection/retinaface/ unzip -o /tmp/retinaface-R50.zip -d models/detection/retinaface
- Manually
- TODO
- Through command line (if gdrive denied access do manually)