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
I was testing the https://huggingface.co/docs/diffusers/optimization/torch2.0 examples,
The normal 'Accelerated Transformers implementation' was successful.
But the torch.compile example:
pipe.unet = torch.compile(pipe.unet)
image = pipe(prompt).images[0]
gives warning:
pipelines/pipeline_utils.py:1023: RuntimeWarning: invalid value encountered in cast
images = (images * 255).round().astype("uint8")
Resulting in black images.