Closed Wirg closed 3 years ago
@wrig I am able to run the inference for both CPU tflite and edgetpu models. Are you using tflite-runtime==2.5.0.post1?
I am currently running 2.5.0. Should I update ?
yes, please get the latest pycoral, tflite runtime and edgetpu runtime from software page
python3 -c "import pycoral.utils.edgetpu; print(pycoral.utils.edgetpu.get_runtime_version())"
output should be below:
BuildLabel(COMPILER=6.3.0 20170516,DATE=redacted,TIME=redacted), RuntimeVersion(14)
numpy==1.21.2
Pillow==8.3.2
pycoral==2.0.0
tflite-runtime==2.5.0.post1
@hjonnala
So it works for me on cpu. I will test on tpu tomorrow.
I guess the issue has been resolved in the post release then ?
@Wirg Are you able to test the tpu model?
Are you able to test the tpu model?
Hi @hjonnala thanks for contacting me again.
This works "properly" when updating to 2.5.0.post1
and the runtime 14
.
By properly I mean it performs in the same way than the normal quantized model.
Right now, quantization yields really bad performance with my last operations, but I think I have to go and ask tflite team.
I think I have one last question for you : I am compiling using this command edgetpu_compiler -s -m 13 quantized_size_224.tflite
.
I would expect :
Am I wrong in expecting this ?
@wrig if you compile the model with-m 13 flag
you would be able to run this model with edgetpu runtime 13 installation from software page.
This model would work with edgetpu runtime 13
and tflite runtime 2.5.0 post1
. Some models compiled with Edge TPU Compiler version 16.0.384591198
might require tflite runtime 2.5.0 post1
Description
Hello,
Thanks to the coral team for the edge tpus and the support.
I am trying to convert a model to tflite then to compile it for edge_tpu. I am having issue with converting the reverse operation. Is there any alternative ? Shouldn't both operation fail if they can not be run ?
Here is my tflite conversion configuration :
Both operations succeed. But I can not run any of the models with tflite. Logs for the normal version (not tpu) :
Logs for the edge tpu version :
Code to run :
Corresponding weights. outputs.zip
Issue Type
Bug
Operating System
Ubuntu
Coral Device
USB Accelerator
Other Devices
No response
Programming Language
Python 3.7
Relevant Log Output