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

pytorch -> ONNX -> Tensorflow -> TensorflowLite #1081

Open
sahasraa opened this issue Oct 19, 2024 · 0 comments
Open

pytorch -> ONNX -> Tensorflow -> TensorflowLite #1081

sahasraa opened this issue Oct 19, 2024 · 0 comments

Comments

@sahasraa
Copy link

Hi all,

  1. I am trying to run yolov7.pt model on raspberry. as pytorch doesn't directly have supporting packages to run on raspi, I am following this pytorch -> ONNX -> Tensorflow -> TensorflowLite.
  2. I am working on MacBook AIR M2
  3. I have converted pytorch to ONNX successfully. exporting ONNX to TF has been a struggle

The issues I am facing are, package version issues.

apple silicon supports TensorFlow-mascos package, that is having package dependency issues with others.

The command I am using is onnx-tf convert -i yolov7.onnx -o yolov7.pb

The error I am getting is,

ValueError: Arg specs do not match: original=FullArgSpec(args=['input', 'dtype', 'name', 'layout'], varargs=None, varkw=None, defaults=(None, None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), new=FullArgSpec(args=['input', 'dtype', 'name'], varargs=None, varkw=None, defaults=(None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), fn=<function ones_like_v2 at 0x16c595ca0>

This means result of version mismatch between TensorFlow and TensorFlow Probability. The core issue here is that the arguments to a function in TensorFlow (ones_like_v2) don't match the expectations in TensorFlow Probability.

Could anyone help to help solve of mismatch between versions.

Thanks in advance

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

1 participant