mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-26 01:34:00 -08:00
fix to tokens lenght, addend embs generator, add new features to edit the embedding before the generation using text
This commit is contained in:
parent
bb57f30c2d
commit
37d7ffb415
6 changed files with 302 additions and 96 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue