File size: 463 Bytes
d899b9f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/bin/bash
while true; do
python download.py
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Download exited with code $EXIT_CODE. Restarting..."
else
echo "Download exited with code 0. Not restarting."
break
fi
done
# Unzip all the files in the ../datasets/roboset/ directory
cd ../datasets/roboset/
for file in *.tar.gz; do
tar -xzvf "$file"
done
## Convert the dataset to tfrecords
python hdf5totfrecords.py |