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.

fix(webv2): pass panel steps + 1 to the H3 denoise node

Lincoln Stein461a933715f3
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
index 48e5cbceff..b698a75641 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.test.ts
@@ -363,7 +363,9 @@ describe('compileVideoGraph — MiniMax H3', () => {
const denoise = nodeOfType(backendGraph, 'minimax_h3_denoise');
// The H3 canvas policy: 16:9 caps at 1344×768; frame counts are string literals.
- expect(denoise).toMatchObject({ height: 768, num_frames: '124', steps: settings.steps, width: 1344 });
+ // The H3 denoise node counts sigma grid points, so the graph passes
+ // panel steps (model evaluations) + 1.
+ expect(denoise).toMatchObject({ height: 768, num_frames: '124', steps: settings.steps + 1, width: 1344 });
const output = nodeOfType(backendGraph, 'minimax_h3_latents_to_video');
diff --git a/invokeai/frontend/webv2/src/features/video/core/graph.ts b/invokeai/frontend/webv2/src/features/video/core/graph.ts
index d44731e729..0ea35a6807 100644
--- a/invokeai/frontend/webv2/src/features/video/core/graph.ts
+++ b/invokeai/frontend/webv2/src/features/video/core/graph.ts
@@ -450,7 +450,11 @@ const buildMiniMaxH3VideoGraph = (settings: VideoSettings, model: MainModelConfi
id: 'denoise_latents',
// The node's frame counts are a string Literal choice list.
num_frames: String(settings.numFrames),
- steps: settings.steps,
+ // The H3 node counts sigma grid points (terminal zero included), so node
+ // steps = model evaluations + 1. The panel's steps setting means model
+ // evaluations — the count a distilled turbo LoRA is trained for — so add
+ // the terminal point here. Metadata records the panel value.
+ steps: settings.steps + 1,
type: 'minimax_h3_denoise',
width: dimensions.width,
});