,
... )

>>> text2img = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
>>> inpaint = StableDiffusionInpaintPipeline(**text2img.components)  disable_attention_slicing  < source > ( )    Disable sliced attention computation. If enable_attention_slicing was previously called, attention is
computed in one step.  disable_xformers_memory_efficient_attention