Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with either Float32 or shape of output #197

Open
M-Strzelecki opened this issue Feb 18, 2024 · 0 comments
Open

Issues with either Float32 or shape of output #197

M-Strzelecki opened this issue Feb 18, 2024 · 0 comments

Comments

@M-Strzelecki
Copy link

M-Strzelecki commented Feb 18, 2024

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.

tflite
tflite2
tflite3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant