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
8be48507
Unverified
Commit
8be48507
authored
Oct 20, 2022
by
Suraj Patil
Committed by
GitHub
Oct 20, 2022
Browse files
fix test_components (#928)
parent
4bf675f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test_pipelines.py
tests/test_pipelines.py
+4
-4
No files found.
tests/test_pipelines.py
View file @
8be48507
...
...
@@ -1405,7 +1405,7 @@ class PipelineFastTests(unittest.TestCase):
mask_image
=
Image
.
fromarray
(
np
.
uint8
(
image
+
4
)).
convert
(
"RGB"
).
resize
((
128
,
128
))
# make sure here that pndm scheduler skips prk
inpaint
=
StableDiffusionInpaintPipeline
(
inpaint
=
StableDiffusionInpaintPipeline
Legacy
(
unet
=
unet
,
scheduler
=
scheduler
,
vae
=
vae
,
...
...
@@ -1413,9 +1413,9 @@ class PipelineFastTests(unittest.TestCase):
tokenizer
=
tokenizer
,
safety_checker
=
self
.
dummy_safety_checker
,
feature_extractor
=
self
.
dummy_extractor
,
)
img2img
=
StableDiffusionImg2ImgPipeline
(
**
inpaint
.
components
)
text2img
=
StableDiffusionPipeline
(
**
inpaint
.
components
)
)
.
to
(
torch_device
)
img2img
=
StableDiffusionImg2ImgPipeline
(
**
inpaint
.
components
)
.
to
(
torch_device
)
text2img
=
StableDiffusionPipeline
(
**
inpaint
.
components
)
.
to
(
torch_device
)
prompt
=
"A painting of a squirrel eating a burger"
generator
=
torch
.
Generator
(
device
=
torch_device
).
manual_seed
(
0
)
...
...
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