Niv Sardi commited on
Commit
fac6e9b
β€’
1 Parent(s): 6d7f6ee

run.sh: support detecting CPUs and add moar icons

Browse files
Files changed (1) hide show
  1. run.sh +5 -2
run.sh CHANGED
@@ -1,13 +1,16 @@
1
  #!/bin/sh
2
-
3
  set -e
4
 
5
  PY=python3
 
6
 
 
7
  echo "πŸ› fetching entities"
8
  ${PY} ./python/get_entities.py
9
  echo "🌏 getting vendor data"
10
- ${PY} ./python/vendor.py --parallel $(cat /proc/cpuinfo | grep processor | wc -l)
 
 
11
  echo "✨ augmenting data"
12
  ${PY} ./python/augment.py
13
  echo "πŸ–Ό croping augmented data"
 
1
  #!/bin/sh
 
2
  set -e
3
 
4
  PY=python3
5
+ PARALLEL=$(cat /proc/cpuinfo | grep processor | wc -l)
6
 
7
+ echo "πŸ“Š detected ${PARALLEL} cores"
8
  echo "πŸ› fetching entities"
9
  ${PY} ./python/get_entities.py
10
  echo "🌏 getting vendor data"
11
+ ${PY} ./python/vendor.py --parallel $PARALLEL
12
+ echo "☠ getting extra backgrounds from OpenFish"
13
+ ${PY} ./python/openfish.py --parallel $PARALLEL
14
  echo "✨ augmenting data"
15
  ${PY} ./python/augment.py
16
  echo "πŸ–Ό croping augmented data"