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
13a78b3c
"tutorials/vscode:/vscode.git/clone" did not exist on "90a9136c1dc4cfc0e9073e972b456fb073544ed7"
Commit
13a78b3c
authored
Jun 17, 2022
by
Patrick von Platen
Browse files
rename image to sample
parent
fe7d1363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/test_scheduler.py
tests/test_scheduler.py
+6
-6
No files found.
tests/test_scheduler.py
View file @
13a78b3c
...
...
@@ -172,7 +172,7 @@ class DDPMSchedulerTest(SchedulerCommonTest):
"beta_end"
:
0.02
,
"beta_schedule"
:
"linear"
,
"variance_type"
:
"fixed_small"
,
"clip_predicted_
imag
e"
:
True
,
"clip_predicted_
sampl
e"
:
True
,
}
config
.
update
(
**
kwargs
)
...
...
@@ -195,8 +195,8 @@ class DDPMSchedulerTest(SchedulerCommonTest):
self
.
check_over_configs
(
variance_type
=
variance
)
def
test_clip_image
(
self
):
for
clip_predicted_
imag
e
in
[
True
,
False
]:
self
.
check_over_configs
(
clip_predicted_
imag
e
=
clip_predicted_
imag
e
)
for
clip_predicted_
sampl
e
in
[
True
,
False
]:
self
.
check_over_configs
(
clip_predicted_
sampl
e
=
clip_predicted_
sampl
e
)
def
test_time_indices
(
self
):
for
t
in
[
0
,
500
,
999
]:
...
...
@@ -251,7 +251,7 @@ class DDIMSchedulerTest(SchedulerCommonTest):
"beta_start"
:
0.0001
,
"beta_end"
:
0.02
,
"beta_schedule"
:
"linear"
,
"clip_predicted_
imag
e"
:
True
,
"clip_predicted_
sampl
e"
:
True
,
}
config
.
update
(
**
kwargs
)
...
...
@@ -270,8 +270,8 @@ class DDIMSchedulerTest(SchedulerCommonTest):
self
.
check_over_configs
(
beta_schedule
=
schedule
)
def
test_clip_image
(
self
):
for
clip_predicted_
imag
e
in
[
True
,
False
]:
self
.
check_over_configs
(
clip_predicted_
imag
e
=
clip_predicted_
imag
e
)
for
clip_predicted_
sampl
e
in
[
True
,
False
]:
self
.
check_over_configs
(
clip_predicted_
sampl
e
=
clip_predicted_
sampl
e
)
def
test_time_indices
(
self
):
for
t
in
[
1
,
10
,
49
]:
...
...
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