-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
29 lines (25 loc) · 797 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
if [ $# -eq 0 ]; then
DATA_DIR="./"
else
DATA_DIR="$1"
fi
# Install Python dependencies
python3 -m pip install pip --upgrade
python3 -m pip install -r requirements.txt
'''
# Download TF Lite models
FILE=${DATA_DIR}/efficientdet_lite0.tflite
if [ ! -f "$FILE" ]; then
curl \
-L 'https://storage.googleapis.com/download.tensorflow.org/models/tflite/task_library/object_detection/rpi/lite-model_efficientdet_lite0_detection_metadata_1.tflite' \
-o ${FILE}
fi
FILE=${DATA_DIR}/efficientdet_lite0_edgetpu.tflite
if [ ! -f "$FILE" ]; then
curl \
-L 'https://storage.googleapis.com/download.tensorflow.org/models/tflite/task_library/object_detection/rpi/efficientdet_lite0_edgetpu_metadata.tflite' \
-o ${FILE}
fi
echo -e "Downloaded files are in ${DATA_DIR}"
''''