Issues with either Float32 or shape of output
M-Strzelecki opened this issue · comments
Hi im making android application with a barcode scanned to extract nutritional information. I'm trying to use tflite for flutter to determine whether the scanned food product is good or not i keep running into an error and no mater what i do i either ger error I/flutter (30302): Error during prediction: type 'List' is not a subtype of type 'Float32List' of 'value' or I/flutter (25980): Error during prediction: Invalid argument(s): Output object shape mismatch, interpreter returned output of shape: [1, 5] while shape of output provided as argument in run is: [5] i double checked everything and it should be right i even tried to hardcode some values to make sure there is no issues with ones I'm parsing from there barcode scanner. I'm using version tflite_flutter: ^0.10.4
Below are images of the code that i believe are relevant to the issues.