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
7ba3130c
Commit
7ba3130c
authored
Jun 09, 2022
by
Patrick von Platen
Browse files
upload & fix
parent
2fa1d648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
src/diffusers/dynamic_modules_utils.py
src/diffusers/dynamic_modules_utils.py
+18
-15
No files found.
src/diffusers/dynamic_modules_utils.py
View file @
7ba3130c
...
@@ -209,6 +209,9 @@ def get_cached_module_file(
...
@@ -209,6 +209,9 @@ def get_cached_module_file(
module_file_or_url
=
os
.
path
.
join
(
pretrained_model_name_or_path
,
module_file
)
module_file_or_url
=
os
.
path
.
join
(
pretrained_model_name_or_path
,
module_file
)
submodule
=
"local"
submodule
=
"local"
if
os
.
path
.
isfile
(
module_file_or_url
):
resolved_module_file
=
module_file_or_url
else
:
try
:
try
:
# Load from URL or cache if already cached
# Load from URL or cache if already cached
resolved_module_file
=
cached_download
(
resolved_module_file
=
cached_download
(
...
...
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