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

Hello, How to convert the PTH model into an ONNX format model #113

Open
wangqingl opened this issue Sep 11, 2023 · 1 comment
Open

Hello, How to convert the PTH model into an ONNX format model #113

wangqingl opened this issue Sep 11, 2023 · 1 comment

Comments

@wangqingl
Copy link

When I train a PTH format model and hope to convert it into an ONNX model, using ONNXRuntime for inference and deployment, I always report an error.

@wangqingl
Copy link
Author

When the code runs to
image = [x["iamge"].to(self.device) for x in batch_inputs]
Code error “too many indices for tensor of dimension 3”

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