Use previously generated model/clip for next loaded lora

This commit is contained in:
Mike Kinney
2025-05-14 06:27:36 -07:00
parent 4f31641da3
commit 9cc2ac02da
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -461,6 +461,7 @@ class easyLoader:
if optional_lora_stack is not None and can_load_lora:
for lora in optional_lora_stack:
# This is a subtle bit of code because it uses the model created by the last call, and passes it to the next call.
lora = {"lora_name": lora[0], "model": model, "clip": clip, "model_strength": lora[1],
"clip_strength": lora[2]}
model, clip = self.load_lora(lora)
+3
View File
@@ -358,6 +358,9 @@ class easyXYPlot():
if lora_stack is not None and lora_stack != []:
for lora in lora_stack:
# Each generation of the model, must use the reference to previously created model / clip objects.
lora['model'] = model
lora['clip'] = clip
model, clip = self.easyCache.load_lora(lora)
# 提示词