Skip to content

Instantly share code, notes, and snippets.

@bgulla
Last active August 23, 2022 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgulla/5c8b41e33e3af98ab7485cd71aa0a2cd to your computer and use it in GitHub Desktop.
Save bgulla/5c8b41e33e3af98ab7485cd71aa0a2cd to your computer and use it in GitHub Desktop.
#!/bin/sh
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 -y
sudo apt-get install libedgetpu1-max python3-pycoral -y
mkdir coral && cd coral
git clone https://github.com/google-coral/pycoral.git
cd pycoral
bash examples/install_requirements.sh classify_image.py
reboot
pip3 install --extra-index-url https://google-coral.github.io/py-repo/ pycoral
python3 examples/classify_image.py \
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--labels test_data/inat_bird_labels.txt \
--input test_data/parrot.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment