mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
new lora handler and remove lyco
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user