Spaces:
Runtime error
Runtime error
set -e | |
PY=python3 | |
PARALLEL=$(cat /proc/cpuinfo | grep processor | wc -l) | |
YOLO=6 | |
echo "π detected ${PARALLEL} cores" | |
echo "π fetching entities" | |
${PY} ./python/get_entities.py | |
echo "π getting vendor data" | |
${PY} ./python/vendor.py --parallel $PARALLEL | |
echo "β getting extra backgrounds from OpenFish" | |
${PY} ./python/openfish.py --parallel $PARALLEL | |
echo "β¨ augmenting data" | |
${PY} ./python/augment.py --parallel $PARALLEL | |
echo "πΌ croping augmented data" | |
${PY} ./python/crop.py ./data/augmented/images | |
echo "β split dataset into train, val and test groups" | |
${PY} ./python/split.py ./data/squares/ --yolo $YOLO | |
echo "π§ train model" | |
sh train.sh | |