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 created a new TFlite model using another dataset that I had, but after replacing all the necessary files with the right ones (JSON, manifest, model.tflite, etc), I tried to run the app and ran into a problem. "Cannot convert between a TensorFlowLite buffer with 786432 bytes and a ByteBuffer with 196608 bytes." I've managed to figure out that this error is being caused by incorrect use of ByteBuffer (Since you need 4 bytes for a float, and the tflite model uses floats, you actually need 19660 * 4 = 786432 byes). More information can be found on this thread: amitshekhariitbhu/Android-TensorFlow-Lite-Example#6.
How exactly would I go about resolving this issue? Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
I created a new TFlite model using another dataset that I had, but after replacing all the necessary files with the right ones (JSON, manifest, model.tflite, etc), I tried to run the app and ran into a problem. "Cannot convert between a TensorFlowLite buffer with 786432 bytes and a ByteBuffer with 196608 bytes." I've managed to figure out that this error is being caused by incorrect use of ByteBuffer (Since you need 4 bytes for a float, and the tflite model uses floats, you actually need 19660 * 4 = 786432 byes). More information can be found on this thread: amitshekhariitbhu/Android-TensorFlow-Lite-Example#6.
How exactly would I go about resolving this issue? Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: