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 branch 'main' into feat/krea2-edit-references-ui

Alexander Eichhorn738c7955858f
diff --cc invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
index bd1bc725aa,6a8150a81f..41fe35df6f
--- a/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
@@@ -52,6 -53,25 +54,54 @@@ const SDXL_REFINER_MODEL: MainModelConf
type: 'main',
};
+ // The refiner is a per-image choice, not a component slot, so it needs its own SDXL case.
+ const refinerCase = () => {
+ const { filled, model, settings } = satisfiedSettingsFor('sdxl', SDXL_REFINER_SHAPE);
+ const withRefiner = { ...settings, refinerModel: SDXL_REFINER_MODEL };
+
+ expect(getGenerationValidationReasons(model, withRefiner)).toEqual([]);
+
+ return {
+ base: 'sdxl' as const,
+ filled,
+ graph: compileGenerateGraph(withRefiner, model, 'gallery', {
+ useCpuNoise: true,
+ useNsfwChecker: false,
+ useWatermark: false,
+ }).backendGraph,
+ shape: SDXL_REFINER_SHAPE,
+ };
+ };
+
++// Edit references replace the style reference the tuned Krea-2 recipe carries, so they need their own case.
++const krea2EditCase = () => {
++ const { filled, model, settings } = satisfiedSettingsFor('krea-2', KREA2_EDIT_SHAPE);
++ const image = { original: { image: { height: 1024, image_name: 'edit-reference.png', width: 1024 } } };
++ const withEditReferences = {
++ ...settings,
++ // CFG builds the negative prompt, which reads the references too.
++ cfgScale: 4.5,
++ krea2ReferenceKvCache: true,
++ referenceImages: [
++ { config: { image, type: 'krea2_edit_reference_image' as const }, id: 'edit-1', isEnabled: true },
++ { config: { image, type: 'krea2_edit_reference_image' as const }, id: 'edit-2', isEnabled: true },
++ ],
++ };
++
++ expect(getGenerationValidationReasons(model, withEditReferences)).toEqual([]);
++
++ return {
++ base: 'krea-2' as const,
++ filled,
++ graph: compileGenerateGraph(withEditReferences, model, 'gallery', {
++ useCpuNoise: true,
++ useNsfwChecker: false,
++ useWatermark: false,
++ }).backendGraph,
++ shape: KREA2_EDIT_SHAPE,
++ };
++};
++
seedArchitectureCapabilities();
describe('generate graph coverage', () => {
diff --cc invokeai/frontend/webv2/src/platform/ui/hints/hintRegistry.ts
index 340ebf03ea,435273cfcd..7969921e4d
--- a/invokeai/frontend/webv2/src/platform/ui/hints/hintRegistry.ts
+++ b/invokeai/frontend/webv2/src/platform/ui/hints/hintRegistry.ts
@@@ -35,11 -39,7 +39,9 @@@ export const FEATURE_HINTS =
hidiffusionT1Ratio: { href: 'https://github.com/megvii-research/HiDiffusion' },
hidiffusionT2Ratio: { href: 'https://github.com/megvii-research/HiDiffusion' },
hidiffusionWindowAttn: { href: 'https://github.com/megvii-research/HiDiffusion' },
- imageInfluence: {
- href: 'https://support.invoke.ai/support/solutions/articles/151000094998-image-to-image',
- },
+ imageInfluence: {},
+ krea2ReferenceKvCache: {},
+ krea2ReferenceMode: {},
layerStackControl: {},
layerStackInpaintMask: {},
layerStackRaster: {},