From e47c14ab5e36671e27cf624264ad876d04c19a67 Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Sat, 22 Jul 2023 15:33:42 +0200 Subject: [PATCH] Refresh temp files now also reloads the keyword dict --- README.md | 1 + javascript/tagAutocomplete.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 9bc350e..9356950 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ Some are already included in the default list though, so trying it out first is ![image](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/assets/34448969/4302c44e-c632-473d-a14a-76f164f966cb) +After having added your custom keywords, you will need to either restart the UI or use the "Refresh TAC temp files" setting button. Sometimes the inserted keywords can be wrong due to a hash collision, however model-keyword and tag autocomplete take the name of the file into account too if the collision is known. diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index b3deb3f..6281b72 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -1099,6 +1099,7 @@ async function refreshTacTempFiles() { hypernetworks = []; loras = []; lycos = []; + modelKeywordDict.clear(); await processQueue(QUEUE_FILE_LOAD, null); console.log("TAC: Refreshed temp files");