From 6e2ef34cba17532d94bea47ab0f424c80fb507ea Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 21 Mar 2025 08:43:38 +1000 Subject: [PATCH] feat(ui): add warning for FLUX Fill + Control LoRA --- .../web/src/features/controlLayers/store/validators.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/invokeai/frontend/web/src/features/controlLayers/store/validators.ts b/invokeai/frontend/web/src/features/controlLayers/store/validators.ts index 3a877f9ae0..a829d44b30 100644 --- a/invokeai/frontend/web/src/features/controlLayers/store/validators.ts +++ b/invokeai/frontend/web/src/features/controlLayers/store/validators.ts @@ -129,6 +129,13 @@ export const getControlLayerWarnings = ( } else if (entity.controlAdapter.model.base !== model.base) { // Supported model architecture but doesn't match warnings.push(WARNINGS.CONTROL_ADAPTER_INCOMPATIBLE_BASE_MODEL); + } else if ( + model.base === 'flux' && + model.variant === 'inpaint' && + entity.controlAdapter.model.type === 'control_lora' + ) { + // FLUX inpaint variants are FLUX Fill models - not compatible w/ Control LoRA + warnings.push(WARNINGS.UNSUPPORTED_MODEL); } }