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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(layout): trim the video preset to video and upscale
Josh Corbett37c515232af4
diff --git a/invokeai/frontend/webv2/src/workbench/layoutPresets.test.ts b/invokeai/frontend/webv2/src/workbench/layoutPresets.test.tsindex 328960405b..a94447e59d 100644--- a/invokeai/frontend/webv2/src/workbench/layoutPresets.test.ts+++ b/invokeai/frontend/webv2/src/workbench/layoutPresets.test.ts@@ -130,11 +130,9 @@ describe('built-in layout preset descriptors', () => {active: { bottom: 'gallery:bottom', center: 'preview', left: 'video', right: 'gallery' },bottom: ['server-status', 'queue-status', 'gallery:bottom', 'notifications', 'autosave-status'],center: ['preview'],- // Video leads the rail; Generate and Upscale stay behind it so a still- // can be set up without leaving the arrangement.- left: ['video', 'generate', 'upscale'],+ left: ['video', 'upscale'],panels: { isBottomOpen: false, isLeftOpen: true, isRightOpen: true },- right: ['gallery', 'image-map', 'queue'],+ right: ['gallery', 'queue'],},});});diff --git a/invokeai/frontend/webv2/src/workbench/layoutPresets.ts b/invokeai/frontend/webv2/src/workbench/layoutPresets.tsindex 71700d4e58..738e79598c 100644--- a/invokeai/frontend/webv2/src/workbench/layoutPresets.ts+++ b/invokeai/frontend/webv2/src/workbench/layoutPresets.ts@@ -253,16 +253,15 @@ export const builtInLayoutPresetDescriptors: BuiltInLayoutPresetDescriptor[] = [instanceIds: ['preview'],sizePx: 0,}),- // Video leads the rail, with the other two graph widgets behind it so a- // still can be set up without leaving the arrangement.+ // Video leads the rail; Upscale stays behind it for finishing a still.left: createRegion({activeInstanceId: 'video',- instanceIds: ['video', 'generate', 'upscale'],+ instanceIds: ['video', 'upscale'],sizePx: 450,}),right: createRegion({activeInstanceId: 'gallery',- instanceIds: ['gallery', 'image-map', 'queue'],+ instanceIds: ['gallery', 'queue'],sizePx: 450,}),},diff --git a/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts b/invokeai/frontend/webv2/src/workbench/workbenchState.test.tsindex c421f158a4..4145fabebc 100644--- a/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts+++ b/invokeai/frontend/webv2/src/workbench/workbenchState.test.ts@@ -637,8 +637,9 @@ describe('workbench widget region defaults', () => {'gallery','queue',]);+ // Edit folds the editors into Layers and Video keeps a still-free rail.for (const preset of layoutPresets) {- if (preset.id !== 'edit') {+ if (preset.id !== 'edit' && preset.id !== 'video') {expect(preset.snapshot.widgetRegions.right.instanceIds).toContain('image-map');}}