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

CHANGE TFlite is not working.. #4

Open
NeighborhoodCoding opened this issue Sep 8, 2020 · 6 comments
Open

CHANGE TFlite is not working.. #4

NeighborhoodCoding opened this issue Sep 8, 2020 · 6 comments

Comments

@NeighborhoodCoding
Copy link

NeighborhoodCoding commented Sep 8, 2020

HI

I want to change tflite file

so i changed your yolov2 file to this
https://github.com/hunglc007/tensorflow-yolov4-tflite/blob/master/android/app/src/main/assets/yolov4-416-fp32.tflite

and I selected model as yolo not ssd.

but It not perform anything after picture selecting

something should i changed more...?


Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2535, 4] to a Java object with shape [1, 13, 13, 425]

@Liisjak
Copy link

Liisjak commented Oct 8, 2020

HI

I want to change tflite file

so i changed your yolov2 file to this
https://github.com/hunglc007/tensorflow-yolov4-tflite/blob/master/android/app/src/main/assets/yolov4-416-fp32.tflite

and I selected model as yolo not ssd.

but It not perform anything after picture selecting

something should i changed more...?

Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2535, 4] to a Java object with shape [1, 13, 13, 425]

Hey, I have the exact same problem, have you figured out the solution yet?

@ghost
Copy link

ghost commented Dec 3, 2020

@SungmanHong @Liisjak
Did you solve it?
Finally I found a solution.

The solution is that the labels length must match the output tensor length for trained model. So you need to find the right . weights file and convert it to .tflite.
here is an example -->> here.

I hope it will be resolved.
thanks.

@Liisjak
Copy link

Liisjak commented Dec 3, 2020

@tmdgml-96 Hello, thanks for help, but we were solving a problem for YOLOv4 not YOLOv2.

@rohang1411
Copy link

HI
I want to change tflite file
so i changed your yolov2 file to this
https://github.com/hunglc007/tensorflow-yolov4-tflite/blob/master/android/app/src/main/assets/yolov4-416-fp32.tflite
and I selected model as yolo not ssd.
but It not perform anything after picture selecting
something should i changed more...?
Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2535, 4] to a Java object with shape [1, 13, 13, 425]

Hey, I have the exact same problem, have you figured out the solution yet?

HI

I want to change tflite file

so i changed your yolov2 file to this
https://github.com/hunglc007/tensorflow-yolov4-tflite/blob/master/android/app/src/main/assets/yolov4-416-fp32.tflite

and I selected model as yolo not ssd.

but It not perform anything after picture selecting

something should i changed more...?

Caused by: java.lang.IllegalArgumentException: Cannot copy from a TensorFlowLite tensor (Identity) with shape [1, 2535, 4] to a Java object with shape [1, 13, 13, 425]

hey did you get any solution?

@Liisjak
Copy link

Liisjak commented Jan 27, 2021

@iampawan
Copy link
Owner

I will fix it soon

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

4 participants