pretrained("runwayml/stable-diffusion-v1-5")

>>> # Use a different scheduler
>>> from diffusers import LMSDiscreteScheduler

>>> scheduler = LMSDiscreteScheduler.from_config(pipeline.scheduler.config)
>>> pipeline.scheduler = scheduler

numpy_to_pil

<
source
>
(
images

)



Convert a numpy image or a batch of images to a PIL image.

save_pretrained

<
source
>
(
save_directory: typing.Union[str, os.PathLike]
safe_serialization: bool = False
