Closed UcefMountacer closed 1 year ago
This is a raspbian Bullseye issue. It works with Buster.
Its working for me on Bullseye. Can you try uninstall Coral packages and install it again. Thanks!
Okey. I will do it once I have an opportunity to access the Pi.
Can you tell me some details about your setup?
Thanks
Sure Thing!!
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
pi@raspberrypi:~ $ python3
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tflite_runtime as tflite
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=6.3.0 20170516,DATE=redacted,TIME=redacted), RuntimeVersion(14)'
>>> tflite.__version__
'2.5.0.post1'
>>> import pycoral
>>> pycoral.__version__
'2.0.0'
>>> quit()
pi@raspberrypi:~/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
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
18.0ms
4.9ms
5.0ms
4.9ms
5.1ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.75781
pi@raspberrypi:~/pycoral $
had this exact issue of running the coral example on a raspberry pi
turned out to be an incompatible tflite version
fixed with:
pip uninstall tflite-runtime
sudo apt-get install python3-tflite-runtime
no solution in bullseye raspberry pi 3
I'm a raspberry pi user. I followed the guide on this page : https://coral.ai/docs/accelerator/get-started/#next-steps
and with the demo model they provided, I get the error:
user@raspberrypi:~/coral/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 Segmentation fault
I traced the issue:
Thanks for any help !!