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"