diff --git a/py/libs/loader.py b/py/libs/loader.py index 843507b..4914d62 100644 --- a/py/libs/loader.py +++ b/py/libs/loader.py @@ -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) diff --git a/py/libs/xyplot.py b/py/libs/xyplot.py index 2c06daf..7556219 100644 --- a/py/libs/xyplot.py +++ b/py/libs/xyplot.py @@ -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) # 提示词