Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
β’
fac6e9b
1
Parent(s):
6d7f6ee
run.sh: support detecting CPUs and add moar icons
Browse files
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 $
|
|
|
|
|
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"
|