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
2e387dad
Unverified
Commit
2e387dad
authored
Feb 14, 2024
by
YiYi Xu
Committed by
GitHub
Feb 14, 2024
Browse files
fix IPAdapter unload_ip_adapter test (#6972)
add Co-authored-by:
yiyixuxu
<
yixu310@gmail,com
>
parent
9efe1e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/pipelines/ip_adapters/test_ip_adapter_stable_diffusion.py
...pipelines/ip_adapters/test_ip_adapter_stable_diffusion.py
+1
-1
No files found.
tests/pipelines/ip_adapters/test_ip_adapter_stable_diffusion.py
View file @
2e387dad
...
@@ -253,7 +253,7 @@ class IPAdapterSDIntegrationTests(IPAdapterNightlyTestsMixin):
...
@@ -253,7 +253,7 @@ class IPAdapterSDIntegrationTests(IPAdapterNightlyTestsMixin):
pipeline
.
unload_ip_adapter
()
pipeline
.
unload_ip_adapter
()
assert
getattr
(
pipeline
,
"image_encoder"
)
is
None
assert
getattr
(
pipeline
,
"image_encoder"
)
is
None
assert
getattr
(
pipeline
,
"feature_extractor"
)
is
None
assert
getattr
(
pipeline
,
"feature_extractor"
)
is
not
None
processors
=
[
processors
=
[
isinstance
(
attn_proc
,
(
AttnProcessor
,
AttnProcessor2_0
))
isinstance
(
attn_proc
,
(
AttnProcessor
,
AttnProcessor2_0
))
for
name
,
attn_proc
in
pipeline
.
unet
.
attn_processors
.
items
()
for
name
,
attn_proc
in
pipeline
.
unet
.
attn_processors
.
items
()
...
...
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