Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Merge remote-tracking branch 'upstream/main' into feat/krea2-edit-references-ui

Alexander Eichhorn834dda65eeb6
diff --cc invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
index 2cc7aeed81,84a2542d8e..2e233c4486
--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/compileCanvasGraph.ts
@@@ -159,21 -156,10 +159,21 @@@ const getCanvasValidationReasons = (inp
}
}
+ // A regional mask covers the prompt and target tokens only; edit references add image tokens it cannot place.
+ if (
+ model.base === 'krea-2' &&
+ (input.regionalGuidance?.length ?? 0) > 0 &&
+ hasEnabledKrea2EditReferences(settings.referenceImages)
+ ) {
+ reasons.push(
+ 'Krea-2 edit references cannot be combined with regional guidance. Turn off the edit references or disable the regional guidance layers.'
+ );
+ }
+
if (!Number.isFinite(bbox.width) || !Number.isFinite(bbox.height) || bbox.width <= 0 || bbox.height <= 0) {
- reasons.push('Canvas bounding box must have a positive area.');
+ reasons.push('Canvas frame must have a positive area.');
} else if (!Number.isInteger(bbox.width) || !Number.isInteger(bbox.height)) {
- reasons.push('Canvas bounding box dimensions must be whole pixels.');
+ reasons.push('Canvas frame dimensions must be whole pixels.');
}
if (isImageMode(mode)) {