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
66328236
Unverified
Commit
66328236
authored
Jul 11, 2023
by
Lucain
Committed by
GitHub
Jul 11, 2023
Browse files
FIX `force_download` in download utility (#4036)
FIX force_download in download utils
parent
f74d5e1c
Changes
1
Show 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 @
66328236
...
...
@@ -1322,7 +1322,7 @@ class DiffusionPipeline(ConfigMixin):
snapshot_folder
=
Path
(
config_file
).
parent
pipeline_is_cached
=
all
((
snapshot_folder
/
f
).
is_file
()
for
f
in
expected_files
)
if
pipeline_is_cached
:
if
pipeline_is_cached
and
not
force_download
:
# if the pipeline is cached, we can directly return it
# else call snapshot_download
return
snapshot_folder
...
...
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