mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-01 12:25:06 +08:00
Check for the embedding manager
This commit is contained in:
parent
781f054a20
commit
6a8e76e37f
1
webui.py
1
webui.py
@ -469,6 +469,7 @@ def process_images(outpath, func_init, func_sample, prompt, seed, sampler_name,
|
|||||||
|
|
||||||
|
|
||||||
def load_embeddings(fp):
|
def load_embeddings(fp):
|
||||||
|
if fp is not None and hasattr(model, "embedding_manager"):
|
||||||
# load the file
|
# load the file
|
||||||
model.embedding_manager.load(fp.name)
|
model.embedding_manager.load(fp.name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user