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

Added TRT config for inference #1907

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

borisfom
Copy link

Description

Added TRT config for MAISI and the extension of the inference script to handle extra config file.

Note: autoencoder.decoder currently cannot be exported to TRT (crashes during engine generation).
It does not seem to take a big part of the whole run anyway.

Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
"device": "cuda",
"controlnet": "$trt_compile(@controlnet_def.to(@device), @trained_controlnet_path, @c_trt_args)",
"diffusion_unet": "$trt_compile(@diffusion_unet_def.to(@device), @trained_diffusion_path)",
"mask_generation_diffusion": "$trt_compile(@mask_generation_diffusion_def.to(@device), @trained_mask_generation_diffusion_path)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @borisfom , thanks for the changes.
Can I confirm if mask_generation_diffusion supports TRT? Should we also modify https://github.com/Project-MONAI/model-zoo/blob/dev/models/maisi_ct_generative/configs/inference_trt.json ?

Copy link
Author

Choose a reason for hiding this comment

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

Well mask_generation_diffusion was never called - it probably is TRT compliant, but never tested.
No need to modify current model-zoo config until we have a config that engages this component.

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