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

Export onnx error #294

Open
lws6885 opened this issue Jan 4, 2024 · 1 comment
Open

Export onnx error #294

lws6885 opened this issue Jan 4, 2024 · 1 comment

Comments

@lws6885
Copy link

lws6885 commented Jan 4, 2024

network = make_network(cfg).cuda()
load_network(network, cfg.model_dir, epoch=cfg.test.epoch)
network.eval()

# export onnx
dummy = torch.zeros(1, 3, 1024, 2048).cuda()
torch.onnx.export(network,
                  dummy,
                  "cat.onnx",
                  input_names=["image"],
                  output_names=["output"],
                  opset_version=11)

RuntimeError: Exporting the operator uniform to ONNX opset version 11 is not supported. Please open a bug to request ONNX export support for the missing operator.

Test model is from the google driver, named 199.pth.

@michalt38
Copy link

@lws6885 did you manage to solve this issue?

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

2 participants