Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
63b34191
Commit
63b34191
authored
Nov 17, 2022
by
Patrick von Platen
Browse files
Fix typo
parent
b21a463a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
docs/source/api/pipelines/alt_diffusion.mdx
docs/source/api/pipelines/alt_diffusion.mdx
+3
-3
docs/source/api/pipelines/stable_diffusion.mdx
docs/source/api/pipelines/stable_diffusion.mdx
+4
-4
src/diffusers/pipeline_utils.py
src/diffusers/pipeline_utils.py
+3
-3
No files found.
docs/source/api/pipelines/alt_diffusion.mdx
View file @
63b34191
...
@@ -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,
... )
... )
>>>
img2
text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
>>> text
2img
= AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
>>> img2img = AltDiffusionImg2ImgPipeline(**
img2
text.components)
>>> img2img = AltDiffusionImg2ImgPipeline(**text
2img
.components)
>>> # now you can use
img2
text(...) and img2img(...) just like the call methods of each respective pipeline
>>> # now you can use text
2img
(...) and img2img(...) just like the call methods of each respective pipeline
```
```
## AltDiffusionPipelineOutput
## AltDiffusionPipelineOutput
...
...
docs/source/api/pipelines/stable_diffusion.mdx
View file @
63b34191
...
@@ -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,
... )
... )
>>>
img2
text = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
>>> text
2img
= StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
>>> img2img = StableDiffusionImg2ImgPipeline(**
img2
text.components)
>>> img2img = StableDiffusionImg2ImgPipeline(**text
2img
.components)
>>> inpaint = StableDiffusionInpaintPipeline(**
img2
text.components)
>>> inpaint = StableDiffusionInpaintPipeline(**text
2img
.components)
>>> # now you can use
img2
text(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline
>>> # now you can use text
2img
(...), img2img(...), inpaint(...) just like the call methods of each respective pipeline
```
```
## StableDiffusionPipelineOutput
## StableDiffusionPipelineOutput
...
...
src/diffusers/pipeline_utils.py
View file @
63b34191
...
@@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin):
... StableDiffusionInpaintPipeline,
... StableDiffusionInpaintPipeline,
... )
... )
>>>
img2
text = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> text
2img
= StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> img2img = StableDiffusionImg2ImgPipeline(**
img2
text.components)
>>> img2img = StableDiffusionImg2ImgPipeline(**text
2img
.components)
>>> inpaint = StableDiffusionInpaintPipeline(**
img2
text.components)
>>> inpaint = StableDiffusionInpaintPipeline(**text
2img
.components)
```
```
Returns:
Returns:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment