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
Upscale > Video: Quick · RTX gets its own place beside Restore · faithful
Adarsh39e6e1ad7d23
diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex f9953860..59f24634 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -1446,7 +1446,7 @@ export function Composer({ docked }: { docked: boolean }) {</div>)}- {/* Upscale → Video: Restore · faithful and Regenerate · creative side by side (on your GPU). */}+ {/* Upscale → Video: Restore · faithful, Quick · RTX and (while it is offered) Regenerate · creative side by side (on your GPU). */}{config.finishChoices && !preset && (<FinishChoiceschoices={config.finishChoices}diff --git a/src/components/studio/finish-choices.tsx b/src/components/studio/finish-choices.tsxindex 7fb86bbf..21911d83 100644--- a/src/components/studio/finish-choices.tsx+++ b/src/components/studio/finish-choices.tsx@@ -2,7 +2,7 @@import { Cpu, Loader2, Sparkles } from "lucide-react";import type { Engine, ModelDef } from "@/lib/catalog/types";-import { REGEN_COPY, REGEN_MODEL, type FINISH_CHOICES } from "@/lib/catalog/regenerate";+import { REGEN_COPY, REGEN_MODEL, type FinishChoice } from "@/lib/catalog/regenerate";import { RTX_COPY, RTX_UPSCALE_MODEL, rtxStanding } from "@/lib/catalog/rtx-video";import { badgeFor, useGpuBadges } from "@/hooks/use-gpu";import { useIsOwner } from "@/lib/api";@@ -10,9 +10,10 @@ import { cn } from "@/lib/utils";import { radioKeys, radioTab } from "./radio-keys";/**- * Upscale → Video's two open finishing steps side by side (StudioConfig.finishChoices): SeedVR2 "Restore · faithful" and- * Open-H3 "Regenerate · creative". On the cloud engine (both engines on) Regenerate says it runs on your GPU, with a- * button that takes the composer there; with Engine mode "Paid APIs only" nothing shows. GPU-only: nobody hosts it.+ * Upscale → Video's open finishing steps side by side (StudioConfig.finishChoices): SeedVR2 "Restore · faithful", and+ * Open-H3 "Regenerate · creative" while it is offered. On the cloud engine (both engines on) Regenerate says it runs on+ * your GPU, with a button that takes the composer there; with Engine mode "Paid APIs only" nothing shows. GPU-only:+ * nobody hosts it.* With Regenerate picked: the GPU line (the install detail for the owner only), the 16:9 / 9:16 shape, and for a clip with* no words yet a button that has Fuobe's reading model describe it (`onDescribe`).* NVIDIA RTX Video's "Quick · RTX" joins them: first on an NVIDIA RTX card, switched off with the reason on a card that@@ -28,7 +29,7 @@ export function FinishChoices({onDescribe,describing,}: {- choices: typeof FINISH_CHOICES;+ choices: readonly FinishChoice[];model: ModelDef | undefined;engine: Engine;engineMode: "both" | "open" | "cloud";@@ -42,7 +43,7 @@ export function FinishChoices({const owner = useIsOwner();const badges = useGpuBadges().data;if (engineMode === "cloud") return null;- const regen = offered(REGEN_MODEL);+ const regen = choices.some((c) => c.modelId === REGEN_MODEL) ? offered(REGEN_MODEL) : undefined;if (engine === "cloud") {if (!regen) return null;return (diff --git a/src/components/studio/studio-context.tsx b/src/components/studio/studio-context.tsxindex cf4afd6a..9fbbfc8a 100644--- a/src/components/studio/studio-context.tsx+++ b/src/components/studio/studio-context.tsx@@ -7,7 +7,7 @@ import type { Signature } from "@/lib/catalog/palettes";import type { FrameAttachment } from "@/lib/composer";import type { LayoutDraft } from "@/lib/layout-prompt";import type { UpscaleFirstStep } from "@/lib/catalog/upscale-first";-import type { FINISH_CHOICES } from "@/lib/catalog/regenerate";+import type { FinishChoice } from "@/lib/catalog/regenerate";import type { SlotValue } from "./media-slot";export type SlotKey = InputSlot["key"];@@ -26,8 +26,8 @@ export interface StudioConfig {related?: { href: string; label: string; models?: Partial<Record<Engine, string>> };/** Steps a tool runs before this one, then this one after it, as one job (Upscale → Restore archive footage first). */firstSteps?: UpscaleFirstStep[];- /** Open finishing models shown side by side above the toolbar (Upscale → Video: Restore · faithful, Regenerate · creative). */- finishChoices?: typeof FINISH_CHOICES;+ /** Open finishing models shown side by side above the toolbar (Upscale → Video: Restore · faithful, Regenerate · creative while it is offered). */+ finishChoices?: readonly FinishChoice[];placeholder: string;kind: MediaKind;/** Operations whose models appear in the picker. */diff --git a/src/lib/catalog/regenerate.ts b/src/lib/catalog/regenerate.tsindex ab6f96d4..c9f2aa8c 100644--- a/src/lib/catalog/regenerate.ts+++ b/src/lib/catalog/regenerate.ts@@ -419,6 +419,7 @@ export const FINISH_CHOICES = [{ modelId: RESTORE_MODEL, label: "Restore · faithful", hint: "Keeps every detail and sharpens it." },{ modelId: REGEN_MODEL, label: "Regenerate · creative", hint: "Redraws your clip at 2K. Details may change; motion and layout stay." },] as const;+export type FinishChoice = (typeof FINISH_CHOICES)[number];// ---------------------------------------------------------------------------// Files and licences (information for Settings → Models & licences, never a gate)diff --git a/src/lib/studios.ts b/src/lib/studios.tsindex fe275a66..b52b222f 100644--- a/src/lib/studios.ts+++ b/src/lib/studios.ts@@ -2,7 +2,7 @@ import { getModel } from "@/lib/catalog";import { SIGNATURE_MODELS } from "@/lib/catalog/palettes";import { FACE_MOSAIC_MODELS } from "@/lib/catalog/open-tools";import { UPSCALE_FIRST_STEPS } from "@/lib/catalog/upscale-first";-import { FINISH_CHOICES, REGEN_OFFERED } from "@/lib/catalog/regenerate";+import { FINISH_CHOICES, REGEN_MODEL, REGEN_OFFERED } from "@/lib/catalog/regenerate";import type { Preset } from "@/lib/catalog/types";import type { StudioConfig } from "@/components/studio/studio-context";@@ -157,8 +157,9 @@ export const VIDEO_UPSCALE_STUDIO: StudioConfig = {subtitle: "Upscale a clip to 1080p, 4K or up to 8K, and restore faces, textures and text.",// Archive footage (scans, tape, black and white) is restored and colourised first: Fuobe Restore rebuilds it, then upscales.firstSteps: UPSCALE_FIRST_STEPS,- // On your GPU: SeedVR2 "Restore · faithful" and Open-H3 "Regenerate · creative" side by side (GPU-only: nobody hosts it).- ...(REGEN_OFFERED && { finishChoices: FINISH_CHOICES }),+ // On your GPU: SeedVR2 "Restore · faithful" and NVIDIA's "Quick · RTX" side by side (the row adds Quick · RTX), with+ // Open-H3 "Regenerate · creative" beside them while it is offered (GPU-only: nobody hosts it).+ finishChoices: REGEN_OFFERED ? FINISH_CHOICES : FINISH_CHOICES.filter((c) => c.modelId !== REGEN_MODEL),slots: [{ key: "video", label: "Video", accept: "video", required: true }],defaultModels: { cloud: "topaz-video", open: "oss-seedvr2" },clipFacts: true,diff --git a/tests/e2e/rtx-video.mjs b/tests/e2e/rtx-video.mjsindex 65476142..f0c2bd2c 100644--- a/tests/e2e/rtx-video.mjs+++ b/tests/e2e/rtx-video.mjs@@ -1,7 +1,7 @@// Browser check of NVIDIA RTX Video (nm10-rtx-video).// Usage: node tests/e2e/rtx-video.mjs [appUrl] [outDir] (the app in demo mode: no keys, no ComfyUI)-// At 1440 px and 390 px, light and dark, on the open engine: Upscale → Video's "Quick · RTX" beside Restore · faithful and-// Regenerate · creative — last and not picked when the card isn't known, first (still not picked) on an RTX 4070, switched+// At 1440 px and 390 px, light and dark, on the open engine: Upscale → Video's "Quick · RTX" beside Restore · faithful (and+// Regenerate · creative while it is offered) — last and not picked when the card isn't known, first (still not picked) on an RTX 4070, switched// off with "Needs an NVIDIA RTX card" on an AMD card; picking it on the RTX card shows its line. FPS boost and SDR to HDR// open on their RTX choice from a link. The GPU check's answer is stubbed in the browser (/api/gpu/badges). Fails on any// console error or page error, and on sideways scroll. Screenshots go to outDir.@@ -59,12 +59,13 @@ try {const names = await radios.allInnerTexts();const quick = group.getByRole("radio", { name: /Quick · RTX/ });const restore = group.getByRole("radio", { name: /Restore · faithful/ });- check(names.length === 3, `${label}: three choices (${names.length})`);+ // Restore · faithful and Quick · RTX (Regenerate · creative joins them while it is offered).+ check(names.length === 2, `${label}: two choices (${names.length})`);check((await restore.getAttribute("aria-checked")) === "true", `${label}: Restore · faithful stays the default`);check((await quick.getAttribute("aria-checked")) === "false", `${label}: Quick · RTX is not picked for anyone`);const first = /Quick · RTX/.test(names[0] ?? "");if (card === "rtx") check(first, `${label}: Quick · RTX comes first on an RTX card`);- else check(!first && /Quick · RTX/.test(names[2] ?? ""), `${label}: Quick · RTX comes last`);+ else check(!first && /Quick · RTX/.test(names.at(-1) ?? ""), `${label}: Quick · RTX comes last`);if (card === "amd") {check(/Needs an NVIDIA RTX card/.test(await quick.innerText()), `${label}: says it needs an NVIDIA RTX card`);check((await quick.getAttribute("aria-disabled")) === "true", `${label}: switched off`);diff --git a/tests/regenerate-offered.test.ts b/tests/regenerate-offered.test.tsindex aee18c1a..1296933a 100644--- a/tests/regenerate-offered.test.ts+++ b/tests/regenerate-offered.test.ts@@ -52,7 +52,8 @@ describe("Regenerate while it is switched off", () => {it("is not a step before upscaling, a finishing choice, a model to pick or a Canvas node", () => {expect(UPSCALE_FIRST_STEPS.map((s) => s.id)).not.toContain("regenerate");expect(UPSCALE_FIRST_STEPS.map((s) => s.id)).toContain("restore");- expect(VIDEO_UPSCALE_STUDIO.finishChoices).toBeUndefined();+ // The finishing row stays, with Restore · faithful (and Quick · RTX, which the row adds), and no Regenerate.+ expect(VIDEO_UPSCALE_STUDIO.finishChoices?.map((c) => c.modelId)).toEqual(["oss-seedvr2"]);expect(getModel("oss-h3-regenerate")?.hidden).toBe(true);expect(paletteItems("both").map((p) => p.id)).not.toContain("upscale-regenerate");});