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
edf5ba6a
Unverified
Commit
edf5ba6a
authored
May 24, 2024
by
Lucain
Committed by
GitHub
May 24, 2024
Browse files
Respect `resume_download` deprecation V2 (#8267)
* Fix resume_downoad FutureWarning * only resume download
parent
9941f1f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/diffusers/loaders/single_file.py
src/diffusers/loaders/single_file.py
+1
-1
src/diffusers/loaders/single_file_model.py
src/diffusers/loaders/single_file_model.py
+1
-1
No files found.
src/diffusers/loaders/single_file.py
View file @
edf5ba6a
...
...
@@ -340,7 +340,7 @@ class FromSingleFileMixin:
deprecate
(
"original_config_file"
,
"1.0.0"
,
deprecation_message
)
original_config
=
original_config_file
resume_download
=
kwargs
.
pop
(
"resume_download"
,
Fals
e
)
resume_download
=
kwargs
.
pop
(
"resume_download"
,
Non
e
)
force_download
=
kwargs
.
pop
(
"force_download"
,
False
)
proxies
=
kwargs
.
pop
(
"proxies"
,
None
)
token
=
kwargs
.
pop
(
"token"
,
None
)
...
...
src/diffusers/loaders/single_file_model.py
View file @
edf5ba6a
...
...
@@ -166,7 +166,7 @@ class FromOriginalModelMixin:
"`from_single_file` cannot accept both `config` and `original_config` arguments. Please provide only one of these arguments"
)
resume_download
=
kwargs
.
pop
(
"resume_download"
,
Fals
e
)
resume_download
=
kwargs
.
pop
(
"resume_download"
,
Non
e
)
force_download
=
kwargs
.
pop
(
"force_download"
,
False
)
proxies
=
kwargs
.
pop
(
"proxies"
,
None
)
token
=
kwargs
.
pop
(
"token"
,
None
)
...
...
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