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
573fbdff
Commit
573fbdff
authored
Jun 10, 2022
by
patil-suraj
Browse files
fix pipeline from_pretrained
parent
cc819010
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 @
573fbdff
...
@@ -154,7 +154,7 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -154,7 +154,7 @@ class DiffusionPipeline(ConfigMixin):
# if the model is not in diffusers or transformers, we need to load it from the hub
# if the model is not in diffusers or transformers, we need to load it from the hub
# assumes that it's a subclass of ModelMixin
# assumes that it's a subclass of ModelMixin
if
library_name
==
module_candidate_name
:
if
library_name
==
module_candidate_name
:
class_obj
=
get_class_from_dynamic_module
(
cached_folder
,
module
,
class_name
,
cached_folder
)
class_obj
=
get_class_from_dynamic_module
(
cached_folder
,
module
_candidate
,
class_name
,
cached_folder
)
# since it's not from a library, we need to check class candidates for all importable classes
# since it's not from a library, we need to check class candidates for all importable classes
importable_classes
=
ALL_IMPORTABLE_CLASSES
importable_classes
=
ALL_IMPORTABLE_CLASSES
class_candidates
=
{
c
:
class_obj
for
c
in
ALL_IMPORTABLE_CLASSES
.
keys
()}
class_candidates
=
{
c
:
class_obj
for
c
in
ALL_IMPORTABLE_CLASSES
.
keys
()}
...
...
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