Unverified Commit 66328236 authored by Lucain's avatar Lucain Committed by GitHub
Browse files

FIX `force_download` in download utility (#4036)

FIX force_download in download utils
parent f74d5e1c
...@@ -1322,7 +1322,7 @@ class DiffusionPipeline(ConfigMixin): ...@@ -1322,7 +1322,7 @@ class DiffusionPipeline(ConfigMixin):
snapshot_folder = Path(config_file).parent snapshot_folder = Path(config_file).parent
pipeline_is_cached = all((snapshot_folder / f).is_file() for f in expected_files) 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 # if the pipeline is cached, we can directly return it
# else call snapshot_download # else call snapshot_download
return snapshot_folder return snapshot_folder
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment