mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-15 05:48:04 -05:00
feat(ui): better error message/warning for FLUX Fill w/ Control LoRA
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user