Skip to content

export to ONNX / tensorrt #386

Answered by rwightman
LukeAI asked this question in Q&A
Jan 26, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@LukeAI You can likely leverage code I have in another repository for export to ONNX and validation in ONNX.

See the scripts here, and note you should be able to change this line to timm.create_model and export many (most?) of the models here: https://github.com/rwightman/gen-efficientnet-pytorch/blob/master/onnx_export.py#L65

Tensort has further constrains beyond ONNX but I imagine it should still work for several models (haven't tried in a while). Things often break (unrelated to the models) here across different PyTorch/ONNX/TesnorRt releases so expect some turbulence.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LukeAI
Comment options

Answer selected by LukeAI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants