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

pytorch2onnx #16

Open
onionysy opened this issue Jun 20, 2023 · 3 comments
Open

pytorch2onnx #16

onionysy opened this issue Jun 20, 2023 · 3 comments

Comments

@onionysy
Copy link

How to use pytorch2onnx.py?

@jasmine-97
Copy link

jasmine-97 commented Aug 31, 2023

I am confused about that too.
test_pipeline maybe is not right?

=> Loading checkpoint '/mnt/Anchor3DLane-main/che_pre/tf_efficientnet_b3_ns-9d44bf68.pth'
=> Loaded checkpoint '/mnt/Anchor3DLane-main/che_pre/tf_efficientnet_b3_ns-9d44bf68.pth'
{'type': 'Resize', 'img_scale': (480, 360), 'keep_ratio': False}
Traceback (most recent call last):
File "pytorch2onnx.py", line 379, in
rescale_shape=rescale_shape)
File "pytorch2onnx.py", line 85, in _prepare_input_img
test_pipeline[1]['transforms'][0]['keep_ratio'] = False
File "/root/anaconda3/envs/lane3d/lib/python3.7/site-packages/mmcv/utils/config.py", line 38, in missing
raise KeyError(name)
KeyError: 'transforms'

@jasmine-97
Copy link

How to use pytorch2onnx.py?

Hello, have you solved this problem? wish your reply!

@DaZhUUU
Copy link

DaZhUUU commented Mar 28, 2024

When I run pytorch2onnx.py, it occurs an error. How can I get the onnx model?
AttributeError: 'Anchor3DLane' object has no attribute 'decode_head'

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

3 participants