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
b9b7039f
Unverified
Commit
b9b7039f
authored
Nov 17, 2022
by
Patrick von Platen
Committed by
GitHub
Nov 17, 2022
Browse files
img2text Typo (#1329)
* make fix copies again * Fix typo
parent
e05ca84f
Changes
3
Show 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 @
b9b7039f
...
...
@@ -61,10 +61,10 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec
... AltDiffusionImg2ImgPipeline,
... )
>>>
img2
text = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
>>> img2img = AltDiffusionImg2ImgPipeline(**
img2
text.components)
>>> text
2img
= AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
>>> 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
...
...
docs/source/api/pipelines/stable_diffusion.mdx
View file @
b9b7039f
...
...
@@ -61,11 +61,11 @@ If you want to use all possible use cases in a single `DiffusionPipeline` you ca
... StableDiffusionInpaintPipeline,
... )
>>>
img2
text = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
>>> img2img = StableDiffusionImg2ImgPipeline(**
img2
text.components)
>>> inpaint = StableDiffusionInpaintPipeline(**
img2
text.components)
>>> text
2img
= StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
>>> img2img = StableDiffusionImg2ImgPipeline(**text
2img
.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
...
...
src/diffusers/pipeline_utils.py
View file @
b9b7039f
...
...
@@ -680,9 +680,9 @@ class DiffusionPipeline(ConfigMixin):
... StableDiffusionInpaintPipeline,
... )
>>>
img2
text = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> img2img = StableDiffusionImg2ImgPipeline(**
img2
text.components)
>>> inpaint = StableDiffusionInpaintPipeline(**
img2
text.components)
>>> text
2img
= StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
>>> img2img = StableDiffusionImg2ImgPipeline(**text
2img
.components)
>>> inpaint = StableDiffusionInpaintPipeline(**text
2img
.components)
```
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