From f6cdff2c5b2293ec4684b0e36a1e64c25267b305 Mon Sep 17 00:00:00 2001 From: Tim Cabbage Date: Mon, 17 Apr 2023 16:53:31 +0200 Subject: [PATCH 1/3] [bug] #3218 HuggingFace API off when --no-internet set https://github.com/invoke-ai/InvokeAI/issues/3218 Huggingface API will not be queried if --no-internet flag is set --- invokeai/backend/stable_diffusion/concepts_lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invokeai/backend/stable_diffusion/concepts_lib.py b/invokeai/backend/stable_diffusion/concepts_lib.py index 28167a0bd5..129dd430f4 100644 --- a/invokeai/backend/stable_diffusion/concepts_lib.py +++ b/invokeai/backend/stable_diffusion/concepts_lib.py @@ -57,7 +57,7 @@ class HuggingFaceConceptsLibrary(object): self.concept_list.extend(list(local_concepts_to_add)) return self.concept_list return self.concept_list - else: + elif Globals.internet_available is True: try: models = self.hf_api.list_models( filter=ModelFilter(model_name="sd-concepts-library/") @@ -73,6 +73,8 @@ class HuggingFaceConceptsLibrary(object): " ** You may load .bin and .pt file(s) manually using the --embedding_directory argument." ) return self.concept_list + else: + return self.concept_list def get_concept_model_path(self, concept_name: str) -> str: """ From 2c9a05eb590d3bc4ce7f9b64678b9d2f13b46013 Mon Sep 17 00:00:00 2001 From: Leo Pasanen Date: Tue, 18 Apr 2023 18:46:55 +0300 Subject: [PATCH 2/3] Added CPU instruction for README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 56946df433..dda18e9669 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,11 @@ not supported. pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 ``` + _For non-GPU systems:_ + ```terminal + pip install InvokeAI --use-pep517 --extra-index-url https://download.pytorch.org/whl/cpu + ``` + _For Macintoshes, either Intel or M1/M2:_ ```sh From 3a968e5072b86cc38d88091a084fb7aa52af659c Mon Sep 17 00:00:00 2001 From: "Alexandre D. Roberge" <4276275+AldeRoberge@users.noreply.github.com> Date: Tue, 18 Apr 2023 21:16:00 -0400 Subject: [PATCH 3/3] Update NSFW.md Outdated doc said to change the '.invokeai' file, but it's now named 'invokeai.init' afaik. --- docs/features/NSFW.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/NSFW.md b/docs/features/NSFW.md index 9a39fd09c3..06d382f47d 100644 --- a/docs/features/NSFW.md +++ b/docs/features/NSFW.md @@ -32,7 +32,7 @@ turned on and off on the command line using `--nsfw_checker` and At installation time, InvokeAI will ask whether the checker should be activated by default (neither argument given on the command line). The response is stored in the InvokeAI initialization file (usually -`.invokeai` in your home directory). You can change the default at any +`invokeai.init` in your home directory). You can change the default at any time by opening this file in a text editor and commenting or uncommenting the line `--nsfw_checker`.