Skip to content

Trt overhaul#1

Draft
MorkTheOrk wants to merge 9 commits into
masterfrom
trt_overhaul
Draft

Trt overhaul#1
MorkTheOrk wants to merge 9 commits into
masterfrom
trt_overhaul

Conversation

@MorkTheOrk

Copy link
Copy Markdown
Owner

No description provided.

@gedoensmax gedoensmax left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner and less intrusive than the command line tool version ! Nicely done.

Comment thread export_trt.py
Comment thread export_trt.py Outdated
Comment thread export_trt.py Outdated
Comment thread export_trt.py Outdated
Comment thread export_trt.py Outdated
Comment thread ui_trt.py Outdated
button_export_preset_trt = gr.Button(value="Convert ONNX to TensorRT", variant='primary', elem_id="button_export_preset_trt")


# with gr.Tab(label="Convert ONNX to TensorRT (Custom)"):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove all the commented code

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need this UI later in the future.

Comment thread ui_trt.py Outdated
Comment on lines +147 to +148
inputs=[trt_filename, trt_source_filename_preset, profile_512_512_1, profile_512_512_2, profile_512_512_4, profile_768x768x1,profile_768x768x2, profile_768x768x4, use_fp16],
outputs=[trt_result, trt_info],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As said on the other function I don't like this bool stuff. Why don't we just send the element ID's of the enabled buttons as list ? From that you can infer the shape info.

Comment thread ui_trt.py Outdated
Comment thread export_trt.py Outdated
Comment thread export_trt.py Outdated
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

Successfully merging this pull request may close these issues.

2 participants