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
89af440e
Commit
89af440e
authored
Jun 07, 2022
by
Patrick von Platen
Browse files
check with other device
parent
b76eea04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/test_modeling_utils.py
tests/test_modeling_utils.py
+1
-0
No files found.
tests/test_modeling_utils.py
View file @
89af440e
...
@@ -172,6 +172,7 @@ class SamplerTesterMixin(unittest.TestCase):
...
@@ -172,6 +172,7 @@ class SamplerTesterMixin(unittest.TestCase):
# 2. Sample gaussian noise
# 2. Sample gaussian noise
image
=
scheduler
.
sample_noise
((
1
,
model
.
in_channels
,
model
.
resolution
,
model
.
resolution
),
device
=
torch_device
,
generator
=
generator
)
image
=
scheduler
.
sample_noise
((
1
,
model
.
in_channels
,
model
.
resolution
,
model
.
resolution
),
device
=
torch_device
,
generator
=
generator
)
import
ipdb
;
ipdb
.
set_trace
()
# 3. Denoise
# 3. Denoise
for
t
in
reversed
(
range
(
len
(
scheduler
))):
for
t
in
reversed
(
range
(
len
(
scheduler
))):
...
...
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