| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| import os |
|
|
| from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home |
|
|
|
|
| default_cache_path = HUGGINGFACE_HUB_CACHE |
|
|
|
|
| CONFIG_NAME = "config.json" |
| WEIGHTS_NAME = "diffusion_pytorch_model.bin" |
| FLAX_WEIGHTS_NAME = "diffusion_flax_model.msgpack" |
| ONNX_WEIGHTS_NAME = "model.onnx" |
| SAFETENSORS_WEIGHTS_NAME = "diffusion_pytorch_model.safetensors" |
| ONNX_EXTERNAL_WEIGHTS_NAME = "weights.pb" |
| HUGGINGFACE_CO_RESOLVE_ENDPOINT = "https://huggingface.co" |
| DIFFUSERS_CACHE = default_cache_path |
| DIFFUSERS_DYNAMIC_MODULE_NAME = "diffusers_modules" |
| HF_MODULES_CACHE = os.getenv("HF_MODULES_CACHE", os.path.join(hf_cache_home, "modules")) |
| DEPRECATED_REVISION_ARGS = ["fp16", "non-ema"] |
|
|