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

Help understanding how the edgetpu compiler works #106

Closed APatel2001 closed 1 year ago

APatel2001 commented 1 year ago

Hello,

My friend and I at Purdue University are working on a project where we want to improve and add functionality to the Google Coral device and we were wondering if someone on this github would be willing to explain to us how the edgetpu_compiler works and we are also wondering if the source code for the compiler is availible anywhere!

Thanks, Avi

hjonnala commented 1 year ago

Hello @APatel2001 source code for compiler is not open sourced. Please check the documentation for compiler usage at: https://coral.ai/docs/edgetpu/compiler/. Thanks!

APatel2001 commented 1 year ago

From what I am understanding right now, coral only supports a subset of the tflite operations. I was wondering if it is possible to make more of the tflite operations supported by coral without access to the compiler source code!

hjonnala commented 1 year ago

I was wondering if it is possible to make more of the tflite operations supported by coral without access to the compiler source code!

No, its not possible.

jinensetpal commented 1 year ago

Hey, @hjonnala! Thank you for your prompt responses! Another question we had:

We attempted compiling libedgetpu with debug flag. While this worked, and it was able to read the symbols correctly, it caused a segmentation fault on inference. Is this a known issue, and is there any way we can get around this?

hjonnala commented 1 year ago

We attempted compiling libedgetpu with debug flag. While this worked, and it was able to read the symbols correctly, it caused a segmentation fault on inference. Is this a known issue, and is there any way we can get around this?

Hi, The question is not relevant for this thread. Is it happening for all the models or any particular model? Mostly, it would be an issue with the model. Feel free to test the infrence using the script at: https://github.com/hjonnala/snippets/blob/main/coral_inference.py. and open a new issue for any questions on this one. Thanks!!

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

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