google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
340 stars 138 forks source link

AttributeError: 'Interpreter' object has no attribute '_get_full_signature_list' #98

Closed lavarok closed 1 year ago

lavarok commented 1 year ago

Description

I can't get the detect_image.py example to run. I've tried using different models, but I keep getting an error about the signature list.

Click to expand! ### Issue Type Bug, Build/Install ### Operating System Ubuntu ### Coral Device M.2 Accelerator A+E ### Other Devices _No response_ ### Programming Language Python 3.8 ### Relevant Log Output ```shell ----INFERENCE TIME---- Note: The first inference is slow because it includes loading the model into Edge TPU memory. Traceback (most recent call last): File "examples/detect_image.py", line 108, in main() File "examples/detect_image.py", line 87, in main objs = detect.get_objects(interpreter, args.threshold, scale) File "/usr/lib/python3/dist-packages/pycoral/adapters/detect.py", line 204, in get_objects signature_list = interpreter._get_full_signature_list() AttributeError: 'Interpreter' object has no attribute '_get_full_signature_list' ```
hjonnala commented 1 year ago
AttributeError: 'Interpreter' object has no attribute '_get_full_signature_list'

Please check the tflite runtime version and if its not 2.5.0post1, please uninstall and install it again with the instuctions at: https://coral.ai/software/#debian-packages

hemanthj@:~$ python3 -c "import tflite_runtime as tflite; print('tflite runtime vesrion:', tflite.__version__);import pycoral; print('pycoral version:', pycoral.__version__)"
tflite runtime vesrion: 2.5.0.post1
pycoral version: 2.0.0
lavarok commented 1 year ago

Thanks for that! While not technically an install issue, it led me to find that I had a copy of tflite_runtime hiding in /usr/local/lib/python3.8.

google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No