Skip to content

Convert pre-trained model to .onnx format #7

Description

@kosmastsk

I tried to convert the pre-trained 3D-MiniNet to .onnx format by using the script provided in a similar issue of lidar-bonnetal here.

Specifically, I changed the part that is related to the dummy input of the model in the following way:
dinput = torch.randn(1, 11, 64, 2048, device='cuda', requires_grad=True)
input_points = torch.randn(1, 11, 16, 8192, device='cuda', requires_grad=True)
dummy_input = [dinput, input_points]
and the rest of the script remains the same.

However, I get the following error related to ONNX

Failed to export an ONNX attribute, since it's not constant, please try to make things (e.g., kernel size) static if possible

I tried to apply the fix that was suggested here, but it didn't work.

Is there any other way of converting it to ONNX format?
I am using exactly the same versions of packages as in the requirements.txt file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions