shaqian / tflite-react-native

React Native library for TensorFlow Lite
https://www.npmjs.com/package/tflite-react-native
MIT License
291 stars 106 forks source link

Error on tensor allocations (TFLite_Detection_PostProcess) #16

Closed kad1r closed 4 years ago

kad1r commented 5 years ago

Hi,

I'm getting this error on loading model. First I used my trained tflite file, then I downloaded original tensorflow tflite example from website and it gives same error. Not sure is it related with me but do you guys have any idea?

image

kad1r commented 5 years ago

I assume this issue is related with how you convert your tflite file. Some of tflite files are working well but some of them are not.

shaqian commented 4 years ago

Yes. It looks like something is wrong with the output tensor of the tflite file. Num of outputs is expected to be 4 but it's actually 1.

Thanks, Qian