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

Mediapipe face_landmark.tflite model conversion error #85

Open
psiydown opened this issue May 28, 2023 · 2 comments
Open

Mediapipe face_landmark.tflite model conversion error #85

psiydown opened this issue May 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@psiydown
Copy link

Mediapipe model: https://storage.googleapis.com/mediapipe-assets/face_landmark.tflite
tflite2onnx face_landmark.tflite face_landmark.onnx
Error prompt:
Data type float16 not supported/tested yet, the generated model may contain error
Data type float16 not supported/tested yet, the generated model may contain error
Data type float16 not supported/tested yet, the generated model may contain error
Data type float16 not supported/tested yet, the generated model may contain error
Data type float16 not supported/tested yet, the generated model may contain error
Traceback (most recent call last):
File "N:\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "N:\anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "N:\anaconda3\Scripts\tflite2onnx.exe_main.py", line 7, in
File "N:\anaconda3\lib\site-packages\tflite2onnx\convert.py", line 58, in cmd_convert
convert(args.tflite_path, args.onnx_path)
File "N:\anaconda3\lib\site-packages\tflite2onnx\convert.py", line 44, in convert
model.convert(explicit_layouts)
File "N:\anaconda3\lib\site-packages\tflite2onnx\model.py", line 42, in convert
g.convert(explicit_layouts)
File "N:\anaconda3\lib\site-packages\tflite2onnx\graph.py", line 102, in convert
self._propagateLayout()
File "N:\anaconda3\lib\site-packages\tflite2onnx\graph.py", line 173, in _propagateLayout
t.transform()
File "N:\anaconda3\lib\site-packages\tflite2onnx\tensor.py", line 126, in transform
self.shape = self.layout.transform(self.shape)
File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 27, in transform
output = transform(input, self.source, self.target)
File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 16, in transform
transfrom_axis = [input[p] for p in perm]
File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 16, in
transfrom_axis = [input[p] for p in perm]
IndexError: list index out of range

@zhenhuaw-me Can you give me any help? Thank you

@psiydown psiydown added the bug Something isn't working label May 28, 2023
@Kinbon
Copy link

Kinbon commented Mar 6, 2024

Mediapipe model: https://storage.googleapis.com/mediapipe-assets/face_landmark.tflite tflite2onnx face_landmark.tflite face_landmark.onnx Error prompt: Data type float16 not supported/tested yet, the generated model may contain error Data type float16 not supported/tested yet, the generated model may contain error Data type float16 not supported/tested yet, the generated model may contain error Data type float16 not supported/tested yet, the generated model may contain error Data type float16 not supported/tested yet, the generated model may contain error Traceback (most recent call last): File "N:\anaconda3\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "N:\anaconda3\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "N:\anaconda3\Scripts\tflite2onnx.exe_main.py", line 7, in File "N:\anaconda3\lib\site-packages\tflite2onnx\convert.py", line 58, in cmd_convert convert(args.tflite_path, args.onnx_path) File "N:\anaconda3\lib\site-packages\tflite2onnx\convert.py", line 44, in convert model.convert(explicit_layouts) File "N:\anaconda3\lib\site-packages\tflite2onnx\model.py", line 42, in convert g.convert(explicit_layouts) File "N:\anaconda3\lib\site-packages\tflite2onnx\graph.py", line 102, in convert self._propagateLayout() File "N:\anaconda3\lib\site-packages\tflite2onnx\graph.py", line 173, in _propagateLayout t.transform() File "N:\anaconda3\lib\site-packages\tflite2onnx\tensor.py", line 126, in transform self.shape = self.layout.transform(self.shape) File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 27, in transform output = transform(input, self.source, self.target) File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 16, in transform transfrom_axis = [input[p] for p in perm] File "N:\anaconda3\lib\site-packages\tflite2onnx\layout.py", line 16, in transfrom_axis = [input[p] for p in perm] IndexError: list index out of range

@zhenhuaw-me Can you give me any help? Thank you

Excuse me.Have you got any idea about solving this issue?

@gokes001
Copy link

gokes001 commented Jan 5, 2025

I'm facing the same issue. Any update/solution on this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants