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
40e28e8b
Commit
40e28e8b
authored
Jun 22, 2022
by
Patrick von Platen
Browse files
only remove module if necessary
parent
fc596c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipeline_utils.py
src/diffusers/pipeline_utils.py
+1
-1
No files found.
src/diffusers/pipeline_utils.py
View file @
40e28e8b
...
@@ -86,7 +86,7 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -86,7 +86,7 @@ class DiffusionPipeline(ConfigMixin):
model_index_dict
=
dict
(
self
.
config
)
model_index_dict
=
dict
(
self
.
config
)
model_index_dict
.
pop
(
"_class_name"
)
model_index_dict
.
pop
(
"_class_name"
)
model_index_dict
.
pop
(
"_diffusers_version"
)
model_index_dict
.
pop
(
"_diffusers_version"
)
model_index_dict
.
pop
(
"_module"
)
model_index_dict
.
pop
(
"_module"
,
None
)
for
pipeline_component_name
in
model_index_dict
.
keys
():
for
pipeline_component_name
in
model_index_dict
.
keys
():
sub_model
=
getattr
(
self
,
pipeline_component_name
)
sub_model
=
getattr
(
self
,
pipeline_component_name
)
...
...
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