You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi in this case I see that the inputs are getting moved to "cuda" device if it finds the target cuda device. Did you try explicitly placing the tensor to ".cuda()"?
Hi @binliunls , I tried running the above steps to test the Runtime warning with dynamo path, but I run into ModuleNotFoundError: Cannot locate class or function path: 'generative.networks.nets.DiffusionModelUNet'. Is there something missing from requirements.txt?
Bug Description
When run the inference with a converted TensorRT torchscript of MONAI generative model, it reports the warning shown below.
To Reproduce
Steps to reproduce the behavior:
The way to reproduce the error:
python -m monai.bundle download brats_mri_axial_slices_generative_diffusion --bundle_dir ./
to download the model to a local path.python -m monai.bundle trt_export --net_id network_def --filepath models/model_trt.ts --ckpt_file models/model.pt --meta_file configs/metadata.json --config_file configs/inference.json --precision fp32 --use_trace "True" --input_shape "[[1, 1, 64, 64], [1,]]" --converter_kwargs "{'truncate_long_and_double': True}"
to convert the modelRun the inference with code like:
Expected behavior
No need to move tensors from CPU to GPU.
Environment
Additional context
The text was updated successfully, but these errors were encountered: