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
bb46be2f
Unverified
Commit
bb46be2f
authored
Oct 31, 2023
by
Aryan V S
Committed by
GitHub
Oct 30, 2023
Browse files
Fix incorrect loading of custom pipeline (#5568)
* update * update * update * update
parent
ac7b1716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-1
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
bb46be2f
...
@@ -1669,7 +1669,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
...
@@ -1669,7 +1669,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
for
component
in
folder_names
:
for
component
in
folder_names
:
module_candidate
=
config_dict
[
component
][
0
]
module_candidate
=
config_dict
[
component
][
0
]
if
module_candidate
is
None
:
if
module_candidate
is
None
or
not
isinstance
(
module_candidate
,
str
)
:
continue
continue
candidate_file
=
os
.
path
.
join
(
component
,
module_candidate
+
".py"
)
candidate_file
=
os
.
path
.
join
(
component
,
module_candidate
+
".py"
)
...
...
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