flutter_tflite
flutter_tflite copied to clipboard
Shape error
i keep getting this error "cannot copy from a tensorflowlite tensor (identity) with shape [1, 16128, 4] to a java object with shape [1, 5]" and i was using android i had to change the input but when it comes to flutter i cant do any thing.
I had a similar problem. First you need to know if your model is Image Classification or an Object Detection Model. Than you need to ensure the model is compatible with this library and if you are using the right settings.
You can get more information about your model here: https://netron.app/ You can train your custom Image Classification here: https://teachablemachine.withgoogle.com/ You can train your custom Object Detection here: https://github.com/IfProgrammingIsMagicImaWizard/Train-Your-Own-Custom-Object-Detection-Model-for-Flutter-with-Tiny-Yolov2