File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
docs/source/api/pipelines Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments