diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-16 08:23:30 +0000 |
---|---|---|
committer | MalumaDev <piano.lu92@gmail.com> | 2022-10-16 08:23:30 +0000 |
commit | 523140d7805c644700009b8a2483ff4eb4a22304 (patch) | |
tree | f2c07a65ab526b93442422910cb3fb93c97aff54 /modules/shared.py | |
parent | b694bba39a2f9f9069201e27f0d312f4abe5b41f (diff) | |
download | stable-diffusion-webui-gfx803-523140d7805c644700009b8a2483ff4eb4a22304.tar.gz stable-diffusion-webui-gfx803-523140d7805c644700009b8a2483ff4eb4a22304.tar.bz2 stable-diffusion-webui-gfx803-523140d7805c644700009b8a2483ff4eb4a22304.zip |
ui fix
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 3c5ffef1..e2c98b2d 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -96,11 +96,13 @@ loaded_hypernetwork = None aesthetic_embeddings = {f.replace(".pt",""): os.path.join(cmd_opts.aesthetic_embeddings_dir, f) for f in
os.listdir(cmd_opts.aesthetic_embeddings_dir) if f.endswith(".pt")}
+aesthetic_embeddings = aesthetic_embeddings | {"None": None}
def update_aesthetic_embeddings():
global aesthetic_embeddings
aesthetic_embeddings = {f.replace(".pt",""): os.path.join(cmd_opts.aesthetic_embeddings_dir, f) for f in
os.listdir(cmd_opts.aesthetic_embeddings_dir) if f.endswith(".pt")}
+ aesthetic_embeddings = aesthetic_embeddings | {"None": None}
def reload_hypernetworks():
global hypernetworks
|