TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

🐛 [Bug] The example of torch tensorrt cannot generate images correctly

Open pangyoki opened this issue 5 months ago • 4 comments

Bug Description

The example of pytorch tensorrt cannot generate images correctly. There were no issues with version v2.3.0, but version v2.4.0 cannot generate images correctly. https://github.com/pytorch/TensorRT/blob/main/examples/dynamo/torch_compile_stable_diffusion.py

To Reproduce

Steps to reproduce the behavior:

  1. python3 examples/dynamo/torch_compile_stable_diffusion.py

Expected behavior

the example can generate normal image.

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • Torch-TensorRT Version (e.g. 1.0.0): 2.4.0
  • PyTorch Version (e.g. 1.0): 2.4.1
  • OS (e.g., Linux): linux
  • How you installed PyTorch (conda, pip, libtorch, source): pip
  • Python version: 3.9
  • CUDA version: 12.4

Additional context

pangyoki avatar Sep 02 '24 08:09 pangyoki