new lora handler and remove lyco

This commit is contained in:
Vladimir Mandic
2023-10-05 14:30:58 -04:00
parent 7dc098182a
commit 3727bf3d02
29 changed files with 1260 additions and 656 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ def prepare_embedding_providers(pipe, clip_skip):
def pad_to_same_length(embeds):
try: #SDXL
empty_embed = shared.sd_model.encode_prompt("")
except: #SD1.5
except Exception: #SD1.5
empty_embed = shared.sd_model.encode_prompt("",shared.sd_model.device, 1, False)
empty_batched = torch.cat([empty_embed[0]] * embeds[0].shape[0])