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
7974fad1
Unverified
Commit
7974fad1
authored
Sep 18, 2023
by
Will Berman
Committed by
GitHub
Sep 18, 2023
Browse files
remove unused adapter weights in constructor (#5088)
remove adapter weights in MultiAdapter constructor
parent
6d7279ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py
...ipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py
+1
-2
No files found.
src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py
View file @
7974fad1
...
...
@@ -162,7 +162,6 @@ class StableDiffusionAdapterPipeline(DiffusionPipeline):
scheduler
:
KarrasDiffusionSchedulers
,
safety_checker
:
StableDiffusionSafetyChecker
,
feature_extractor
:
CLIPFeatureExtractor
,
adapter_weights
:
Optional
[
List
[
float
]]
=
None
,
requires_safety_checker
:
bool
=
True
,
):
super
().
__init__
()
...
...
@@ -184,7 +183,7 @@ class StableDiffusionAdapterPipeline(DiffusionPipeline):
)
if
isinstance
(
adapter
,
(
list
,
tuple
)):
adapter
=
MultiAdapter
(
adapter
,
adapter_weights
=
adapter_weights
)
adapter
=
MultiAdapter
(
adapter
)
self
.
register_modules
(
vae
=
vae
,
...
...
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