feat(ui): better error message/warning for FLUX Fill w/ Control LoRA

This commit is contained in:
psychedelicious
2025-03-21 08:50:29 +10:00
parent 7cb1f61a9e
commit efe4708b8b
2 changed files with 4 additions and 2 deletions

View File

@@ -1950,7 +1950,8 @@
"rgNegativePromptNotSupported": "Negative Prompt not supported for selected base model",
"rgReferenceImagesNotSupported": "regional Reference Images not supported for selected base model",
"rgAutoNegativeNotSupported": "Auto-Negative not supported for selected base model",
"rgNoRegion": "no region drawn"
"rgNoRegion": "no region drawn",
"fluxFillIncompatibleWithControlLoRA": "Control LoRA is not compatible with FLUX Fill"
},
"errors": {
"unableToFindImage": "Unable to find image",

View File

@@ -20,6 +20,7 @@ const WARNINGS = {
CONTROL_ADAPTER_NO_MODEL_SELECTED: 'controlLayers.warnings.controlAdapterNoModelSelected',
CONTROL_ADAPTER_INCOMPATIBLE_BASE_MODEL: 'controlLayers.warnings.controlAdapterIncompatibleBaseModel',
CONTROL_ADAPTER_NO_CONTROL: 'controlLayers.warnings.controlAdapterNoControl',
FLUX_FILL_NO_WORKY_WITH_CONTROL_LORA: 'controlLayers.warnings.fluxFillIncompatibleWithControlLoRA',
} as const;
type WarningTKey = (typeof WARNINGS)[keyof typeof WARNINGS];
@@ -135,7 +136,7 @@ export const getControlLayerWarnings = (
entity.controlAdapter.model.type === 'control_lora'
) {
// FLUX inpaint variants are FLUX Fill models - not compatible w/ Control LoRA
warnings.push(WARNINGS.UNSUPPORTED_MODEL);
warnings.push(WARNINGS.FLUX_FILL_NO_WORKY_WITH_CONTROL_LORA);
}
}