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
907fd91c
Unverified
Commit
907fd91c
authored
Oct 02, 2023
by
Zanz2
Committed by
GitHub
Oct 02, 2023
Browse files
Fixed constants.py not using hugging face hub environment variable (#5222)
parent
0c7cb9a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/constants.py
src/diffusers/utils/constants.py
+1
-1
No files found.
src/diffusers/utils/constants.py
View file @
907fd91c
...
@@ -25,7 +25,7 @@ FLAX_WEIGHTS_NAME = "diffusion_flax_model.msgpack"
...
@@ -25,7 +25,7 @@ FLAX_WEIGHTS_NAME = "diffusion_flax_model.msgpack"
ONNX_WEIGHTS_NAME
=
"model.onnx"
ONNX_WEIGHTS_NAME
=
"model.onnx"
SAFETENSORS_WEIGHTS_NAME
=
"diffusion_pytorch_model.safetensors"
SAFETENSORS_WEIGHTS_NAME
=
"diffusion_pytorch_model.safetensors"
ONNX_EXTERNAL_WEIGHTS_NAME
=
"weights.pb"
ONNX_EXTERNAL_WEIGHTS_NAME
=
"weights.pb"
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
"https://huggingface.co"
HUGGINGFACE_CO_RESOLVE_ENDPOINT
=
os
.
environ
.
get
(
"HF_ENDPOINT"
,
"https://huggingface.co"
)
DIFFUSERS_CACHE
=
default_cache_path
DIFFUSERS_CACHE
=
default_cache_path
DIFFUSERS_DYNAMIC_MODULE_NAME
=
"diffusers_modules"
DIFFUSERS_DYNAMIC_MODULE_NAME
=
"diffusers_modules"
HF_MODULES_CACHE
=
os
.
getenv
(
"HF_MODULES_CACHE"
,
os
.
path
.
join
(
hf_cache_home
,
"modules"
))
HF_MODULES_CACHE
=
os
.
getenv
(
"HF_MODULES_CACHE"
,
os
.
path
.
join
(
hf_cache_home
,
"modules"
))
...
...
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