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
1c96f82e
Unverified
Commit
1c96f82e
authored
Apr 09, 2023
by
Patrick von Platen
Committed by
GitHub
Apr 09, 2023
Browse files
Update one_step_unet.py
Fix dummy community pipeline
parent
ce144d6d
Changes
1
Show 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 @
1c96f82e
...
...
@@ -12,7 +12,7 @@ class UnetSchedulerOneForwardPipeline(DiffusionPipeline):
def
__call__
(
self
):
image
=
torch
.
randn
(
(
1
,
self
.
unet
.
in_channels
,
self
.
unet
.
sample_size
,
self
.
unet
.
sample_size
),
(
1
,
self
.
unet
.
config
.
in_channels
,
self
.
unet
.
config
.
sample_size
,
self
.
unet
.
config
.
sample_size
),
)
timestep
=
1
...
...
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