From 114018e3e6df90e136029289ee720119481b33c0 Mon Sep 17 00:00:00 2001 From: Jonathan <34005131+JPPhoto@users.noreply.github.com> Date: Sun, 5 Mar 2023 07:30:35 -0600 Subject: [PATCH] Unified spelling of Hugging Face --- invokeai/backend/globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/backend/globals.py b/invokeai/backend/globals.py index 9bc4690491..c5417e03db 100644 --- a/invokeai/backend/globals.py +++ b/invokeai/backend/globals.py @@ -98,7 +98,7 @@ def global_cache_dir(subdir: Union[str, Path] = "") -> Path: """ Returns Path to the model cache directory. If a subdirectory is provided, it will be appended to the end of the path, allowing - for huggingface-style conventions. Currently, hugging face has + for Hugging Face-style conventions. Currently, Hugging Face has moved all models into the "hub" subfolder, so for any pretrained HF model, use: global_cache_dir('hub') @@ -112,7 +112,7 @@ def global_cache_dir(subdir: Union[str, Path] = "") -> Path: home = os.getenv("XDG_CACHE_HOME") if home is not None: - # Set `home` to $XDG_CACHE_HOME/huggingface, which is the default location mentioned in HuggingFace Hub Client Library. + # Set `home` to $XDG_CACHE_HOME/huggingface, which is the default location mentioned in Hugging Face Hub Client Library. # See: https://huggingface.co/docs/huggingface_hub/main/en/package_reference/environment_variables#xdgcachehome home += os.sep + "huggingface"