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
OpenDAS
diffusers
Commits
68e24259
Unverified
Commit
68e24259
authored
Dec 27, 2022
by
Pedro Cuenca
Committed by
GitHub
Dec 27, 2022
Browse files
Avoid duplicating PyTorch + safetensors downloads. (#1836)
parent
1f1b6c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/pipeline_utils.py
src/diffusers/pipeline_utils.py
+2
-0
No files found.
src/diffusers/pipeline_utils.py
View file @
68e24259
...
@@ -495,6 +495,8 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -495,6 +495,8 @@ class DiffusionPipeline(ConfigMixin):
)
)
if
is_safetensors_compatible
(
info
):
if
is_safetensors_compatible
(
info
):
ignore_patterns
.
append
(
"*.bin"
)
ignore_patterns
.
append
(
"*.bin"
)
else
:
ignore_patterns
.
append
(
"*.safetensors"
)
# download all allow_patterns
# download all allow_patterns
cached_folder
=
snapshot_download
(
cached_folder
=
snapshot_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