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
80e0c8ba
Unverified
Commit
80e0c8ba
authored
Aug 17, 2022
by
Suraj Patil
Committed by
GitHub
Aug 17, 2022
Browse files
fix stable-diffusion code snippet format.
parent
3cd20d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+6
-6
No files found.
README.md
View file @
80e0c8ba
...
@@ -47,15 +47,15 @@ from torch import autocast
...
@@ -47,15 +47,15 @@ from torch import autocast
from
diffusers
import
StableDiffusionPipeline
,
LMSDiscreteScheduler
from
diffusers
import
StableDiffusionPipeline
,
LMSDiscreteScheduler
lms
=
LMSDiscreteScheduler
(
lms
=
LMSDiscreteScheduler
(
beta_start
=
0.00085
,
beta_start
=
0.00085
,
beta_end
=
0.012
,
beta_end
=
0.012
,
beta_schedule
=
"scaled_linear"
beta_schedule
=
"scaled_linear"
)
)
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"CompVis/stable-diffusion-v1-3-diffusers"
,
"CompVis/stable-diffusion-v1-3-diffusers"
,
scheduler
=
lms
,
scheduler
=
lms
,
use_auth_token
=
True
use_auth_token
=
True
)
)
prompt
=
"a photo of an astronaut riding a horse on mars"
prompt
=
"a photo of an astronaut riding a horse on mars"
...
...
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