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
OpenDAS
diffusers
Commits
52e8fdb8
Unverified
Commit
52e8fdb8
authored
Oct 17, 2022
by
Patrick von Platen
Committed by
GitHub
Oct 17, 2022
Browse files
Update README.md
parent
ed6c61c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/README.md
examples/community/README.md
+1
-1
No files found.
examples/community/README.md
View file @
52e8fdb8
...
@@ -133,7 +133,7 @@ def download_image(url):
...
@@ -133,7 +133,7 @@ def download_image(url):
response
=
requests
.
get
(
url
)
response
=
requests
.
get
(
url
)
return
PIL
.
Image
.
open
(
BytesIO
(
response
.
content
)).
convert
(
"RGB"
)
return
PIL
.
Image
.
open
(
BytesIO
(
response
.
content
)).
convert
(
"RGB"
)
pipe
=
DiffusionPipeline
.
from_pretrained
(
"CompVis/stable-diffusion-v1-4"
,
custom_pipeline
=
"stable_diffusion_mega"
,
dtype
=
torch
.
float16
,
revision
=
"fp16"
)
pipe
=
DiffusionPipeline
.
from_pretrained
(
"CompVis/stable-diffusion-v1-4"
,
custom_pipeline
=
"stable_diffusion_mega"
,
torch_
dtype
=
torch
.
float16
,
revision
=
"fp16"
)
pipe
.
to
(
"cuda"
)
pipe
.
to
(
"cuda"
)
pipe
.
enable_attention_slicing
()
pipe
.
enable_attention_slicing
()
...
...
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