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
8b7cb962
"git@developer.sourcefind.cn:OpenDAS/fairseq.git" did not exist on "ccb5dea58dc556549df00453a144d382ffb727b6"
Commit
8b7cb962
authored
Dec 13, 2022
by
Patrick von Platen
Browse files
make style
parent
e1bb8f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/one_step_unet.py
examples/community/one_step_unet.py
+1
-1
No files found.
examples/community/one_step_unet.py
View file @
8b7cb962
...
@@ -18,7 +18,7 @@ class UnetSchedulerOneForwardPipeline(DiffusionPipeline):
...
@@ -18,7 +18,7 @@ class UnetSchedulerOneForwardPipeline(DiffusionPipeline):
model_output
=
self
.
unet
(
image
,
timestep
).
sample
model_output
=
self
.
unet
(
image
,
timestep
).
sample
scheduler_output
=
self
.
scheduler
.
step
(
model_output
,
timestep
,
image
).
prev_sample
scheduler_output
=
self
.
scheduler
.
step
(
model_output
,
timestep
,
image
).
prev_sample
result
=
scheduler_output
-
scheduler_output
+
torch
.
ones_like
(
scheduler_output
)
result
=
scheduler_output
-
scheduler_output
+
torch
.
ones_like
(
scheduler_output
)
return
result
return
result
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