bitsy-ai / rpi-object-tracking

Object tracking tutorial using TensorFlow / TensorFlow Lite, Raspberry Pi, Pi Camera, and a Pimoroni Pan-Tilt Hat.
https://medium.com/@grepLeigh/real-time-object-tracking-with-tensorflow-raspberry-pi-and-pan-tilt-hat-2aeaef47e134
MIT License
183 stars 70 forks source link

Use Coral edgetpu tflite_runtime.lite.Interpreter class instead of tensorflow.lite.Interpreter #31

Closed leigh-johnson closed 4 years ago

leigh-johnson commented 4 years ago

To use Coral Edge TPU's Python API, you must use their bundled Interpreter and Delegate base classes as well. I think these SWIG wrappers are probably built and linked against a specific TensorFlow commit.

Using libedgetpu.so with tensorflow.lite.Interpreter, results in an error that's almost certainly raised by an incorrect SWIG typemap.

Unsupported data type in custom op handler: 0Node number 2 (EdgeTpuDelegateForCustomOp)

If edgetpu contributors are accepting patches, continue troubleshooting by grepping through a diff of all typemap revisions between the commit libedgetpu.so is linked against and the current 2.2.0 TensorFlow release.

closes #13 link https://github.com/google-coral/edgetpu/issues/124