Unverified Commit b9b7039f authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

img2text Typo (#1329)

* make fix copies again

* Fix typo
parent e05ca84f
...@@ -61,10 +61,10 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec ...@@ -61,10 +61,10 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec
... AltDiffusionImg2ImgPipeline, ... AltDiffusionImg2ImgPipeline,
... ) ... )
>>> img2text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion") >>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
>>> img2img = AltDiffusionImg2ImgPipeline(**img2text.components) >>> 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 ## AltDiffusionPipelineOutput
......
...@@ -61,11 +61,11 @@ If you want to use all possible use cases in a single `DiffusionPipeline` you ca ...@@ -61,11 +61,11 @@ If you want to use all possible use cases in a single `DiffusionPipeline` you ca
... StableDiffusionInpaintPipeline, ... StableDiffusionInpaintPipeline,
... ) ... )
>>> img2text = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") >>> text2img = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
>>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components) >>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
>>> inpaint = StableDiffusionInpaintPipeline(**img2text.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 ## StableDiffusionPipelineOutput
......
...@@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin): ...@@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin):
... StableDiffusionInpaintPipeline, ... StableDiffusionInpaintPipeline,
... ) ... )
>>> img2text = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") >>> text2img = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components) >>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
>>> inpaint = StableDiffusionInpaintPipeline(**img2text.components) >>> inpaint = StableDiffusionInpaintPipeline(**text2img.components)
``` ```
Returns: Returns:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment