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
86064df7
Commit
86064df7
authored
Jun 08, 2022
by
Patrick von Platen
Browse files
fix
parent
2665677b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/diffusers/pipeline_utils.py
src/diffusers/pipeline_utils.py
+4
-2
No files found.
src/diffusers/pipeline_utils.py
View file @
86064df7
...
...
@@ -101,13 +101,15 @@ class DiffusionPipeline(ConfigMixin):
config_dict
=
cls
.
get_config_dict
(
cached_folder
)
module_candidate
=
config_dict
[
"_module"
]
# if we load from explicit class, let's use it
if
cls
!=
DiffusionPipeline
:
pipeline_class
=
cls
else
:
# else we need to load the correct module from the Hub
class_name_
=
config_dict
[
"_class_name"
]
module
=
config_dict
[
"_module"
]
module
=
module_candidate
pipeline_class
=
get_class_from_dynamic_module
(
cached_folder
,
module
,
class_name_
,
cached_folder
)
init_dict
,
_
=
pipeline_class
.
extract_init_dict
(
config_dict
,
**
kwargs
)
...
...
@@ -117,7 +119,7 @@ class DiffusionPipeline(ConfigMixin):
for
name
,
(
library_name
,
class_name
)
in
init_dict
.
items
():
importable_classes
=
LOADABLE_CLASSES
[
library_name
]
if
library_name
==
module
:
if
library_name
==
module
_candidate
:
# TODO(Suraj)
# for vq
pass
...
...
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