Last active
August 23, 2022 09:57
-
-
Save bgulla/5c8b41e33e3af98ab7485cd71aa0a2cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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