From 63b34191b99bebd65fda69eb32d4d9a8872b9e75 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Thu, 17 Nov 2022 16:47:19 +0100 Subject: [PATCH] Fix typo --- docs/source/api/pipelines/alt_diffusion.mdx | 6 +++--- docs/source/api/pipelines/stable_diffusion.mdx | 8 ++++---- src/diffusers/pipeline_utils.py | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/source/api/pipelines/alt_diffusion.mdx b/docs/source/api/pipelines/alt_diffusion.mdx index efa9beb8..84dda88d 100644 --- a/docs/source/api/pipelines/alt_diffusion.mdx +++ b/docs/source/api/pipelines/alt_diffusion.mdx @@ -61,10 +61,10 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec ... AltDiffusionImg2ImgPipeline, ... ) ->>> img2text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion") ->>> img2img = AltDiffusionImg2ImgPipeline(**img2text.components) +>>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion") +>>> img2img = AltDiffusionImg2ImgPipeline(**text2img.components) ->>> # now you can use img2text(...) and img2img(...) just like the call methods of each respective pipeline +>>> # now you can use text2img(...) and img2img(...) just like the call methods of each respective pipeline ``` ## AltDiffusionPipelineOutput diff --git a/docs/source/api/pipelines/stable_diffusion.mdx b/docs/source/api/pipelines/stable_diffusion.mdx index 1d22024a..8b551f7a 100644 --- a/docs/source/api/pipelines/stable_diffusion.mdx +++ b/docs/source/api/pipelines/stable_diffusion.mdx @@ -61,11 +61,11 @@ If you want to use all possible use cases in a single `DiffusionPipeline` you ca ... StableDiffusionInpaintPipeline, ... ) ->>> img2text = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") ->>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components) ->>> inpaint = StableDiffusionInpaintPipeline(**img2text.components) +>>> text2img = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") +>>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components) +>>> inpaint = StableDiffusionInpaintPipeline(**text2img.components) ->>> # now you can use img2text(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline +>>> # now you can use text2img(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline ``` ## StableDiffusionPipelineOutput diff --git a/src/diffusers/pipeline_utils.py b/src/diffusers/pipeline_utils.py index 65432f47..cf2bbb98 100644 --- a/src/diffusers/pipeline_utils.py +++ b/src/diffusers/pipeline_utils.py @@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin): ... StableDiffusionInpaintPipeline, ... ) - >>> img2text = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") - >>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components) - >>> inpaint = StableDiffusionInpaintPipeline(**img2text.components) + >>> text2img = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") + >>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components) + >>> inpaint = StableDiffusionInpaintPipeline(**text2img.components) ``` Returns: