Skip to content

Commit b9b7039

Browse files
img2text Typo (#1329)
* make fix copies again * Fix typo
1 parent e05ca84 commit b9b7039

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/source/api/pipelines/alt_diffusion.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec
6161
... AltDiffusionImg2ImgPipeline,
6262
... )
6363
64-
>>> img2text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
65-
>>> img2img = AltDiffusionImg2ImgPipeline(**img2text.components)
64+
>>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
65+
>>> img2img = AltDiffusionImg2ImgPipeline(**text2img.components)
6666
67-
>>> # now you can use img2text(...) and img2img(...) just like the call methods of each respective pipeline
67+
>>> # now you can use text2img(...) and img2img(...) just like the call methods of each respective pipeline
6868
```
6969

7070
## AltDiffusionPipelineOutput

docs/source/api/pipelines/stable_diffusion.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ If you want to use all possible use cases in a single `DiffusionPipeline` you ca
6161
... StableDiffusionInpaintPipeline,
6262
... )
6363
64-
>>> img2text = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
65-
>>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components)
66-
>>> inpaint = StableDiffusionInpaintPipeline(**img2text.components)
64+
>>> text2img = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
65+
>>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
66+
>>> inpaint = StableDiffusionInpaintPipeline(**text2img.components)
6767
68-
>>> # now you can use img2text(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline
68+
>>> # now you can use text2img(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline
6969
```
7070

7171
## StableDiffusionPipelineOutput

src/diffusers/pipeline_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,9 @@ def components(self) -> Dict[str, Any]:
680680
... StableDiffusionInpaintPipeline,
681681
... )
682682
683-
>>> img2text = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
684-
>>> img2img = StableDiffusionImg2ImgPipeline(**img2text.components)
685-
>>> inpaint = StableDiffusionInpaintPipeline(**img2text.components)
683+
>>> text2img = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
684+
>>> img2img = StableDiffusionImg2ImgPipeline(**text2img.components)
685+
>>> inpaint = StableDiffusionInpaintPipeline(**text2img.components)
686686
```
687687
688688
Returns:

0 commit comments

Comments
 (0)