-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
27 lines (20 loc) · 954 Bytes
/
install.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
#!/bin/bash
# Update
sudo apt update
sudo apt dist-upgrade -y
# Run the pi requirements
chmod +x get_pi_requirements.sh
sudo ./get_pi_requirements.sh
# Get the tflite of mobilenet coco
wget https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
unzip coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip -d Sample_TFLite_model
sudo rm coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
# Setting up the Coral TPU
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install libedgetpu1-std -y
wget https://dl.google.com/coral/canned_models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite
mv mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite Sample_TFLite_model/edgetpu.tflite
# Done!
sudo reboot