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
31be4220
Commit
31be4220
authored
Jan 27, 2023
by
Patrick von Platen
Browse files
Don't call the Hub if `local_files_only` is specifiied (#2119)
Don't call the Hub if
parent
43c5ac2b
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 @
31be4220
...
@@ -501,7 +501,7 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -501,7 +501,7 @@ class DiffusionPipeline(ConfigMixin):
user_agent
=
http_user_agent
(
user_agent
)
user_agent
=
http_user_agent
(
user_agent
)
if
is_safetensors_available
():
if
is_safetensors_available
()
and
not
local_files_only
:
info
=
model_info
(
info
=
model_info
(
pretrained_model_name_or_path
,
pretrained_model_name_or_path
,
use_auth_token
=
use_auth_token
,
use_auth_token
=
use_auth_token
,
...
...
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