 different results than subsequent ones. You only need to do this pass once, and it’s ok to use just one inference step and discard the result.
We strongly recommend you use PyTorch 2 or better, as it solves a number of problems like the one described in the previous tip.


	Copied
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
pipe = pipe.to("mps")

# Recommended if your comp