From 9adeed18f16e4b9a30087c5c264c0875be5de9f6 Mon Sep 17 00:00:00 2001 From: Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> Date: Sun, 22 Oct 2023 17:57:59 +0800 Subject: [PATCH] Fix unload of bundled emb --- extensions-builtin/Lora/networks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions-builtin/Lora/networks.py b/extensions-builtin/Lora/networks.py index 12f705769..b83b45cb1 100644 --- a/extensions-builtin/Lora/networks.py +++ b/extensions-builtin/Lora/networks.py @@ -266,6 +266,7 @@ def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn_dims=No already_loaded[net.name] = net for emb_name, embedding in net.bundle_embeddings.items(): if embedding.loaded: + embedding.loaded = None emb_db.register_embedding_by_name(None, shared.sd_model, emb_name) loaded_networks.clear()