You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to run an object detection TFLite model with the following specifications:
Input shape:[1, 640, 640, 3]
Output shape:[1, 25200, 7]
The main issue is preprocessing the input image to match the required format (float32). Below are the approaches I’ve tried so far, but none of them worked.
First Attempt
I used a straightforward method to read the image and convert it into float32:
Result: This approach also failed. The main issue was with the tflite_flutter_helper package, which relies on outdated dependencies and is no longer actively maintained.
Request
Can someone please:
Explain the steps I need to follow to preprocess the input image to match the required format [1, 640, 640, 3] and type float32.
Provide guidance on resizing, normalizing, and converting the image effectively.
Suggest packages or dependencies to use, considering that tflite_flutter_helper is outdated.
Any help or example code would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Description
I’m trying to run an object detection TFLite model with the following specifications:
[1, 640, 640, 3]
[1, 25200, 7]
The main issue is preprocessing the input image to match the required format (
float32
). Below are the approaches I’ve tried so far, but none of them worked.First Attempt
I used a straightforward method to read the image and convert it into
float32
:Result: This approach failed because the image wasn’t resized, normalized, or correctly formatted for the model input.
Second Attempt
I used
tflite_flutter_helper
to preprocess the image, assuming it would handle resizing and normalization:Result: This approach also failed. The main issue was with the
tflite_flutter_helper
package, which relies on outdated dependencies and is no longer actively maintained.Request
Can someone please:
[1, 640, 640, 3]
and typefloat32
.tflite_flutter_helper
is outdated.Any help or example code would be greatly appreciated!
The text was updated successfully, but these errors were encountered: