Add local queued video upscale with Real-ESRGAN and RIFE
This commit is contained in:
@@ -18,6 +18,7 @@ function livePayload(job: Job) {
|
||||
}
|
||||
|
||||
function jobLooksLive(job: Job, comfyBusy: boolean) {
|
||||
if (job.upscale) return false // Clip-level post-processing must not occupy the generation form.
|
||||
if (job.library?.stopAfterCurrent) return false
|
||||
if (jobIsLocallySubmitting(job)) return true
|
||||
if (job.status === 'running' && job.promptId) return comfyBusy
|
||||
|
||||
@@ -82,7 +82,7 @@ export default defineEventHandler(async (event) => {
|
||||
if (live.status === 'complete' || live.status === 'error' || live.trackId || live.clipId) {
|
||||
return jobSnapshot(live)
|
||||
}
|
||||
if (live.yueGp) return jobSnapshot(live)
|
||||
if (live.yueGp || live.upscale) return jobSnapshot(live)
|
||||
if (live.kind === 'music' && Date.now() - live.startedAt > 15_000) {
|
||||
const recovered = await recoverFinishedMedia(event, { tags: live.library?.tags })
|
||||
if (recovered?.trackId) return recovered
|
||||
|
||||
Reference in New Issue
Block a user