Preserve extension quality with original segments and reliable refinement

This commit is contained in:
Towsty
2026-09-08 06:25:40 -05:00
parent c2b6032e49
commit 7665285a0d
16 changed files with 222 additions and 98 deletions
+4 -7
View File
@@ -221,7 +221,7 @@ export async function queueMiniMax(
duration: params.duration,
useIdentityRefs: params.useIdentityRefs,
referenceImageNames: params.useIdentityRefs ? referenceNames : [],
saveLosslessAnchor: job.library?.saveLosslessAnchor === true,
saveLosslessAnchor: job.library?.saveLosslessAnchor !== false,
...persistLoraFields(params.loraStack || params.loraName)
})
@@ -414,18 +414,15 @@ export async function continueQueuedExtensions(
denoise: job.library.refinementDenoise,
clientId: job.clientId,
jobId: job.id,
onQueued: (promptId) => { job.promptId = promptId },
onStatus: (message) => emitChainJob(job, { type: 'status', message, progress: 3 })
})
writeFileSync(framePath, frame)
} catch (error) {
const detail = error instanceof Error ? error.message : String(error)
emitChainJob(job, {
type: 'status',
message: `Frame refine skipped (${detail}). Using source frame.`,
progress: 3
})
throw new Error(`Extension frame refinement failed: ${error instanceof Error ? error.message : String(error)}. Retry after fixing refinement, or explicitly turn it off.`)
}
}
assertJobActive(job)
job.library.extendPart1Path = part1Path
job.library.prompt = composePromptParts(wrappers.promptPre, ext.prompt, wrappers.promptPost)
job.library.promptMid = ext.prompt