The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Faceless: Upscale to 1080p on the open engine too, now that the upscaler works in passes
Claudea4fe6d5a9367
diff --git a/src/components/faceless/episode-view.tsx b/src/components/faceless/episode-view.tsxindex b50d0855..072044fd 100644--- a/src/components/faceless/episode-view.tsx+++ b/src/components/faceless/episode-view.tsx@@ -524,7 +524,7 @@ export function EpisodeView({ id, backHref, backLabel }: { id: string; backHref:<DropdownMenuItem disabled={upscaling || action.isPending} onClick={() => run("upscale", "Upscaling to 1080p — the download switches to it when it's done")}><MonitorUp /> {upscaling ? "Upscaling to 1080p…" : "Upscale to 1080p"}<span className="ml-auto pl-3 font-mono text-[11px] text-muted-foreground tabular-nums">- {view.upscale.demo ? "Demo" : view.upscale.costUsd === null ? "" : `≈ ${usd(view.upscale.costUsd)}`}+ {view.upscale.demo ? "Demo" : view.upscale.costUsd === null ? "" : view.upscale.costUsd === 0 ? "Free" : `≈ ${usd(view.upscale.costUsd)}`}</span></DropdownMenuItem>)}diff --git a/src/lib/catalog/faceless.ts b/src/lib/catalog/faceless.tsindex 0ab8aeeb..80385cee 100644--- a/src/lib/catalog/faceless.ts+++ b/src/lib/catalog/faceless.ts@@ -563,7 +563,7 @@ export interface EngineModels {captionsUseWords: boolean;/** Pictures that show the subject of attached images, when the still model can't read images. */sourceStill?: string;- /** "Upscale to 1080p" on a finished episode (cloud: SeedVR2; the open 4× upscaler holds every frame in memory, so none). */+ /** "Upscale to 1080p" on a finished episode (cloud: SeedVR2; open: Real-ESRGAN in passes of a few frames, so memory stays flat). */upscale?: string;write: string;}@@ -610,6 +610,7 @@ export const ENGINE_MODELS: Record<Engine, EngineModels> = {align: "oss-qwen3-asr",captionsUseWords: true,sourceStill: "oss-qwen-edit",+ upscale: "oss-upscale-video-esrgan",write: "oss-text-llm",},};diff --git a/src/server/faceless.ts b/src/server/faceless.tsindex 39559e17..6fa17bb6 100644--- a/src/server/faceless.ts+++ b/src/server/faceless.ts@@ -998,7 +998,7 @@ function upscaleOffer(ep: FacelessEpisode, seconds: number): EpisodeView["upscalif (!model) return null;const demo = runsAsDemo(model.id, "upscale-video");const p = model.pricing;- const costUsd = demo ? 0 : p?.unit === "megapixel" ? Math.round(p.usd * UPSCALE_MP * UPSCALE_FPS * seconds * 100) / 100 : p?.unit === "second" ? Math.round(p.usd * seconds * 100) / 100 : null;+ const costUsd = demo || model.engine === "open" ? 0 : p?.unit === "megapixel" ? Math.round(p.usd * UPSCALE_MP * UPSCALE_FPS * seconds * 100) / 100 : p?.unit === "second" ? Math.round(p.usd * seconds * 100) / 100 : null;return { costUsd, demo };}@@ -1006,7 +1006,7 @@ function upscaleOffer(ep: FacelessEpisode, seconds: number): EpisodeView["upscalexport function upscaleEpisode(id: string): FacelessEpisode {const ep = mustEpisode(id);const modelId = ENGINE_MODELS[ep.settings.engine].upscale;- if (!modelId) throw new FacelessError("Upscaling runs on the cloud engine: the open-source upscaler holds every frame of the film in memory", 422);+ if (!modelId) throw new FacelessError("This engine has no video upscaler", 422);const final = finalOf(ep);if (!ep.plan || !final) throw new FacelessError("Wait for the episode to finish first", 409);const had = ep.plan.upscaled ? getGeneration(ep.plan.upscaled) : null;diff --git a/tests/faceless-api.test.ts b/tests/faceless-api.test.tsindex 5a4cbe0f..44961d17 100644--- a/tests/faceless-api.test.ts+++ b/tests/faceless-api.test.ts@@ -243,14 +243,15 @@ describe("Episodes", () => {expect(gens.getGeneration(cloudIds.mix)!.modelId).toBe("ffmpeg-compose");expect(gens.getGeneration(cloudIds.level)!.request.inputs?.audio).toBeTruthy();- // Upscale to 1080p: one step on the finished film (cloud only).+ // Upscale to 1080p: one step on the finished film, on both engines (the open one upscales in passes of a few frames).expect(doneCloud.upscale).toEqual({ costUsd: 0, demo: true });- expect(doneOpen.upscale).toBeNull();+ expect(doneOpen.upscale).toEqual({ costUsd: 0, demo: true });const upscaling: EpisodeView = await (await actionRoute.POST(json("POST"), params({ id: cloudId, action: "upscale" }))).json();const up = gens.getGeneration(upscaling.episode.plan!.upscaled!)!;expect(up).toMatchObject({ op: "upscale-video", modelId: "seedvr-video" });expect(up.request.params?.resolution).toBe("1080p");- expect((await actionRoute.POST(json("POST"), params({ id: openId, action: "upscale" }))).status).toBe(422);+ const upscalingOpen: EpisodeView = await (await actionRoute.POST(json("POST"), params({ id: openId, action: "upscale" }))).json();+ expect(gens.getGeneration(upscalingOpen.episode.plan!.upscaled!)).toMatchObject({ op: "upscale-video", modelId: "oss-upscale-video-esrgan", engine: "open" });// Timeline editor: change scene 3's picture.const target = doneCloud.episode.script.blocks[2].id;