raise error if control lora used with schnell

This commit is contained in:
Mary Hipp 2024-12-18 10:00:02 -05:00 committed by Mary Hipp Rogers
parent 899a00af62
commit c154d833b9

View File

@ -240,6 +240,9 @@ class FluxDenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):
if len(timesteps) <= 1:
return x
if is_schnell and self.control_lora:
raise ValueError("Control LoRAs cannot be used with FLUX Schnell")
# Prepare the extra image conditioning tensor if a FLUX structural control image is provided.
img_cond = self._prep_structural_control_img_cond(context)