-
Notifications
You must be signed in to change notification settings - Fork 74k
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
TFLite Movenet multipose/lightning input error #53127
Comments
@ArtanBerisha1 |
Hi, @sushreebarsa
I am replacing the model in Object Detection Example app(Android App) provided by tensorflow, here is the code snippet that I use to run the inference on Bitmap:
EDIT: |
Hi @ArtanBerisha1 ! Can you check this thread to change your image width , length and input shape accordingly(For example length 500 and height 250 ,buffer size 4x500x250x1 = 500000 , it can copy 49,15,20 bytes from 50,00,00 bytes) ? Thanks! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Hello |
@Raaed-Ilham Could you please create a new issue after filling all the details so that we can track the same? |
Done! Please take a look at it if possible |
Hi,
I am trying to load and run the Movenet multipose model, the loading of model works fine but when I try to run it gives this error:
java.lang.IllegalArgumentException: Cannot copy to a TensorFlowLite tensor (serving_default_input:0) with 3 bytes from a Java Buffer with 491520 bytes.
As I can understand (and also I looked the model graph in Netron app) the input of the model is
type: uint8[1,1,1,3]
, and this is what the error is also telling, that my converted image doesn't fit the input of the model. So my question is: is this intentionally or the model is not correct ?I downloaded model from Tensorflow Hub -> https://tfhub.dev/google/lite-model/movenet/multipose/lightning/tflite/float16/1
And here (in the link above) also is specified that the model accepts 'A frame of video or an image, represented as an
int32 tensor of dynamic shape: 1xHxWx3
'. I handled the dynamic shape tensor as suggested in the link.Thank you!
The text was updated successfully, but these errors were encountered: