mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
Fix unload of bundled emb
This commit is contained in:
parent
891ccb767c
commit
9adeed18f1
@ -266,6 +266,7 @@ def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn_dims=No
|
|||||||
already_loaded[net.name] = net
|
already_loaded[net.name] = net
|
||||||
for emb_name, embedding in net.bundle_embeddings.items():
|
for emb_name, embedding in net.bundle_embeddings.items():
|
||||||
if embedding.loaded:
|
if embedding.loaded:
|
||||||
|
embedding.loaded = None
|
||||||
emb_db.register_embedding_by_name(None, shared.sd_model, emb_name)
|
emb_db.register_embedding_by_name(None, shared.sd_model, emb_name)
|
||||||
|
|
||||||
loaded_networks.clear()
|
loaded_networks.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user