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
61
61
... AltDiffusionImg2ImgPipeline,
62
62
... )
63
63
64
- >>> img2text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
65
- >>> img2img = AltDiffusionImg2ImgPipeline(**img2text .components)
64
+ >>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
65
+ >>> img2img = AltDiffusionImg2ImgPipeline(**text2img .components)
66
66
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
68
68
```
69
69
70
70
## 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
61
61
... StableDiffusionInpaintPipeline,
62
62
... )
63
63
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)
67
67
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
69
69
```
70
70
71
71
## StableDiffusionPipelineOutput
Original file line number Diff line number Diff line change @@ -680,9 +680,9 @@ def components(self) -> Dict[str, Any]:
680
680
... StableDiffusionInpaintPipeline,
681
681
... )
682
682
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)
686
686
```
687
687
688
688
Returns:
You can’t perform that action at this time.
0 commit comments