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
0f079b93
Unverified
Commit
0f079b93
authored
Oct 22, 2024
by
Álvaro Somoza
Committed by
GitHub
Oct 22, 2024
Browse files
[Fix] Using sharded checkpoints with gated repositories (#9737)
fix
parent
b0ffe922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/hub_utils.py
src/diffusers/utils/hub_utils.py
+1
-1
No files found.
src/diffusers/utils/hub_utils.py
View file @
0f079b93
...
...
@@ -457,7 +457,7 @@ def _get_checkpoint_shard_files(
ignore_patterns
=
[
"*.json"
,
"*.md"
]
if
not
local_files_only
:
# `model_info` call must guarded with the above condition.
model_files_info
=
model_info
(
pretrained_model_name_or_path
,
revision
=
revision
)
model_files_info
=
model_info
(
pretrained_model_name_or_path
,
revision
=
revision
,
token
=
token
)
for
shard_file
in
original_shard_filenames
:
shard_file_present
=
any
(
shard_file
in
k
.
rfilename
for
k
in
model_files_info
.
siblings
)
if
not
shard_file_present
:
...
...
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