Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
4c26cb9c
Unverified
Commit
4c26cb9c
authored
Mar 27, 2023
by
Patrick von Platen
Committed by
GitHub
Mar 27, 2023
Browse files
[Tests] Fix slow tests (#2846)
parent
1d7b4b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/pipelines/stable_unclip/test_stable_unclip_img2img.py
tests/pipelines/stable_unclip/test_stable_unclip_img2img.py
+3
-3
No files found.
tests/pipelines/stable_unclip/test_stable_unclip_img2img.py
View file @
4c26cb9c
...
...
@@ -197,7 +197,7 @@ class StableUnCLIPImg2ImgPipelineIntegrationTests(unittest.TestCase):
pipe
.
enable_sequential_cpu_offload
()
generator
=
torch
.
Generator
(
device
=
"cpu"
).
manual_seed
(
0
)
output
=
pipe
(
"anime turle"
,
image
=
input_image
,
generator
=
generator
,
output_type
=
"np"
)
output
=
pipe
(
input_image
,
"anime turle"
,
generator
=
generator
,
output_type
=
"np"
)
image
=
output
.
images
[
0
]
...
...
@@ -225,7 +225,7 @@ class StableUnCLIPImg2ImgPipelineIntegrationTests(unittest.TestCase):
pipe
.
enable_sequential_cpu_offload
()
generator
=
torch
.
Generator
(
device
=
"cpu"
).
manual_seed
(
0
)
output
=
pipe
(
"anime turle"
,
image
=
input_image
,
generator
=
generator
,
output_type
=
"np"
)
output
=
pipe
(
input_image
,
"anime turle"
,
generator
=
generator
,
output_type
=
"np"
)
image
=
output
.
images
[
0
]
...
...
@@ -251,8 +251,8 @@ class StableUnCLIPImg2ImgPipelineIntegrationTests(unittest.TestCase):
pipe
.
enable_sequential_cpu_offload
()
_
=
pipe
(
input_image
,
"anime turtle"
,
image
=
input_image
,
num_inference_steps
=
2
,
output_type
=
"np"
,
)
...
...
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