google-coral / project-bodypix

BodyPix model demo application for Google Coral
Apache License 2.0
275 stars 52 forks source link

Usage of your BodyPix models on RPi without TPU accelerator #4

Closed mcwoojcik closed 3 years ago

mcwoojcik commented 4 years ago

Hello, is it possible to use your BodyPix models which are optimized for TPU only on RPi (without accelerator)? I obtained during AllocateTensors(): ERROR: Encountered unresolved custom op: edgetpu-custom-op. ERROR: Node number 0 (edgetpu-custom-op) failed to prepare. So I suppose that I can't.

In other way - is it possible to find just .tflite or .pb version of BodyPix model?

Thank you in advance

Namburger commented 4 years ago

@mcwoojcik Currently the BasicEngine will requires that the model is edgetpu compiled, so even with the tflite models, you'd need to re-implement pose_engine to use the tflite API instead of the edgetpu api.

de-code commented 3 years ago

Hi @Namburger I created tf-bodypix (based on other great work). It doesn't have the pose detection yet. I am wondering whether you think it would be feasible to have one core project being able to support regular TensorFlow, TensorFLow Lite as well as well as the EdgeTPU? Or do you think that would be fundamentally difficult? (It just seems there is some duplication in re-implementing the pose detection for example)

Naveen-Dodda commented 3 years ago

@de-code, technically it is feasible to have everything related to bodypix at one place. But as of now we don't have any plans or goals aligned to do this. I would take this feedback to the team.

As your questions has been answered I am closing this for now.