diff options
author | dogewanwan <66496316+dogewanwan@users.noreply.github.com> | 2022-08-24 18:46:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 18:46:50 +0000 |
commit | 6a8e76e37f1d3d4aa09403b118025e5b2ffc7603 (patch) | |
tree | a5c53a15b97cbb5336376538a2ee011438708149 /webui.py | |
parent | 781f054a203c3175821cdedab16af32125fae7f1 (diff) | |
download | stable-diffusion-webui-gfx803-6a8e76e37f1d3d4aa09403b118025e5b2ffc7603.tar.gz stable-diffusion-webui-gfx803-6a8e76e37f1d3d4aa09403b118025e5b2ffc7603.tar.bz2 stable-diffusion-webui-gfx803-6a8e76e37f1d3d4aa09403b118025e5b2ffc7603.zip |
Check for the embedding manager
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -469,8 +469,9 @@ def process_images(outpath, func_init, func_sample, prompt, seed, sampler_name, def load_embeddings(fp):
+ if fp is not None and hasattr(model, "embedding_manager"):
# load the file
- model.embedding_manager.load(fp.name)
+ model.embedding_manager.load(fp.name)
def txt2img(prompt: str, ddim_steps: int, sampler_name: str, use_GFPGAN: bool, prompt_matrix: bool, ddim_eta: float, n_iter: int, batch_size: int, cfg_scale: float, seed: int, height: int, width: int, embeddings_fp):
|