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
0407c3e7
Unverified
Commit
0407c3e7
authored
May 06, 2023
by
Lucca Zenóbio
Committed by
GitHub
May 06, 2023
Browse files
Fix pipeline class on README (#3345)
Update README.md
parent
7ce3fa01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/community/README.md
examples/community/README.md
+2
-2
No files found.
examples/community/README.md
View file @
0407c3e7
...
...
@@ -1274,7 +1274,7 @@ mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data
init_image
=
download_image
(
img_url
).
resize
((
512
,
512
))
mask_image
=
download_image
(
mask_url
).
resize
((
512
,
512
))
mask_image
=
PIL
.
ImageOps
.
invert
(
mask_image
)
pipe
=
DiffusionPipeline
.
from_pretrained
(
pipe
=
Stable
DiffusionPipeline
.
from_pretrained
(
"CompVis/stable-diffusion-v1-4"
,
torch_dtype
=
torch
.
float16
,
custom_pipeline
=
"stable_diffusion_repaint"
,
)
pipe
.
scheduler
=
RePaintScheduler
.
from_config
(
pipe
.
scheduler
.
config
)
...
...
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