spoof-detect / run.sh
Niv Sardi
run.sh: support detecting CPUs and add moar icons
fac6e9b
raw
history blame
533 Bytes
#!/bin/sh
set -e
PY=python3
PARALLEL=$(cat /proc/cpuinfo | grep processor | wc -l)
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
echo "πŸ–Ό croping augmented data"
${PY} ./python/crop.py ./data/augmented/images
echo "🧠 train model"
sh train.sh