Preserve extension quality with original segments and reliable refinement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user