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
Unable to load asset #78
Comments
I'm having this issue too. Any help will be appreciated |
@mtkgeek Are you having this issue when using the default model? If you are, I was unfortunately never able to get it working with the default model but when I switched over to the ssd mobilenet model it was working fine. I'm not entirely sure what was causing it not to work with the default model but try using a different model and see if that works for you |
@malder08 I'm using an automl vision pretrained model and i think it's quantized. I guess tflite still has issues working with quantized models. Thanks anyways. |
@Ehtasha If you are using the default model, then I never got around to fixing the problem. Unless you have to, I would just use another model like the ssd mobilenet model. |
@malder08 import 'dart:io' as Io;
var imageBytes = Io.File(image.path).readAsBytesSync(); |
I'm using the recognizeBinaryImage and imageToByteListFloat32 function from the example in conjunction with the imagePicker function where I pass in the selected image file from another screen. When running the recognizeBinaryImage function, an error is thrown at this line:
var imageBytes = (await rootBundle.load(image.path)).buffer;
The error I receive is
Unable to load asset: /storage/emulated/0/Android/data/com.example.tensorflow_image_classification_gci/files/Pictures/20191205_133618.jpg
Another thoughts on what the problem could be?
The text was updated successfully, but these errors were encountered: