diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-15 13:59:37 +0000 |
---|---|---|
committer | MalumaDev <piano.lu92@gmail.com> | 2022-10-15 13:59:37 +0000 |
commit | 37d7ffb415cd8c69b3c0bb5f61844dde0b169f78 (patch) | |
tree | bc23d469afc9f6ef1ecf9a1c15f7554e3d7ff5b5 /modules/shared.py | |
parent | bb57f30c2de46cfca5419ad01738a41705f96cc3 (diff) | |
download | stable-diffusion-webui-gfx803-37d7ffb415cd8c69b3c0bb5f61844dde0b169f78.tar.gz stable-diffusion-webui-gfx803-37d7ffb415cd8c69b3c0bb5f61844dde0b169f78.tar.bz2 stable-diffusion-webui-gfx803-37d7ffb415cd8c69b3c0bb5f61844dde0b169f78.zip |
fix to tokens lenght, addend embs generator, add new features to edit the embedding before the generation using text
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index cf13a10d..7cd608ca 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -95,6 +95,10 @@ 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")}
+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")}
def reload_hypernetworks():
global hypernetworks
|