Keep last-frame continuity when character stills are attached.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-30 08:21:57 -05:00
co-authored by Cursor
parent 5d828afbd7
commit 0fa64ea765
10 changed files with 29 additions and 51 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
},
"7": {
"inputs": {
"lora_name": "klein_snofs_v1_4.safetensors",
"lora_name": "xaigen-klein_snofs_v1_4.safetensors",
"strength_model": 0.65,
"strength_clip": 0.35,
"model": ["4", 0],
+1 -1
View File
@@ -43,7 +43,7 @@
},
"7": {
"inputs": {
"lora_name": "klein_snofs_v1_4.safetensors",
"lora_name": "xaigen-klein_snofs_v1_4.safetensors",
"strength_model": 0.65,
"strength_clip": 0.35,
"model": ["4", 0],
+1 -1
View File
@@ -23,7 +23,7 @@
},
"7": {
"inputs": {
"lora_name": "klein_snofs_v1_4.safetensors",
"lora_name": "xaigen-klein_snofs_v1_4.safetensors",
"strength_model": 0.65,
"strength_clip": 0.35,
"model": ["4", 0],
+1 -1
View File
@@ -76,7 +76,7 @@
},
"7": {
"inputs": {
"lora_name": "klein_snofs_v1_4.safetensors",
"lora_name": "xaigen-klein_snofs_v1_4.safetensors",
"strength_model": 0.65,
"strength_clip": 0.3,
"model": ["4", 0],
+1 -1
View File
@@ -97,7 +97,7 @@
},
"155": {
"inputs": {
"prompt": "<Picture 1> is the exact facial identity, hairstyle, body proportions and clothing of the main character. Preserve this identity with high fidelity even when the subject temporarily leaves the frame and returns.\n\n[describe the action, camera and audio here]",
"prompt": "<Picture 1> is the current frame: keep this pose, clothes, place, and who is in shot. Extra stills are face, hair, and body only — not a wardrobe change.\n\n[describe the action, camera and audio here]",
"width": [
"127",
0
+4 -6
View File
@@ -152,9 +152,9 @@ export async function queueMiniMax(
const hasImage = Boolean(params.image?.data?.length)
const uploading = !hasImage
? `Queueing ${engineName} text-to-video…`
: params.useIdentityRefs
? (chainIndex > 0 ? 'Uploading identity stills for next shot...' : 'Uploading image to ComfyUI...')
: (chainIndex > 0 ? 'Uploading last frame to ComfyUI...' : 'Uploading image to ComfyUI...')
: chainIndex > 0
? (params.useIdentityRefs ? 'Uploading last frame and character stills...' : 'Uploading last frame to ComfyUI...')
: 'Uploading image to ComfyUI...'
const queueing = chainIndex > 0
? `Queueing extension on ${engineName}...`
: `Queueing ${engineName} job...`
@@ -393,9 +393,7 @@ export async function continueQueuedExtensions(
await ensureComfyReady(ready)
await queueMiniMax(job, {
prompt: ext.prompt,
image: identity
? params.image
: { filename: 'last_frame.png', data: frame, type: 'image/png' },
image: { filename: 'last_frame.png', data: frame, type: 'image/png' },
width: params.width,
height: params.height,
steps: params.steps,