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
Cinema and Video: MiniMax H3 at 2K, drafted at 768p and finished from its latent, and Finish in 2K on a take
Claude82c35304ab45
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjsindex 77fe5d6b..c0eb7547 100644--- a/scripts/comfy/build-library.mjs+++ b/scripts/comfy/build-library.mjs@@ -156,6 +156,8 @@ export const BINDING_KEYS = new Set(['preset',// Open-H3 Regenerate (n7-3): the pack's output size and draft size (its combo strings) and the refine's start noise'resolution', 'draftSize', 'startSigma',+ // Regenerate in Cinema (n7-10): the 768p draft's saved latent (the prefix it's saved under, the file the 2K finish loads)+ 'latentPrefix', 'latent',// Character swap in 2K (n7-4): the mask composite's window starts, the two layers' places and the mask's soft edge'takeStart', 'maskStart', 'takeX', 'takeY', 'regionWidth', 'regionHeight', 'regenWidth', 'regenHeight', 'regenX', 'regenY', 'trimX', 'trimY', 'feather',// Clean up voice (ComfyUI-RE-USE): the RE-USE file, the rate it runs at, room tone, level and the music & effects bed's leveldiff --git a/scripts/comfy/hand-built/video-h3-t2v-2k.json b/scripts/comfy/hand-built/video-h3-t2v-2k.jsonnew file mode 100644index 00000000..68b03a96--- /dev/null+++ b/scripts/comfy/hand-built/video-h3-t2v-2k.json@@ -0,0 +1,238 @@+{+ "2": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "H3 FL2VA (pruned int8)"+ }+ },+ "9": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "lora_name": "minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors",+ "strength_model": 1.0,+ "model": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "LightX2V Turbo 4-step v1.2 (768p)"+ }+ },+ "6": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "Qwen3-VL 32B (H3 text encoder)"+ }+ },+ "7": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 video VAE"+ }+ },+ "8": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 audio VAE"+ }+ },+ "10": {+ "class_type": "MiniMaxH3ImageToVideo",+ "inputs": {+ "prompt": "",+ "width": 1344,+ "height": 768,+ "length": 124,+ "clip": [+ "6",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "H3 768p draft conditioning"+ }+ },+ "11": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 42+ },+ "_meta": {+ "title": "Seed"+ }+ },+ "12": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "er_sde"+ },+ "_meta": {+ "title": "er_sde"+ }+ },+ "13": {+ "class_type": "BasicScheduler",+ "inputs": {+ "scheduler": "simple",+ "steps": 6,+ "denoise": 1.0,+ "model": [+ "9",+ 0+ ]+ },+ "_meta": {+ "title": "Scheduler (simple, 6 steps)"+ }+ },+ "14": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "9",+ 0+ ],+ "conditioning": [+ "10",+ 0+ ]+ },+ "_meta": {+ "title": "Basic Guider (CFG 1)"+ }+ },+ "15": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "11",+ 0+ ],+ "guider": [+ "14",+ 0+ ],+ "sampler": [+ "12",+ 0+ ],+ "sigmas": [+ "13",+ 0+ ],+ "latent_image": [+ "10",+ 1+ ]+ },+ "_meta": {+ "title": "768p draft"+ }+ },+ "17": {+ "class_type": "VAEDecodeAudio",+ "inputs": {+ "samples": [+ "15",+ 0+ ],+ "vae": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Decode audio"+ }+ },+ "20": {+ "class_type": "OpenH3SaveRefinedLatent",+ "inputs": {+ "frame_count": 0,+ "filename_prefix": "fuobe_h3_draft",+ "samples": [+ "15",+ 0+ ],+ "audio": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Save the 768p latent (Finish in 2K decodes from it)"+ }+ },+ "16": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "20",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Decode video"+ }+ },+ "18": {+ "class_type": "CreateVideo",+ "inputs": {+ "fps": 24.0,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none",+ "images": [+ "16",+ 0+ ],+ "audio": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Create Video"+ }+ },+ "19": {+ "class_type": "SaveVideo",+ "inputs": {+ "filename_prefix": "video/open_h3_draft_768p",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Save Video"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-regenerate-h3-latent.json b/scripts/comfy/hand-built/video-regenerate-h3-latent.jsonnew file mode 100644index 00000000..c3a83382--- /dev/null+++ b/scripts/comfy/hand-built/video-regenerate-h3-latent.json@@ -0,0 +1,303 @@+{+ "1": {+ "class_type": "OpenH3LoadRefinedLatent",+ "inputs": {+ "latent_file": "(newest)"+ },+ "_meta": {+ "title": "The draft's saved 768p latent"+ }+ },+ "2": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "H3 FL2VA (pruned int8)"+ }+ },+ "3": {+ "class_type": "OpenH3RegenLora",+ "inputs": {+ "lora_name": "open_h3_regenerate_2k_lora.safetensors",+ "curve_name": "none",+ "curve_table": "(model's own table)",+ "strength": 1.0,+ "curve_strength": 1.0,+ "lora_dtype": "bf16",+ "model": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Open-H3 Regenerate LoRA (curve branches off)"+ }+ },+ "4": {+ "class_type": "BlockSparseAttention",+ "inputs": {+ "selection": "sol-attn",+ "selection.tau": 1.2,+ "start_percent": 0.0,+ "end_percent": 0.9,+ "dense_blocks": "0,1,49",+ "min_tokens": 12288,+ "extra_tokens": 256,+ "sink_conditioning": "exact_kv_and_rows",+ "verbose": false,+ "model": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Sol-Attn sparse attention"+ }+ },+ "6": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "Qwen3-VL 32B (H3 text encoder)"+ }+ },+ "7": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 video VAE"+ }+ },+ "8": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 audio VAE"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "",+ "clip": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Prompt"+ }+ },+ "17": {+ "class_type": "OpenH3RegenUpscale",+ "inputs": {+ "model_name": "minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors",+ "resolution": "2k (2560x1440)",+ "precision": "bf16",+ "temporal_chunking": false,+ "latent": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Latent upscale straight from the draft latent"+ }+ },+ "18": {+ "class_type": "OpenH3RegenRefineLatent",+ "inputs": {+ "audio_mode": "silence (reference)",+ "latent": [+ "17",+ 0+ ],+ "audio_vae": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Refine latent (audio held clean)"+ }+ },+ "19": {+ "class_type": "OpenH3RegenSigmas",+ "inputs": {+ "steps": 3,+ "start_sigma": 0.8+ },+ "_meta": {+ "title": "Sigmas"+ }+ },+ "20": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 1766580932+ },+ "_meta": {+ "title": "Seed"+ }+ },+ "21": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Euler"+ }+ },+ "22": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "4",+ 0+ ],+ "conditioning": [+ "16",+ 0+ ]+ },+ "_meta": {+ "title": "Basic Guider (CFG 1)"+ }+ },+ "23": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "20",+ 0+ ],+ "guider": [+ "22",+ 0+ ],+ "sampler": [+ "21",+ 0+ ],+ "sigmas": [+ "19",+ 0+ ],+ "latent_image": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Refine"+ }+ },+ "24": {+ "class_type": "OpenH3SaveRefinedLatent",+ "inputs": {+ "frame_count": [+ "1",+ 1+ ],+ "filename_prefix": "open_h3_regen",+ "samples": [+ "23",+ 0+ ],+ "audio": [+ "1",+ 2+ ]+ },+ "_meta": {+ "title": "Save refined latent (redo a failed decode)"+ }+ },+ "25": {+ "class_type": "OpenH3RegenFastVAEDecode",+ "inputs": {+ "vae_name": "fast_h3_vae_noncausal_24l.safetensors",+ "keep_loaded": false,+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Fast H3 VAE decode"+ }+ },+ "26": {+ "class_type": "OpenH3RegenFinish",+ "inputs": {+ "frame_count": [+ "1",+ 1+ ],+ "crop": "auto (1088 -> 1080, 2176 -> 2160)",+ "images": [+ "25",+ 0+ ],+ "audio": [+ "1",+ 2+ ]+ },+ "_meta": {+ "title": "Finish (trim, crop, the draft's sound)"+ }+ },+ "27": {+ "class_type": "CreateVideo",+ "inputs": {+ "fps": 24.0,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none",+ "images": [+ "26",+ 0+ ],+ "audio": [+ "26",+ 1+ ]+ },+ "_meta": {+ "title": "Create Video"+ }+ },+ "28": {+ "class_type": "SaveVideo",+ "inputs": {+ "filename_prefix": "video/open_h3_regen_2k",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "27",+ 0+ ]+ },+ "_meta": {+ "title": "Save Video"+ }+ }+}diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 7029fe0f..ebf9877d 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -287,6 +287,8 @@ export const KNOWN_MODELS = {'minimax_h3_video_vae_fp16.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors' },'minimax_h3_audio_vae_fp32.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors' },'minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors' },+ // Regenerate in Cinema (n7-10): LightX2V's FL2V Turbo 4-step v1.2 (Apache-2.0 in its card at 3ec17a3), the 768p draft of rdh's "Prompt to 2K".+ 'minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors' },'h3_character_swap_v1.5.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/d06323b7c8e70e97cdab48b78a1e05f786c8cba9/h3_character_swap_v1.5.safetensors' },'h3_character_swap_pro4500_1000.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/a665bb7e3bb9804e487d2925f67744f554c8ad49/h3_character_swap_pro4500_1000.safetensors' },'H3-Person-Remover-V1.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors' },@@ -4725,6 +4727,56 @@ export const SPEC = ['length, which CreateVideo muxes back at 24 fps. Measured by the pack\'s author: about 3 min per 5 s at 2K on a 72 GB RTX PRO 5000 (9.5 min with dense attention); 22 s on a B200 (NVIDIA); ' +'a community run reached about 1080p on 32 GB with a lossy LoRA. The packs were tested by their author on ComfyUI 0.42.0.',},+ // ---- Regenerate in Cinema and the Video studio (package n7-10-regenerate-more; docs/research/new-models-7.md §2.10 row 8): a+ // MiniMax H3 take drafted at 768p that keeps its latent, and the 2K finish that starts from that latent (no decode and+ // re-encode in between), from rdh9616's "Prompt to 2K" and "Decode Saved Latent" examples at 9b686c5.+ {+ id: 'video-h3-t2v-2k',+ title: 'MiniMax H3 text to video at 768p that keeps its latent for a 2K finish (FL2VA + LightX2V Turbo 4-step v1.2, 6 steps er_sde; ComfyUI-Open-H3-Regenerate saves the latent)',+ capability: 't2v',+ handBuilt: 'hand-built/video-h3-t2v-2k.json',+ packs: ['ComfyUI-Open-H3-Regenerate'],+ bindings: {+ prompt: [b('10', 'prompt')],+ width: [b('10', 'width')], height: [b('10', 'height')], frames: [b('10', 'length')],+ seed: [b('11', 'noise_seed')], steps: [b('13', 'steps')],+ latentPrefix: [b('20', 'filename_prefix')], filenamePrefix: [b('19', 'filename_prefix')],+ },+ outputs: [{ node: '19', kind: 'video' }],+ defaults: { width: 1344, height: 768, frames: 124, fps: 24, steps: 6 },+ limits: { maxFrames: 362, dimensionMultiple: 32 },+ vramGb: 32,+ license: `${H3_LICENSE} · LightX2V FL2V Turbo 4-step v1.2 LoRA Apache-2.0 (its card at 3ec17a3) · ComfyUI-Open-H3-Regenerate Apache-2.0`,+ notes:+ 'The draft half of rdh9616\'s "Open-H3 Regenerate 2K - Prompt to 2K" example: MiniMaxH3ImageToVideo with no frames given (text to video with sound), the FL2VA pruned int8 model with ' ++ 'LightX2V\'s FL2V Turbo 4-step v1.2 LoRA at 1.0 (core LoraLoaderModelOnly), BasicScheduler simple 6 steps, er_sde, CFG 1, decoded with the fp16 H3 video VAE. Between the sampler and the ' ++ 'decoder, Save Refined Latent (20) writes the 768p latent with its soundtrack to output/open_h3_latents/<latentPrefix>_00001.safetensors (Fuobe names it after the run), so "Finish in 2K" ' ++ '(video-regenerate-h3-latent) upscales that latent straight away instead of re-encoding the decoded draft. The pack is opt-in (OPEN_H3_REGEN=1). rdh measured about 2 min for a 5 s draft ' ++ '(6 x 16 s) on a 72 GB RTX PRO 5000.',+ },+ {+ id: 'video-regenerate-h3-latent',+ title: 'Finish a 768p MiniMax H3 draft in 2K from its saved latent: Open-H3 Regenerate 2K without the decode and re-encode (ComfyUI-Open-H3-Regenerate + LBH packs)',+ capability: 'upscale-video',+ handBuilt: 'hand-built/video-regenerate-h3-latent.json',+ packs: ['ComfyUI-Open-H3-Regenerate', 'Comfyui_Minimax_h3_latent_Upscaler'],+ bindings: {+ latent: [b('1', 'latent_file')], prompt: [b('16', 'text')], resolution: [b('17', 'resolution')],+ startSigma: [b('19', 'start_sigma')], steps: [b('19', 'steps')], seed: [b('20', 'noise_seed')], filenamePrefix: [b('28', 'filename_prefix')],+ },+ outputs: [{ node: '28', kind: 'video' }],+ defaults: { resolution: '2k (2560x1440)', startSigma: 0.8, steps: 3, fps: 24 },+ vramGb: 48,+ license:+ 'MiniMax H3 Community License (the H3 FL2VA model, its VAEs, the packaged Qwen3-VL text encoder, NVIDIA\'s Open-H3-Regenerate-2K LoRA and the fast H3 VAE decoder): territory EXCLUDES the US, ' ++ 'the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax\'s written authorization; show "MiniMax H3" on the product\'s interface · LBH latent upscaler weights ' ++ 'Apache-2.0, its node code MIT · ComfyUI-Open-H3-Regenerate Apache-2.0',+ notes:+ 'video-regenerate-h3 started from a saved latent instead of a clip (rdh9616\'s "Decode Saved Latent" loader in front of the "Prompt to 2K" regenerate half): Load Refined Latent (1) reads the ' ++ 'draft\'s output/open_h3_latents/ file by name (latent: the draft run\'s latentPrefix + _00001.safetensors, so it runs on the ComfyUI that made the draft), the LBH upscaler puts it on the ' ++ 'target grid (resolution: 1080p | 2k | 4k), the refine re-noises it to startSigma (0.8, closer to the draft) and runs 3 Euler steps at CFG 1 with Sol-Attn and the prompt, the refined latent ' ++ 'is saved again, the fast H3 VAE decoder decodes it, and Finish trims to the draft\'s frame count and puts the draft\'s own sound back at 24 fps.',+ },// ---- Character swap in 2K (package n7-4-character-swap-2k; docs/research/new-models-7.md §2.10 rows 4-5): only the swapped// character comes from the regenerate, over the original footage, with the footage's own sound.{diff --git a/src/app/api/cinema/projects/[id]/items/[generationId]/finish/route.ts b/src/app/api/cinema/projects/[id]/items/[generationId]/finish/route.tsnew file mode 100644index 00000000..96845fee--- /dev/null+++ b/src/app/api/cinema/projects/[id]/items/[generationId]/finish/route.ts@@ -0,0 +1,10 @@+import { finishTake } from "@/server/cinema";+import { handle } from "@/server/cinema-schemas";++/** Finish in 2K: a MiniMax H3 take made again at 2K (fal), or redrawn at 2K on your GPU (Open-H3 Regenerate), same folder. */+export async function POST(request: Request, ctx: RouteContext<"/api/cinema/projects/[id]/items/[generationId]/finish">) {+ return handle(async () => {+ const { id, generationId } = await ctx.params;+ return Response.json({ items: finishTake(id, generationId) }, { status: 201 });+ }, request);+}diff --git a/src/components/cinema/cinema-feed.tsx b/src/components/cinema/cinema-feed.tsxindex 98ffbc45..5a324c60 100644--- a/src/components/cinema/cinema-feed.tsx+++ b/src/components/cinema/cinema-feed.tsx@@ -20,6 +20,7 @@ import {RotateCcw,Rows3,SlidersHorizontal,+ Sparkles,Trash2,UserRoundPlus,Video,@@ -55,6 +56,8 @@ import { getModel } from "@/lib/catalog";import type { CinemaFolder } from "@/lib/catalog/cinema";import type { Generation, OutputFile } from "@/lib/catalog/types";import { formatCost, timeAgo } from "@/lib/format";+import { useEngineMode } from "@/lib/api";+import { finishIn2k } from "@/lib/catalog/regenerate";import { cn } from "@/lib/utils";import { copyWithToast } from "@/lib/clipboard";import { toastError } from "@/lib/refusals";@@ -188,8 +191,13 @@ export function deleteLabel(g: CinemaGeneration): string {function TileMenu({ u, folders, projectId, handlers, onDelete }: { u: Unit; folders: CinemaFolder[]; projectId: string; handlers: FeedHandlers; onDelete: (ids: string[]) => void }) {const actions = useItemActions(projectId);+ const engineMode = useEngineMode();const o = u.output;const elsewhere = foreign(u.g, projectId);+ // Finish in 2K: a MiniMax H3 take below 2K (fal renders it again at 2K; your GPU redraws it with Open-H3 Regenerate).+ const finish = o?.kind === "video" && !u.tile ? finishIn2k(u.g, engineMode) : null;+ const seconds = Number(u.g.request.params?.duration ?? 0);+ const finishPrice = !finish ? "" : finish.perSecond === null ? "Free" : seconds > 0 ? `≈ ${formatCost(finish.perSecond * seconds)}` : `$${finish.perSecond.toFixed(2)}/s`;return (<DropdownMenu><DropdownMenuTrigger asChild>@@ -240,6 +248,18 @@ function TileMenu({ u, folders, projectId, handlers, onDelete }: { u: Unit; fold<DropdownMenuItem onClick={() => handlers.onReference(o.url, "video")}><ImagePlus /> Use as reference clip</DropdownMenuItem>+ {finish && (+ <DropdownMenuItem+ onClick={() =>+ void actions+ .finish2k(u.g)+ .then(() => toast(finish.perSecond === null ? "Finishing in 2K on your GPU" : "Rendering it again at 2K"))+ .catch((e) => toastError(e))+ }+ >+ <Sparkles /> {finish.label} <span className="ml-auto text-[11.5px] text-muted-foreground">{finishPrice}</span>+ </DropdownMenuItem>+ )}</>)}{u.scenediff --git a/src/components/cinema/hooks.ts b/src/components/cinema/hooks.tsindex d0756c37..afa7498a 100644--- a/src/components/cinema/hooks.ts+++ b/src/components/cinema/hooks.ts@@ -236,6 +236,10 @@ export function useItemActions(projectId: string) {retry: async (g: CinemaGeneration) => {await send(`/api/cinema/projects/${g.projectId ?? projectId}/items/${g.id}/retry`, "POST").finally(settle);},+ /** Finish in 2K: a MiniMax H3 take made again at 2K (fal) or redrawn at 2K on your GPU, in the same folder. */+ finish2k: async (g: CinemaGeneration) => {+ await send(`/api/cinema/projects/${g.projectId ?? projectId}/items/${g.id}/finish`, "POST").finally(settle);+ },saveTiles: async (generationId: string, tiles: CinemaTile[]) => {await send(`/api/cinema/projects/${projectId}/items/${generationId}/tiles`, "PUT", { tiles });patchLocal([generationId], (g) => ({ ...g, tiles }));diff --git a/src/components/cinema/prompt-bar.tsx b/src/components/cinema/prompt-bar.tsxindex c2ee5186..b7eadec0 100644--- a/src/components/cinema/prompt-bar.tsx+++ b/src/components/cinema/prompt-bar.tsx@@ -57,8 +57,8 @@ import {IMAGE_RESOLUTIONS,ORIGINAL_LINES,VIDEO_ASPECTS,- VIDEO_RESOLUTIONS,checkReferences,+ videoResolutionsFor,modelLine,planCinema,type DirectorSettings,@@ -471,6 +471,8 @@ export function PromptBar(props: PromptBarProps) {? "Describe the scene – the whole grid shares it": "Describe your still – use @ to add characters & locations";+ // MiniMax H3 adds a 2K tier (fal's 2K, or a 768p draft finished by Open-H3 Regenerate on your GPU).+ const videoTiers = videoResolutionsFor(model);// Secondary settings: inline on wide bars, in one Settings popover on narrow ones.const settingsItems: { label: string; node: React.ReactNode }[] = [{@@ -485,8 +487,8 @@ export function PromptBar(props: PromptBarProps) {key="resolution"icon={Maximize}label="Resolution"- value={draft.resolution[draft.mode]}- options={video ? VIDEO_RESOLUTIONS : IMAGE_RESOLUTIONS}+ value={video && !videoTiers.includes(draft.resolution.video) ? "1080p" : draft.resolution[draft.mode]}+ options={video ? videoTiers : IMAGE_RESOLUTIONS}onChange={(v) => setDraft((d) => ({ resolution: { ...d.resolution, [d.mode]: v } }))}/>),diff --git a/src/lib/catalog/cinema.ts b/src/lib/catalog/cinema.tsindex 6a7c8c7f..72361649 100644--- a/src/lib/catalog/cinema.ts+++ b/src/lib/catalog/cinema.ts@@ -612,6 +612,17 @@ export const MAX_LIGHTS = 2;export const VIDEO_ASPECTS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];export const IMAGE_ASPECTS = ["16:9", "21:9", "3:2", "4:3", "1:1", "3:4", "2:3", "9:16"];export const VIDEO_RESOLUTIONS = ["480p", "720p", "1080p"];+/** MiniMax H3's 2K tier: fal renders it from a 768P base; on your GPU a 768p draft is finished by Open-H3 Regenerate. */+export const H3_2K_TIER = "2K";++/** Cinema's video tiers for a model: 480p / 720p / 1080p, and 2K for the MiniMax H3 models that offer it. */+export function videoResolutionsFor(model: Pick<ModelDef, "family" | "options"> | undefined): string[] {+ const twoK = !!model && (model.family === "minimax-h3" || model.family === "hailuo") && (model.options.resolutions ?? []).some((r) => r.toLowerCase() === "2k");+ return twoK ? [...VIDEO_RESOLUTIONS, H3_2K_TIER] : VIDEO_RESOLUTIONS;+}++/** The 2K tier on your GPU, said under the prompt bar. */+export const H3_2K_OPEN_NOTE = "2K on your GPU: each take is drafted at 768p, then redrawn at 2K with Open-H3 Regenerate (about 5 minutes per 5 s)";export const IMAGE_RESOLUTIONS = ["1K", "2K", "4K"];export const DURATION = { min: 4, max: 30, default: 5 } as const;export const BATCH = { min: 1, max: 4 } as const;@@ -1378,6 +1389,7 @@ function fitParams(model: ModelDef, input: CinemaGenerateInput, notes: string[],notes.push(`${model.name} renders up to ${params.resolution} here`);}}+ if (kind === "video" && model.engine === "open" && typeof params.resolution === "string" && params.resolution.toLowerCase() === "2k") notes.push(H3_2K_OPEN_NOTE);if (kind === "video" && model.kind === "video") {const want = Math.max(DURATION.min, Math.min(DURATION.max, Math.round(input.duration ?? DURATION.default)));const allowed = plannedDurations(model);diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 399e6e39..ad731fa6 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -615,7 +615,8 @@ const open: ModelDef[] = [options: {aspectRatios: ["auto", "16:9", "9:16", "1:1", "4:3", "3:4"],durations: [3, 5, 10, 15],- resolutions: ["768p"],+ // 2K: a 768p draft, then Open-H3 Regenerate at 2K from it (from its latent for text to video), on your GPU only.+ resolutions: ["768p", "2K"],seed: true,endFrame: true,audio: "always",diff --git a/src/lib/catalog/regenerate.ts b/src/lib/catalog/regenerate.tsindex 9842dab7..a7657e86 100644--- a/src/lib/catalog/regenerate.ts+++ b/src/lib/catalog/regenerate.ts@@ -212,6 +212,113 @@ export function regenFinishSteps(o: FinishStepsInput): { steps: FinishStep[]; fireturn { steps, final: key };}+/** Edit video's results get "Enhance (H3 regenerate)" (a clip of at most 15 s, one pass). */+export const ENHANCE_FEATURES = new Set(["video-edit"]);+export const ENHANCE_LABEL = "Enhance (H3 regenerate) · 1080p";++/** Whether a finished video result gets "Enhance (H3 regenerate)": an Edit video result up to 15 s (unknown counts). */+export function canEnhance(g: Pick<Generation, "feature" | "status" | "request">, o: { kind: string; meta?: Record<string, unknown> }, engineMode?: "both" | "open" | "cloud"): boolean {+ if (engineMode === "cloud" || o.kind !== "video" || g.status !== "succeeded" || !ENHANCE_FEATURES.has(g.feature)) return false;+ const seconds = typeof o.meta?.duration === "number" ? o.meta.duration : (g.request.params?.duration ?? g.request.params?.sourceDuration);+ return !finishLengthProblem(seconds);+}++/**+ * The run behind "Enhance (H3 regenerate)" on an Edit video result: Open-H3 Regenerate at 1080p from the edit's own words,+ * near the draft (sigma 0.8). The server picks the preset from the model that made it (576p for a Wan VACE edit) and runs+ * RIFE to 24 fps first when the clip's header says it is slower (createRegenerateRun).+ */+export function enhanceRequest(g: Pick<Generation, "feature" | "request">, video: string): GenerationRequest {+ return {+ feature: g.feature,+ modelId: REGEN_MODEL,+ op: "upscale-video",+ ...(g.request.prompt?.trim() ? { prompt: g.request.prompt.trim().slice(0, HANDOFF_PROMPT) } : {}),+ inputs: { video },+ params: { resolution: REGEN_FINISH_TIER, numOutputs: 1, extra: { startSigma: REGEN_FINISH_SIGMA } },+ };+}++// ---------------------------------------------------------------------------+// MiniMax H3 at 2K on your GPU, and "Finish in 2K" (Cinema and the Video studio)++/** The open MiniMax H3 model, whose 2K tier drafts at 768p and finishes with Open-H3 Regenerate. */+export const H3_OPEN_MODEL = "oss-minimax-h3";+/** The 768p text-to-video draft that keeps its latent, and the 2K finish that starts from it (rdh's "Prompt to 2K"). */+export const H3_LATENT_DRAFT_WORKFLOW = "video-h3-t2v-2k";+export const REGEN_LATENT_WORKFLOW = "video-regenerate-h3-latent";+/** Regenerate's tier for a 2K take (the shorter edge: 2560 x 1440). */+export const H3_FINISH_TIER = "1440p";++/** Whether a request asks the open MiniMax H3 model for its 2K tier. */+export function wantsH3TwoK(modelId: string | undefined, resolution: string | undefined): boolean {+ return modelId === H3_OPEN_MODEL && /^(2k|1440p)$/i.test(resolution ?? "");+}++/** The name the draft's latent is saved under (Save Refined Latent's prefix), from the run's id. */+export const latentPrefixFor = (generationId: string) => `fuobe_h3_${generationId.replace(/[^A-Za-z0-9_-]/g, "")}`;+/** The file the finish loads: the pack numbers each prefix's files from 00001. */+export const latentFileFor = (generationId: string) => `${latentPrefixFor(generationId)}_00001.safetensors`;++/**+ * The two steps of an open MiniMax H3 take at 2K: the take at 768p, then Open-H3 Regenerate at 2K from it, from the same+ * words, near the draft (sigma 0.8) with the 768p preset. Text to video drafts on the graph that keeps its latent, and the+ * finish starts from that latent (the server names it after the draft); a take from a start frame is finished from its clip.+ */+export function h3TwoKRequests(original: GenerationRequest, op: string): { draft: GenerationRequest; finish: GenerationRequest; fromLatent: boolean } {+ const fromLatent = op === "t2v";+ const params = original.params ?? {};+ const draft: GenerationRequest = {+ ...original,+ op: op as GenerationRequest["op"],+ params: { ...params, resolution: "768p", numOutputs: 1, extra: { ...params.extra, ...(fromLatent ? { latentDraft: true } : {}) } },+ step: { label: "768p draft", index: 0, of: 2 },+ };+ const finish: GenerationRequest = {+ feature: original.feature,+ modelId: REGEN_MODEL,+ op: "upscale-video",+ ...(original.prompt !== undefined && { prompt: original.prompt }),+ ...(original.title && { title: original.title }),+ ...(original.batchTitle && { batchTitle: original.batchTitle }),+ ...(original.demo && { demo: true }),+ params: { resolution: H3_FINISH_TIER, numOutputs: 1, ...(params.duration ? { sourceDuration: params.duration } : {}), extra: { startSigma: REGEN_FINISH_SIGMA, draftFrom: "h3" } },+ chain: [{ slot: "video" }],+ step: { label: "Finished in 2K", index: 1, of: 2 },+ };+ return { draft, finish, fromLatent };+}++/** The open H3 takes "Finish in 2K" offers to finish (a take from your GPU, made below 2K). */+export function canFinishOpen(g: Pick<Generation, "engine" | "modelId" | "status" | "kind" | "request">, engineMode?: "both" | "open" | "cloud"): boolean {+ if (engineMode === "cloud" || g.engine !== "open" || g.kind !== "video" || g.status !== "succeeded" || !isH3Source(g.modelId) || g.modelId === REGEN_MODEL) return false;+ return !AT_2K_OR_MORE.test(String(g.request.params?.resolution ?? ""));+}++/**+ * "Finish in 2K" on a take: a fal H3 take renders again at 2K on the same hosted model (priced per second); a take from+ * your GPU is redrawn at 2K by Open-H3 Regenerate (free), from its saved latent when its draft kept one. null: not offered.+ */+export function finishIn2k(g: Pick<Generation, "id" | "engine" | "provider" | "modelId" | "status" | "request" | "kind" | "outputs" | "op" | "feature">, engineMode?: "both" | "open" | "cloud"): { request: GenerationRequest; label: string; perSecond: number | null } | null {+ if (canRerender(g, engineMode)) return { request: rerenderRequest(g), label: "Finish in 2K", perSecond: RERENDER[g.modelId].perSecond["2K"] };+ if (!canFinishOpen(g, engineMode)) return null;+ const video = g.outputs.find((o) => o.kind === "video")?.url;+ if (!video) return null;+ const latent = g.request.params?.extra?.latentDraft === true;+ return {+ request: {+ feature: g.feature,+ modelId: REGEN_MODEL,+ op: "upscale-video",+ ...(g.request.prompt?.trim() ? { prompt: g.request.prompt.trim() } : {}),+ inputs: { video },+ params: { resolution: H3_FINISH_TIER, numOutputs: 1, extra: { startSigma: REGEN_FINISH_SIGMA, ...(latent ? { latentFrom: g.id, draftFrom: "h3" } : {}) } },+ },+ label: "Finish in 2K",+ perSecond: null,+ };+}+/** The note for a clip that isn't 16:9 or 9:16. */export function regenCropNote(width: number, height: number): string {return `Regenerate makes ${regenShape(width, height)} video, so this ${width}×${height} clip is cropped to ${regenShape(width, height)} at the centre`;@@ -261,7 +368,7 @@ export const REGEN_LORA: LoraRef = {/** The LoRA files a Regenerate graph loads itself, so a run downloads the ones ComfyUI lacks before it starts. */export function regenerateGraphLoras(endpoint: string): LoraRef[] {- return endpoint === REGEN_WORKFLOW ? [REGEN_LORA] : [];+ return endpoint === REGEN_WORKFLOW || endpoint === "video-regenerate-h3-latent" ? [REGEN_LORA] : [];}/** The new files and their licences, as the research recorded them (§2.4, §2.5). */diff --git a/src/lib/comfy-variants.ts b/src/lib/comfy-variants.tsindex 4d9fa402..0c023860 100644--- a/src/lib/comfy-variants.ts+++ b/src/lib/comfy-variants.ts@@ -27,6 +27,13 @@ export const H3_BEST_GRAPH: Record<string, string> = {"minimax-h3-flf2v": "minimax-h3-flf2v-hq",};+/**+ * MiniMax H3 at 2K on your GPU (n7-10): the text-to-video draft that keeps its 768p latent (params.extra.latentDraft), and+ * Regenerate's finish that starts from that latent (params.extra.latentFrom, the draft run's id) instead of the clip.+ */+export const H3_LATENT_DRAFT_GRAPH: Record<string, string> = { "minimax-h3-t2v": "video-h3-t2v-2k" };+export const REGEN_LATENT_GRAPH: Record<string, string> = { "video-regenerate-h3": "video-regenerate-h3-latent" };+/** MiniMax H3's 360-degree orbit of a still (params.extra.orbit): the Orbit LoRA graph, with the still as first and last frame. */export const H3_ORBIT_GRAPH: Record<string, string> = { "minimax-h3-i2v": "minimax-h3-orbit" };@@ -71,8 +78,12 @@ export function resolveWorkflowId(endpointTemplate: string, r: VariantRequest):// MiniMax H3: an orbit runs the Orbit LoRA graph (whatever the quality), else Best runs the 20-step graph.const orbit = H3_ORBIT_GRAPH[endpoint];const best = H3_BEST_GRAPH[endpoint];- if (orbit && r.extra.orbit === true && r.has(orbit)) endpoint = orbit;+ const latentDraft = H3_LATENT_DRAFT_GRAPH[endpoint];+ if (latentDraft && r.extra.latentDraft === true && r.has(latentDraft)) endpoint = latentDraft;+ else if (orbit && r.extra.orbit === true && r.has(orbit)) endpoint = orbit;else if (best && r.extra.quality === "best" && r.has(best)) endpoint = best;+ const fromLatent = REGEN_LATENT_GRAPH[endpoint];+ if (fromLatent && typeof r.extra.latentFrom === "string" && r.extra.latentFrom && r.has(fromLatent)) endpoint = fromLatent;const bed = REUSE_BED_GRAPH[endpoint];if (bed && r.extra.background === "keep" && r.has(bed)) endpoint = bed;return endpoint;diff --git a/src/lib/h3-prompt.ts b/src/lib/h3-prompt.tsindex cc6775f3..5255a999 100644--- a/src/lib/h3-prompt.ts+++ b/src/lib/h3-prompt.ts@@ -87,5 +87,8 @@ export function h3Canvas(shape?: string): { width: number; height: number } {};}-/** A graph from the MiniMax H3 video family (minimax-h3-t2v, -i2v, -flf2v, their -hq graphs and the orbit graph). */-export const isH3Graph = (workflowId: string): boolean => workflowId.startsWith("minimax-h3-");+/**+ * A graph from the MiniMax H3 video family (minimax-h3-t2v, -i2v, -flf2v, their -hq graphs and the orbit graph, and the 768p+ * draft that keeps its latent for a 2K finish, video-h3-t2v-2k).+ */+export const isH3Graph = (workflowId: string): boolean => workflowId.startsWith("minimax-h3-") || workflowId === "video-h3-t2v-2k";diff --git a/src/server/cinema.ts b/src/server/cinema.tsindex 629f9cca..1c41c993 100644--- a/src/server/cinema.ts+++ b/src/server/cinema.ts@@ -2,10 +2,12 @@ import "server-only";import { nanoid } from "nanoid";import { getModel } from "@/lib/catalog";import type { CinemaFolder, CinemaItem, CinemaProject, CinemaTakeInfo, CinemaTile, DirectorMessage, DirectorSettings } from "@/lib/catalog/cinema";+import { finishIn2k } from "@/lib/catalog/regenerate";import type { Generation, GenerationRequest } from "@/lib/catalog/types";import { db } from "./db";import { ConnectComfyError, createGenerations, getGeneration, listGenerations, previewChained, previewGeneration, toGeneration } from "./generations";import { trashGenerations } from "./library";+import { engineMode } from "./settings";/*** Cinema Studio projects: Director settings, brief and AI Director chat per project, nested folders@@ -703,6 +705,42 @@ export function retryItem(projectId: string, generationId: string): Generation[]return created;}+/**+ * "Finish in 2K" on a MiniMax H3 take, in the same folder: a fal take renders again at 2K on the same hosted model (priced+ * per second, within the project's limit); a take from your GPU is redrawn at 2K by Open-H3 Regenerate, from its saved+ * 768p latent when its draft kept one (finishIn2k). The 2K take lands beside the first one.+ */+export function finishTake(projectId: string, generationId: string): Generation[] {+ const row = itemRow(projectId, generationId);+ const g = row ? liveGeneration(generationId) : null;+ if (!row || !g) throw new CinemaError("That take isn't in this project", 404);+ const finish = finishIn2k(g, engineMode());+ if (!finish) throw new CinemaError("Finish in 2K is for finished MiniMax H3 takes made below 2K", 422);+ const project = getProject(projectId);+ let cost = 0;+ try {+ cost = previewGeneration(finish.request).costUsd ?? 0;+ } catch (e) {+ if (e instanceof ConnectComfyError) throw e;+ throw new CinemaError((e as Error).message, 422);+ }+ if (project?.costCapUsd != null && cost > 0) {+ const spent = spentUsd(projectId);+ if (spent + cost > project.costCapUsd + 1e-9) {+ throw new CinemaError(`Finishing in 2K (≈ $${cost.toFixed(2)}) would take the project past its $${project.costCapUsd.toFixed(2)} limit — $${spent.toFixed(2)} is already spent. Raise the limit in project settings.`, 422);+ }+ }+ let made: Generation[];+ try {+ made = createGenerations(finish.request, g.batchId ? { batchId: g.batchId } : {});+ } catch (e) {+ if (e instanceof ConnectComfyError) throw e;+ throw new CinemaError((e as Error).message, 422);+ }+ recordTakes(projectId, made, row.folder_id, parse<ItemMeta>(row.meta_json, {}).take);+ return made;+}+export function setTiles(projectId: string, generationId: string, tiles: CinemaTile[]): CinemaItem {const r = itemRow(projectId, generationId);if (!r) throw new CinemaError("That take isn't in this project", 404);diff --git a/src/server/generations.ts b/src/server/generations.tsindex ac0bbfc1..c1d44711 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -56,8 +56,8 @@ import { DETAILS_MAX_IMAGES, GPU_PARAM, QWEN21_SPEED, speedLora } from "@/lib/qwimport { BLOCKED_CARD_MESSAGE, looksBlocked } from "./safety-card";import { pollTrainings } from "./training";import { createEndFrameClip, createExtendChain, createKeyframeFilm, createMosaicRun, createRelitClip, createShotFilm, createStillTo3d, joinClips } from "./chains";-import { createRegenerateRun } from "./regenerate";-import { REGEN_MODEL, regenerateGraphLoras } from "@/lib/catalog/regenerate";+import { createH3TwoKRun, createRegenerateRun } from "./regenerate";+import { REGEN_MODEL, regenerateGraphLoras, wantsH3TwoK } from "@/lib/catalog/regenerate";import { enhancePrompt, enhanceSoulWords, ideogramCaption } from "./enhance";import { carriesLayout } from "@/lib/layout-prompt";import { setResolver, watchGenerations, type LiveEvent } from "./live";@@ -940,6 +940,10 @@ export function createGenerations(given: GenerationRequest, opts: CreateOptionsconst run = createRegenerateRun(original, shotModel, opts, createGenerations, joinClips, (id) => void cancelGeneration(id));if (run) return run;}+ // MiniMax H3 at 2K on your GPU (n7-10): a 768p draft, then Open-H3 Regenerate at 2K from it (from its latent for text to video).+ if (shotModel && wantsH3TwoK(shotModel.id, original.params?.resolution)) {+ return createH3TwoKRun(original, inferOperation(shotModel, original), opts, createGenerations, (id) => void cancelGeneration(id));+ }const deps = opts.dependsOn === undefined ? [] : Array.isArray(opts.dependsOn) ? opts.dependsOn : [opts.dependsOn];const waits = deps.length > 0;// A dependent job can't be planned until its inputs exist; it's validated with placeholders, then launched by the runner.diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.tsindex b4fb10cd..81b55f41 100644--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@ -10,7 +10,7 @@ import { dualEngine, onEngine, runsOn } from "@/lib/catalog/engines";import { FRAMES_MODELS } from "@/lib/catalog/keyframes";import { REMOVE_TOOLS } from "@/lib/catalog/remove-object";import { RESTORE, RESTORE_OPEN_JOIN } from "@/lib/catalog/restore";-import { REGEN_DEFAULT_TIER, REGEN_JOIN, REGEN_MODEL, regenerateGraphLoras } from "@/lib/catalog/regenerate";+import { H3_LATENT_DRAFT_WORKFLOW, H3_OPEN_MODEL, REGEN_DEFAULT_TIER, REGEN_JOIN, REGEN_LATENT_WORKFLOW, REGEN_MODEL, regenerateGraphLoras } from "@/lib/catalog/regenerate";import { COMPOSITE_MODEL } from "@/lib/catalog/sharpen";import { ORIGINALS, SHARPEN_TOOLS } from "@/lib/catalog/genjutsu";import { libraryEntry, loraEntry, loraRef, needsToken } from "@/lib/catalog/loras";@@ -256,6 +256,9 @@ export const STUDIO_ROWS: StudioRowDef[] = [{ modelId: REGEN_JOIN, op: "concat" },],},+ // n7-10: MiniMax H3 at 2K on your GPU (Cinema and the Video studio's 2K tier, and Finish in 2K on a take): the 768p draft+ // that keeps its latent, and the 2K finish from it.+ { href: `/video?model=${H3_OPEN_MODEL}&resolution=2K`, label: "MiniMax H3 in 2K", group: "Video", workflows: [H3_LATENT_DRAFT_WORKFLOW, REGEN_LATENT_WORKFLOW] },// n7-4: the Character swap at 1080p / 2K / 4K (Genjutsu, and Sharpen in Character Swap Studio's Finish): the 768p swap,// the person's mask (SAM 3.1 on H3 Relay's graph), the part at 24 fps, the swap regenerated, only the character// composited over the footage, the windows joined and the part's sound put back.@@ -325,7 +328,8 @@ export function studioTool(row: StudioRowDef): Tool | null {}if (row.workflows) {const segment = row.workflows[row.workflows.length - 1];- return { ref: `studio:${row.href}`, name: row.label, kind: "video", workflows: row.workflows.filter((w) => !!loadIndex().workflows[w]), loras: graphLoras(segment, {}).map(loraNeed) };+ const loras = [...graphLoras(segment, {}), ...row.workflows.flatMap((w) => regenerateGraphLoras(w))];+ return { ref: `studio:${row.href}`, name: row.label, kind: "video", workflows: row.workflows.filter((w) => !!loadIndex().workflows[w]), loras: loras.map(loraNeed) };}const c = row.config;const id = c?.defaultModels.open;diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.tsindex 70a0fb2c..8ff19e1a 100644--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@ -44,7 +44,19 @@ import { fpsPlan } from "@/lib/av/fps";import { resolveWorkflowId } from "@/lib/comfy-variants";import { DECODER_PARAM, editCanvas, GPU_PARAM, LIGHTNING_GRAPHS, lightningSigmas, SPEED_PARAM, ZEN_ADAPTER, ZEN_ENCODER } from "@/lib/qwen21-speed";import { h3Canvas, h3Frames, isH3Graph } from "@/lib/h3-prompt";-import { draftSizeFor, REGEN_COPY, REGEN_WINDOW_SECONDS, REGEN_WORKFLOW, regenFrames, regenOnePassRefusal, regenResolution } from "@/lib/catalog/regenerate";+import {+ draftSizeFor,+ H3_LATENT_DRAFT_WORKFLOW,+ latentFileFor,+ latentPrefixFor,+ REGEN_COPY,+ REGEN_LATENT_WORKFLOW,+ REGEN_WINDOW_SECONDS,+ REGEN_WORKFLOW,+ regenFrames,+ regenOnePassRefusal,+ regenResolution,+} from "@/lib/catalog/regenerate";import { carriesBoxes, LAYOUT_PARAM } from "@/lib/layout-prompt";import { fixFromPromptError } from "@/lib/gpu/fix-codes";import { loadIndex } from "../gpu/index-file";@@ -1381,6 +1393,20 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,values.frames = regenFrames(length);delete extra.draftFrom;}+ // MiniMax H3 at 2K (n7-10): the 768p draft saves its latent under a name made from its run's id, and the finish loads+ // that file (the same ComfyUI keeps it in output/open_h3_latents/), redrawing it at the size asked from the same words.+ if (manifest.id === H3_LATENT_DRAFT_WORKFLOW) {+ values.latentPrefix = latentPrefixFor(ctx.generationId);+ delete extra.latentDraft;+ }+ if (manifest.id === REGEN_LATENT_WORKFLOW) {+ if (!(typeof values.prompt === "string" && values.prompt.trim())) throw new ProviderError("Regenerate redraws the clip from words: describe what is in it", 400);+ if (typeof extra.latentFrom !== "string" || !extra.latentFrom) throw new ProviderError("This take has no saved draft to finish from", 400);+ values.latent = latentFileFor(extra.latentFrom);+ values.resolution = regenResolution(input.resolution);+ delete extra.latentFrom;+ delete extra.draftFrom;+ }// Drawn motion paths (normalised to the start frame) → one pixel point per output frame (Wan-Move).const paths = extra.motionPaths as MotionPaths | undefined;@@ -1879,7 +1905,7 @@ export function promptRefusal(body: PromptRefusalBody, status: number, manifest:const packs = missingClass?.pack ? [missingClass.pack] : manifest.customNodes.map((c) => c.name);const where = worker === "isolated" ? "the isolated ComfyUI worker" : "your ComfyUI";const missingPack =- body.error?.type === "missing_node_type" && manifest.id === REGEN_WORKFLOW && worker === "main"+ body.error?.type === "missing_node_type" && [REGEN_WORKFLOW, REGEN_LATENT_WORKFLOW, H3_LATENT_DRAFT_WORKFLOW].includes(manifest.id) && worker === "main"? ownGpu()? REGEN_COPY.missingVisitor: REGEN_COPY.missingdiff --git a/src/server/regenerate.ts b/src/server/regenerate.tsindex 5c338679..40cc4c03 100644--- a/src/server/regenerate.ts+++ b/src/server/regenerate.ts@@ -2,7 +2,11 @@ import "server-only";import path from "node:path";import { nanoid } from "nanoid";import {+ h3TwoKRequests,isH3Source,+ needsSmoothing,+ REGEN_FPS,+ REGEN_SMOOTH_MODEL,REGEN_COPY,REGEN_FILES,REGEN_LORA,@@ -44,10 +48,10 @@ export function clipMaker(ref: string | undefined): string | undefined {return row?.model;}-/** A stored clip's length and size from its header (none for a link or another's file). */-function clipHeader(ref: string | undefined): { seconds?: number; width?: number; height?: number } {+/** A stored clip's length, size and frame rate from its header (none for a link or another's file). */+function clipHeader(ref: string | undefined): { seconds?: number; width?: number; height?: number; fps?: number } {const info = ref ? storedMedia(ref)?.info : undefined;- return info ? { seconds: info.videoDuration ?? info.duration, width: info.width, height: info.height } : {};+ return info ? { seconds: info.videoDuration ?? info.duration, width: info.width, height: info.height, fps: info.fps } : {};}const positive = (n: number | undefined) => (typeof n === "number" && n > 0 ? n : undefined);@@ -102,19 +106,50 @@ export function createRegenerateRun(...(span === undefined ? [REGEN_ONE_PASS_NOTE] : []),];const noted = (g: Generation) => (notes.length ? { ...g, notes: [...(g.notes ?? []), ...notes] } : g);- if (windows.length <= 1) return create({ ...original, params: { ...original.params, extra } }, opts).map(noted);+ // A stored clip slower than 24 fps (a Wan VACE edit's 16 fps) goes through RIFE first, so Prepare Draft doesn't repeat+ // frames to reach 24: the passes read RIFE's clip (package n7-10).const batchId = opts.batchId ?? nanoid(10);+ let smooth: Generation | undefined;+ let source = original;+ let runOpts = opts;+ if (!deps.length && video && needsSmoothing(header.fps)) {+ [smooth] = create(+ {+ feature: original.feature,+ modelId: REGEN_SMOOTH_MODEL,+ op: "interpolate",+ inputs: { video },+ params: { targetFps: REGEN_FPS, numOutputs: 1 },+ ...(original.demo && { demo: true }),+ step: { label: `To ${REGEN_FPS} fps`, index: 0, of: 2 },+ },+ { batchId },+ );+ const inputs = { ...original.inputs };+ delete inputs.video;+ source = { ...original, inputs, chain: [{ slot: "video" }] };+ runOpts = { batchId, dependsOn: smooth.id };+ }+ const withSmooth = (made: Generation[]) => (smooth ? [...made, smooth] : made);+ if (windows.length <= 1) {+ try {+ return withSmooth(create({ ...source, params: { ...source.params, extra } }, runOpts).map(noted));+ } catch (e) {+ if (smooth) cancel(smooth.id);+ throw e;+ }+ }const parts: Generation[] = [];try {for (const [i, w] of windows.entries()) {parts.push(create({- ...original,- params: { ...original.params, startTime: round3(from + w.start), endTime: round3(from + w.start + w.duration), numOutputs: 1, extra },+ ...source,+ params: { ...source.params, startTime: round3(from + w.start), endTime: round3(from + w.start + w.duration), numOutputs: 1, extra },step: { label: `Part ${i + 1} of ${windows.length}`, index: i, of: windows.length + 1 },},- { batchId },+ smooth ? { batchId, dependsOn: smooth.id } : { batchId },)[0],);}@@ -130,9 +165,42 @@ export function createRegenerateRun(step: { label: `Regenerated · ${windows.length} parts joined`, index: windows.length, of: windows.length + 1 },},);- return [noted({ ...film, notes: [...(film.notes ?? []), REGEN_SEAM_NOTE] }), ...parts];+ return withSmooth([noted({ ...film, notes: [...(film.notes ?? []), REGEN_SEAM_NOTE] }), ...parts]);+ } catch (e) {+ for (const p of [...parts, ...(smooth ? [smooth] : [])]) cancel(p.id);+ throw e;+ }+}++/**+ * MiniMax H3 at 2K on your GPU (n7-10): each take is drafted at 768p, then redrawn at 2K by Open-H3 Regenerate+ * (h3TwoKRequests). A text-to-video draft keeps its latent and the finish loads it by the draft's id; a take from a start+ * frame is finished from its clip. Returns the finished takes first, then their drafts. `create` is createGenerations.+ */+export function createH3TwoKRun(+ original: GenerationRequest,+ op: string,+ opts: { batchId?: string; dependsOn?: string | string[] },+ create: (r: GenerationRequest, o?: { batchId?: string; dependsOn?: string | string[] }) => Generation[],+ cancel: (id: string) => void,+): Generation[] {+ const off = regenSwitchedOff();+ if (off) throw new Error(off);+ const batchId = opts.batchId ?? nanoid(10);+ const takes = Math.max(1, Math.min(4, Math.round(original.params?.numOutputs ?? 1)));+ const finished: Generation[] = [];+ const drafts: Generation[] = [];+ try {+ for (let i = 0; i < takes; i++) {+ const { draft, finish, fromLatent } = h3TwoKRequests(original, op);+ const [d] = create(draft, { ...opts, batchId });+ drafts.push(d);+ const [f] = create({ ...finish, params: { ...finish.params, extra: { ...finish.params?.extra, ...(fromLatent ? { latentFrom: d.id } : {}) } } }, { batchId, dependsOn: d.id });+ finished.push(f);+ }} catch (e) {- for (const p of parts) cancel(p.id);+ for (const g of [...finished, ...drafts]) cancel(g.id);throw e;}+ return [...finished, ...drafts];}diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsindex b7c103f4..72ede6f2 100644--- a/tests/comfy-library-4.test.ts+++ b/tests/comfy-library-4.test.ts@@ -147,6 +147,8 @@ describe("round-4 ComfyUI workflows", () => {"video-character-swap-h3-segment","video-mask-h3-relay","video-regenerate-h3",+ "video-h3-t2v-2k",+ "video-regenerate-h3-latent",]);for (const w of manifest.workflows) for (const o of w.outputs) if (o.role) expect(ROLES, `${w.id} ${o.role}`).toContain(o.role);});diff --git a/tests/public-signup.test.ts b/tests/public-signup.test.tsindex 2857d849..254826ae 100644--- a/tests/public-signup.test.ts+++ b/tests/public-signup.test.ts@@ -242,6 +242,10 @@ describe("accounts never run on the owner's keys or GPU", () => {"/api/restore/prompt",// Character Swap Studio's Sharpen (n7-4): a studio job, like its assembly."/api/swap-studio/projects/p1/sharpen",+ // Regenerate in Faceless, Shorts segments and Cinema takes (n7-10): studio jobs, like their renders.+ "/api/faceless/episodes/e1/regenerate",+ "/api/shorts/sessions/s1/segments/0/enhance",+ "/api/cinema/projects/p1/items/g1/finish",]) {const r = proxy(req(p, { method: "POST", cookie }));expect(r.status, p).toBe(403);diff --git a/tests/regenerate-more-api.test.ts b/tests/regenerate-more-api.test.tsnew file mode 100644index 00000000..42fb72f4--- /dev/null+++ b/tests/regenerate-more-api.test.ts@@ -0,0 +1,276 @@+import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";+import type { Generation, GenerationRequest, GenInput } from "@/lib/catalog/types";++// Regenerate in Faceless, video segments and Cinema H3 shots (package n7-10-regenerate-more): MiniMax H3's 2K tier on your+// GPU (a 768p draft that keeps its latent, then the 2K finish from it), Finish in 2K on a take, Cinema's tiers, Edit video's+// Enhance with RIFE first for a 16 fps clip, and what an account may read.+vi.setConfig({ testTimeout: 120_000 });++const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-regen-more-"));+process.env.FUOBE_DATA_DIR = dir;+process.env.COMFYUI_URL = "http://127.0.0.1:9";+delete process.env.FUOBE_PASSWORD;++const R = await import("@/lib/catalog/regenerate");+const { getModel } = await import("@/lib/catalog");+const { resolveWorkflowId } = await import("@/lib/comfy-variants");+const { videoResolutionsFor, planCinema, H3_2K_OPEN_NOTE } = await import("@/lib/catalog/cinema");+const { outputActions } = await import("@/lib/output-actions");+const { isH3Graph } = await import("@/lib/h3-prompt");+const { prepareWorkflow, getWorkflow } = await import("@/server/providers/comfyui");+const { setSetting } = await import("@/server/settings");+const gens = await import("@/server/generations");+const { createRegenerateRun } = await import("@/server/regenerate");+const { saveFile } = await import("@/server/storage");+const { runAsTenant } = await import("@/server/tenant");+const cinema = await import("@/server/cinema");+const finishRoute = await import("@/app/api/cinema/projects/[id]/items/[generationId]/finish/route");++const ROOT = path.resolve(__dirname, "..");+const read = (id: string) => JSON.parse(fs.readFileSync(path.join(ROOT, `workflows/comfyui/${id}.json`), "utf8")) as Record<string, { class_type: string; inputs: Record<string, unknown> }>;+const at = (wf: Record<string, { inputs: Record<string, unknown> }>, node: string, input: string) => wf[node]?.inputs[input];+const json = (method: string, body?: unknown) => new Request("http://x/api", { method, headers: { "Content-Type": "application/json" }, body: body === undefined ? undefined : JSON.stringify(body) });+const params = <T extends Record<string, string>>(p: T) => ({ params: Promise.resolve(p) }) as never;+// A 12 s clip at 16 fps (a Wan restyle's rate).+const sixteen = (accountId?: string) => saveFile({ data: fs.readFileSync(path.join(__dirname, "fixtures/shorts-12s.mp4")), contentType: "video/mp4", source: "upload", name: "edit.mp4", ...(accountId && { accountId }) }).url;++beforeAll(() => setSetting("demoMode", "auto"));+afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));++async function settle(id: string, ms = 60_000): Promise<Generation> {+ const end = Date.now() + ms;+ for (;;) {+ const g = gens.getGeneration(id)!;+ if (["succeeded", "failed", "canceled"].includes(g.status)) return g;+ if (Date.now() > end) throw new Error(`timed out: ${g.status}`);+ await new Promise((r) => setTimeout(r, 200));+ }+}++describe("the 768p draft that keeps its latent, and the 2K finish from it", () => {+ const draft = read(R.H3_LATENT_DRAFT_WORKFLOW);+ const finish = read(R.REGEN_LATENT_WORKFLOW);++ it("is rdh's Prompt to 2K draft: FL2VA int8 + Turbo 4-step v1.2, 6 steps er_sde, the latent saved before the decode", () => {+ expect(at(draft, "2", "unet_name")).toBe("minimax_h3_fl2va_pruned_int8_convrot.safetensors");+ expect(draft["9"].class_type).toBe("LoraLoaderModelOnly");+ expect(at(draft, "9", "lora_name")).toBe("minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors");+ expect(draft["10"].class_type).toBe("MiniMaxH3ImageToVideo");+ expect([at(draft, "13", "scheduler"), at(draft, "13", "steps")]).toEqual(["simple", 6]);+ expect(at(draft, "12", "sampler_name")).toBe("er_sde");+ expect(draft["20"].class_type).toBe("OpenH3SaveRefinedLatent");+ expect(at(draft, "20", "samples")).toEqual(["15", 0]);+ expect(at(draft, "16", "samples")).toEqual(["20", 0]);+ expect(at(draft, "20", "audio")).toEqual(["17", 0]);+ expect(isH3Graph(R.H3_LATENT_DRAFT_WORKFLOW)).toBe(true);+ });++ it("finishes from that latent: no clip loaded, its frame count and sound carried to Finish", () => {+ const classes = Object.values(finish).map((n) => n.class_type);+ expect(classes).not.toContain("LoadVideo");+ expect(classes).not.toContain("VAEEncode");+ expect(finish["1"].class_type).toBe("OpenH3LoadRefinedLatent");+ expect(at(finish, "17", "latent")).toEqual(["1", 0]);+ expect(at(finish, "26", "frame_count")).toEqual(["1", 1]);+ expect(at(finish, "26", "audio")).toEqual(["1", 2]);+ expect(at(finish, "3", "curve_name")).toBe("none");+ });++ it("hands the latent over by name: the draft saves under its run's id, the finish loads that file", async () => {+ const d = await prepareWorkflow(R.H3_LATENT_DRAFT_WORKFLOW, { prompt: "a lighthouse in a storm", aspectRatio: "16:9", duration: 5, seed: 7, extra: { latentDraft: true } } as GenInput, {+ generationId: "draftAbc123",+ op: "t2v",+ upload: async (_d, _t, name) => `up_${name}`,+ });+ expect(at(d.workflow, "20", "filename_prefix")).toBe("fuobe_h3_draftAbc123");+ expect(at(d.workflow, "10", "length")).toBe(124);+ expect([at(d.workflow, "10", "width"), at(d.workflow, "10", "height")]).toEqual([1344, 768]);+ const f = await prepareWorkflow(R.REGEN_LATENT_WORKFLOW, { prompt: "a lighthouse in a storm", resolution: "1440p", seed: 3, extra: { latentFrom: "draftAbc123", draftFrom: "h3", startSigma: 0.8 } } as GenInput, {+ generationId: "fin1",+ op: "upscale-video",+ upload: async (_d, _t, name) => `up_${name}`,+ });+ expect(at(f.workflow, "1", "latent_file")).toBe("fuobe_h3_draftAbc123_00001.safetensors");+ expect(at(f.workflow, "17", "resolution")).toBe("2k (2560x1440)");+ expect(at(f.workflow, "19", "start_sigma")).toBe(0.8);+ await expect(prepareWorkflow(R.REGEN_LATENT_WORKFLOW, { prompt: "x", resolution: "1440p" } as GenInput, { generationId: "f2", op: "upscale-video", upload: async () => "u" })).rejects.toThrow(/no saved draft/);+ });++ it("picks the graphs by the run's flags, so the GPU pre-flight checks the graph that runs", () => {+ const req = (extra: Record<string, unknown>, op = "t2v") => ({ op, clips: 0, images: 0, audio2: false, extra, has: () => true });+ expect(resolveWorkflowId("minimax-h3-t2v", req({ latentDraft: true }))).toBe("video-h3-t2v-2k");+ expect(resolveWorkflowId("minimax-h3-t2v", req({ latentDraft: true, quality: "best" }))).toBe("video-h3-t2v-2k");+ expect(resolveWorkflowId("minimax-h3-t2v", req({}))).toBe("minimax-h3-t2v");+ expect(resolveWorkflowId("video-regenerate-h3", req({ latentFrom: "g1" }, "upscale-video"))).toBe("video-regenerate-h3-latent");+ expect(resolveWorkflowId("video-regenerate-h3", req({}, "upscale-video"))).toBe("video-regenerate-h3");+ expect(R.regenerateGraphLoras(R.REGEN_LATENT_WORKFLOW)).toEqual([R.REGEN_LORA]);+ });++ it("has a row on the GPU pre-flight board with both graphs and the refiner LoRA", async () => {+ const { STUDIO_ROWS, studioTool } = await import("@/server/gpu/tools");+ const row = STUDIO_ROWS.find((r) => r.label === "MiniMax H3 in 2K")!;+ const tool = studioTool(row)!;+ expect(tool.workflows).toEqual([R.H3_LATENT_DRAFT_WORKFLOW, R.REGEN_LATENT_WORKFLOW]);+ expect(tool.loras.map((l) => l.file)).toContain(R.REGEN_LORA.file);+ });++ it("pins the Turbo 4-step v1.2 file at 3ec17a3 with its size and SHA-256", () => {+ const pins = JSON.parse(fs.readFileSync(path.join(ROOT, "workflows/comfyui/model-pins.json"), "utf8"));+ const url = "https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors";+ expect(pins[url]).toEqual({ revision: "3ec17a324ced54151364f24f8b5fb6bf7e26414f", sizeBytes: 1956193000, sha256: "c8168ebc17bbacc4296103dda2fec1ba85b24392fa08cf2bfbcef0cff0dc3cc8" });+ const { manifest } = getWorkflow(R.H3_LATENT_DRAFT_WORKFLOW);+ expect(manifest.validated).toBe(false);+ expect(manifest.license).toMatch(/Turbo 4-step v1\.2 LoRA Apache-2\.0/);+ });+});++describe("MiniMax H3 at 2K on your GPU", () => {+ it("drafts each take at 768p, then finishes it in 2K: from its latent for text to video, from the clip for a start frame", () => {+ const made = gens.createGenerations({ feature: "cinema", modelId: "oss-minimax-h3", op: "t2v", prompt: "A lighthouse in a storm", params: { resolution: "2K", duration: 5, numOutputs: 2 } });+ expect(made).toHaveLength(4);+ const [f1, f2, d1, d2] = made;+ for (const [f, d] of [+ [f1, d1],+ [f2, d2],+ ]) {+ expect(d).toMatchObject({ modelId: "oss-minimax-h3", op: "t2v" });+ expect(d.request.params).toMatchObject({ resolution: "768p", numOutputs: 1, extra: { latentDraft: true } });+ expect(f).toMatchObject({ modelId: R.REGEN_MODEL, op: "upscale-video" });+ expect(f.request.params).toMatchObject({ resolution: "1440p", extra: { startSigma: 0.8, draftFrom: "h3", latentFrom: d.id } });+ expect(f.request.prompt).toBe("A lighthouse in a storm");+ }+ const png = saveFile({ data: Buffer.from("89504e470d0a1a0a", "hex"), contentType: "image/png", source: "upload" }).url;+ const [f, d] = gens.createGenerations({ feature: "video", modelId: "oss-minimax-h3", op: "i2v", prompt: "She turns", inputs: { images: [png] }, params: { resolution: "2K", duration: 5 } });+ expect(d.request.params?.extra?.latentDraft).toBeUndefined();+ expect(f.request.params?.extra).toMatchObject({ draftFrom: "h3" });+ expect(f.request.params?.extra?.latentFrom).toBeUndefined();+ // 768p stays a single run.+ expect(gens.createGenerations({ feature: "video", modelId: "oss-minimax-h3", op: "t2v", prompt: "x", params: { resolution: "768p", duration: 5 } })).toHaveLength(1);+ });++ it("offers 2K in Cinema only for MiniMax H3 models, and says how your GPU makes it", () => {+ for (const id of ["minimax-h3", "oss-minimax-h3", "minimax-h3-max"]) expect(videoResolutionsFor(getModel(id)), id).toContain("2K");+ for (const id of ["fuobe-cinema", "kling-4", "seedance-2-5", "oss-ltx25", "oss-wan22-14b", "veo-3-1"]) expect(videoResolutionsFor(getModel(id)), id).toEqual(["480p", "720p", "1080p"]);+ const ctx = { cloudAllowed: true, has: () => true, civitai: false };+ const base = { mode: "video" as const, prompt: "A lighthouse in a storm", aspectRatio: "16:9", duration: 5, batch: 1, settings: { genre: "general", camera: "", lens: "", focal: "", aperture: "", style: "" } };+ const open = planCinema({ ...base, engine: "open", modelId: "oss-minimax-h3", resolution: "2K" } as never, ctx as never);+ expect(open.steps[0].request.params?.resolution).toBe("2K");+ expect(open.notes).toContain(H3_2K_OPEN_NOTE);+ const cloud = planCinema({ ...base, engine: "cloud", modelId: "minimax-h3", resolution: "2K" } as never, ctx as never);+ expect(cloud.steps[0].request.params?.resolution).toBe("2K");+ expect(cloud.costUsd).toBeCloseTo(0.65, 2);+ const ltx = planCinema({ ...base, engine: "open", modelId: "oss-ltx25", resolution: "2K" } as never, ctx as never);+ expect(ltx.steps[0].request.params?.resolution).toBe("1080p");+ expect(ltx.notes).not.toContain(H3_2K_OPEN_NOTE);+ });+});++describe("Finish in 2K", () => {+ const take = (over: Partial<Generation>): Generation =>+ ({+ id: "take1",+ feature: "cinema",+ modelId: "oss-minimax-h3",+ engine: "open",+ provider: "comfyui",+ op: "t2v",+ kind: "video",+ status: "succeeded",+ request: { feature: "cinema", modelId: "oss-minimax-h3", prompt: "A lighthouse", params: { resolution: "768p", duration: 5 } },+ outputs: [{ url: "/api/files/take.mp4", kind: "video" }],+ ...over,+ }) as Generation;++ it("redraws a take from your GPU for free (from its latent when it kept one) and re-renders a fal take at $0.13/s", () => {+ const open = R.finishIn2k(take({}), "both")!;+ expect(open.perSecond).toBeNull();+ expect(open.request).toMatchObject({ modelId: R.REGEN_MODEL, inputs: { video: "/api/files/take.mp4" }, params: { resolution: "1440p", extra: { startSigma: 0.8 } } });+ expect(open.request.params?.extra?.latentFrom).toBeUndefined();+ const kept = R.finishIn2k(take({ request: { feature: "cinema", modelId: "oss-minimax-h3", prompt: "A", params: { resolution: "768p", extra: { latentDraft: true } } } }))!;+ expect(kept.request.params?.extra).toMatchObject({ latentFrom: "take1", draftFrom: "h3" });+ const fal = R.finishIn2k(take({ engine: "cloud", provider: "fal", modelId: "minimax-h3", request: { feature: "cinema", modelId: "minimax-h3", prompt: "A", params: { resolution: "768P" } } }), "both")!;+ expect(fal.perSecond).toBe(0.13);+ expect(fal.request.params?.resolution).toBe("2K");+ // Not for a take already at 2K, a non-H3 take, Paid APIs only (your GPU), or Open source only (a paid render).+ expect(R.finishIn2k(take({ request: { feature: "cinema", modelId: "oss-minimax-h3", params: { resolution: "2K" } } }))).toBeNull();+ expect(R.finishIn2k(take({ modelId: "oss-ltx25" }))).toBeNull();+ expect(R.finishIn2k(take({}), "cloud")).toBeNull();+ expect(R.finishIn2k(take({ engine: "cloud", provider: "fal", modelId: "minimax-h3" }), "open")).toBeNull();+ });++ it("puts the 2K take beside the first one in its Cinema project", async () => {+ const project = cinema.createProject({ name: "Storm" });+ const [g] = gens.createGenerations({ feature: "cinema", modelId: "oss-minimax-h3", op: "t2v", prompt: "A lighthouse in a storm", params: { resolution: "768p", duration: 5 } });+ cinema.addItems(project.id, [g.id]);+ expect(await settle(g.id)).toMatchObject({ status: "succeeded" });+ const res = await finishRoute.POST(json("POST"), params({ id: project.id, generationId: g.id }));+ expect(res.status).toBe(201);+ const { items } = await res.json();+ expect(items[0]).toMatchObject({ modelId: R.REGEN_MODEL, request: { params: { resolution: "1440p" } } });+ expect(cinema.listItems(project.id).map((x) => x.id)).toEqual(expect.arrayContaining([g.id, items[0].id]));+ const again = await finishRoute.POST(json("POST"), params({ id: project.id, generationId: items[0].id }));+ expect(again.status).toBe(422);+ expect((await finishRoute.POST(json("POST"), params({ id: project.id, generationId: "nope" }))).status).toBe(404);+ });+});++describe("Edit video · Enhance (H3 regenerate)", () => {+ const edit = (over: Partial<Generation> = {}): Generation =>+ ({+ id: "e1",+ feature: "video-edit",+ modelId: "fuobe-mixed-media",+ engine: "open",+ provider: "comfyui",+ op: "v2v",+ kind: "video",+ status: "succeeded",+ request: { feature: "video-edit", modelId: "fuobe-mixed-media", prompt: "make it snow", params: { duration: 5 } },+ outputs: [{ url: "/api/files/edit.mp4", kind: "video" }],+ ...over,+ }) as Generation;++ it("is offered on Edit video results up to 15 s, hidden by Paid APIs only", () => {+ const ids = (g: Generation, mode?: "both" | "open" | "cloud") => outputActions(g, 0, { engineMode: mode }).map((a) => a.id);+ expect(ids(edit(), "both")).toContain("enhance-h3");+ expect(ids(edit(), "cloud")).not.toContain("enhance-h3");+ expect(ids(edit({ request: { feature: "video-edit", modelId: "x", params: { duration: 20 } } }), "both")).not.toContain("enhance-h3");+ expect(ids(edit({ feature: "video" }), "both")).not.toContain("enhance-h3");+ expect(R.enhanceRequest(edit(), "/api/files/edit.mp4")).toMatchObject({ modelId: R.REGEN_MODEL, prompt: "make it snow", params: { resolution: "1080p", extra: { startSigma: 0.8 } } });+ });++ it("brings a 16 fps clip to 24 fps with RIFE first, then redraws RIFE's clip", () => {+ const clip = sixteen();+ const made = gens.createGenerations({ ...R.enhanceRequest(edit(), clip) });+ const rife = made.find((g) => g.modelId === R.REGEN_SMOOTH_MODEL)!;+ const regen = made.find((g) => g.modelId === R.REGEN_MODEL)!;+ expect(rife).toMatchObject({ op: "interpolate", request: { inputs: { video: clip }, params: { targetFps: 24 } } });+ expect(regen.request.chain).toEqual([{ slot: "video" }]);+ expect(regen.request.inputs?.video).toBeUndefined();+ expect(made[0].id).toBe(regen.id);+ });++ it("reads the frame rate only from the asker's own files", () => {+ const ownersClip = sixteen();+ const mine = sixteen("acct-a");+ const model = getModel(R.REGEN_MODEL)!;+ const run = (video: string) => {+ const asked: GenerationRequest[] = [];+ const fake = (r: GenerationRequest) => {+ asked.push(r);+ return [{ id: `g${asked.length}`, notes: [] } as unknown as Generation];+ };+ createRegenerateRun({ feature: "video-edit", modelId: R.REGEN_MODEL, prompt: "x", inputs: { video }, params: { resolution: "1080p" } }, model, {}, fake, () => ({ id: "j" }) as Generation, () => {});+ return asked.map((r) => r.modelId);+ };+ runAsTenant({ kind: "account", id: "acct-a" }, () => {+ expect(run(mine)).toEqual([R.REGEN_SMOOTH_MODEL, R.REGEN_MODEL]);+ // The owner's file: no header is read, so nothing about it shapes the run (the route refuses the input itself).+ expect(run(ownersClip)).toEqual([R.REGEN_MODEL]);+ });+ runAsTenant({ kind: "account", id: "acct-b" }, () => expect(run(mine)).toEqual([R.REGEN_MODEL]));+ });+});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 67332de0..f57e3ac4 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -22105,6 +22105,244 @@"notes": "rdh9616's \"Open-H3 Regenerate 2K - Draft Video\" example (ComfyUI-Open-H3-Regenerate at 9b686c5) without the note, the three PreviewAny nodes and OpenH3VideoToPrompt: the prompt goes straight into CLIPTextEncode 16, so nothing calls a server from inside the graph. curve_name \"none\" (the tensors of the Sharp curve branches are zero in the blocks checked), so the curve table is never read (\"(model's own table)\": no 21 GB ref2va file needed). A Video Slice (29) in front cuts the 15 s window a longer clip is regenerated in (startTime, duration; 0 = the whole clip). Prepare Draft (11) resamples to 24 fps, cover-crops to draftSize (768p for H3 drafts, 576p for other models; a portrait clip gets the preset turned, and any other shape is cropped to 16:9, since the upscale always targets 16:9 or 9:16) and cuts frames (round(seconds x 24), at most 360 = 15 s per pass); Save Refined Latent (24) and Finish (26) read its frame count. The LBH upscaler puts the latent on the target grid (resolution: 1080p (1920x1080) | 2k (2560x1440) | 4k (3840x2160), 4K via 2K), the refine re-noises it to startSigma (0 = the release 0.909 grid; Close 0.7, Balanced 0.8) and runs steps (3, or 2 = Faster) Euler steps at CFG 1 with Sol-Attn sparse attention and the audio held as encoded silence; the refined latent is saved before decoding (output/open_h3_latents/, redo a failed decode with rdh's \"Decode Saved Latent\" graph) and decoded by the fast H3 VAE decoder (tiled H3 VAE fallback). Finish trims the padding, crops 1088 -> 1080 and 2176 -> 2160 and cuts the draft's own sound to length, which CreateVideo muxes back at 24 fps. Measured by the pack's author: about 3 min per 5 s at 2K on a 72 GB RTX PRO 5000 (9.5 min with dense attention); 22 s on a B200 (NVIDIA); a community run reached about 1080p on 32 GB with a lossy LoRA. The packs were tested by their author on ComfyUI 0.42.0.","validationError": "HTTP 400: missing_node_type: Node 'Open-H3 Regenerate LoRA (curve branches off)' not found. The custom node may not be installed. (Node ID '#3')"},+ {+ "id": "video-h3-t2v-2k",+ "title": "MiniMax H3 text to video at 768p that keeps its latent for a 2K finish (FL2VA + LightX2V Turbo 4-step v1.2, 6 steps er_sde; ComfyUI-Open-H3-Regenerate saves the latent)",+ "capability": "t2v",+ "file": "video-h3-t2v-2k.json",+ "source": "hand-built (scripts/comfy/hand-built/video-h3-t2v-2k.json)",+ "bindings": {+ "prompt": [+ {+ "node": "10",+ "input": "prompt"+ }+ ],+ "width": [+ {+ "node": "10",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "10",+ "input": "height"+ }+ ],+ "frames": [+ {+ "node": "10",+ "input": "length"+ }+ ],+ "seed": [+ {+ "node": "11",+ "input": "noise_seed"+ }+ ],+ "steps": [+ {+ "node": "13",+ "input": "steps"+ }+ ],+ "latentPrefix": [+ {+ "node": "20",+ "input": "filename_prefix"+ }+ ],+ "filenamePrefix": [+ {+ "node": "19",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "19",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 1344,+ "height": 768,+ "frames": 124,+ "steps": 6,+ "fps": 24+ },+ "limits": {+ "maxFrames": 362,+ "dimensionMultiple": 32+ },+ "models": [+ {+ "file": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "sizeGb": 20.97+ },+ {+ "file": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "sizeGb": 15.69+ },+ {+ "file": "minimax_h3_video_vae_fp16.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors",+ "sizeGb": 5.21+ },+ {+ "file": "minimax_h3_audio_vae_fp32.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors",+ "sizeGb": 0.61+ },+ {+ "file": "minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors",+ "sizeGb": 1.96+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-Open-H3-Regenerate",+ "repo": "https://github.com/rdh9616/ComfyUI-Open-H3-Regenerate/tree/9b686c5ffd380e9d1351f9b8beef6d20d703ca3e"+ }+ ],+ "vramGb": 32,+ "license": "MiniMax H3 Community License (the H3 FL2VA model, its video and audio VAEs, the packaged Qwen3-VL text encoder): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax's written authorization; show \"MiniMax H3\" on the product's interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · LightX2V FL2V Turbo 4-step v1.2 LoRA Apache-2.0 (its card at 3ec17a3) · ComfyUI-Open-H3-Regenerate Apache-2.0",+ "validated": false,+ "notes": "The draft half of rdh9616's \"Open-H3 Regenerate 2K - Prompt to 2K\" example: MiniMaxH3ImageToVideo with no frames given (text to video with sound), the FL2VA pruned int8 model with LightX2V's FL2V Turbo 4-step v1.2 LoRA at 1.0 (core LoraLoaderModelOnly), BasicScheduler simple 6 steps, er_sde, CFG 1, decoded with the fp16 H3 video VAE. Between the sampler and the decoder, Save Refined Latent (20) writes the 768p latent with its soundtrack to output/open_h3_latents/<latentPrefix>_00001.safetensors (Fuobe names it after the run), so \"Finish in 2K\" (video-regenerate-h3-latent) upscales that latent straight away instead of re-encoding the decoded draft. The pack is opt-in (OPEN_H3_REGEN=1). rdh measured about 2 min for a 5 s draft (6 x 16 s) on a 72 GB RTX PRO 5000."+ },+ {+ "id": "video-regenerate-h3-latent",+ "title": "Finish a 768p MiniMax H3 draft in 2K from its saved latent: Open-H3 Regenerate 2K without the decode and re-encode (ComfyUI-Open-H3-Regenerate + LBH packs)",+ "capability": "upscale-video",+ "file": "video-regenerate-h3-latent.json",+ "source": "hand-built (scripts/comfy/hand-built/video-regenerate-h3-latent.json)",+ "bindings": {+ "latent": [+ {+ "node": "1",+ "input": "latent_file"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "resolution": [+ {+ "node": "17",+ "input": "resolution"+ }+ ],+ "startSigma": [+ {+ "node": "19",+ "input": "start_sigma"+ }+ ],+ "steps": [+ {+ "node": "19",+ "input": "steps"+ }+ ],+ "seed": [+ {+ "node": "20",+ "input": "noise_seed"+ }+ ],+ "filenamePrefix": [+ {+ "node": "28",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "28",+ "kind": "video"+ }+ ],+ "defaults": {+ "steps": 3,+ "resolution": "2k (2560x1440)",+ "startSigma": 0.8,+ "fps": 24+ },+ "limits": {},+ "models": [+ {+ "file": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "sizeGb": 20.97+ },+ {+ "file": "open_h3_regenerate_2k_lora.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Efficient-Large-Model/Open-H3-Regenerate-2K/resolve/5809c33730c18b6b1c827b40974855a4288641b3/lora/open_h3_regenerate_2k_lora.safetensors",+ "sizeGb": 12.45+ },+ {+ "file": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "sizeGb": 15.69+ },+ {+ "file": "minimax_h3_video_vae_fp16.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors",+ "sizeGb": 5.21+ },+ {+ "file": "minimax_h3_audio_vae_fp32.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors",+ "sizeGb": 0.61+ },+ {+ "file": "minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors",+ "folder": "latent_upscale_models",+ "url": "https://huggingface.co/Efficient-Large-Model/Open-H3-Regenerate-2K/resolve/5809c33730c18b6b1c827b40974855a4288641b3/latent_upsampler/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors",+ "sizeGb": 0.69+ },+ {+ "file": "fast_h3_vae_noncausal_24l.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Efficient-Large-Model/Open-H3-Regenerate-2K/resolve/5809c33730c18b6b1c827b40974855a4288641b3/vae_fast/fast_h3_vae_noncausal_24l.safetensors",+ "sizeGb": 6.47+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-Open-H3-Regenerate",+ "repo": "https://github.com/rdh9616/ComfyUI-Open-H3-Regenerate/tree/9b686c5ffd380e9d1351f9b8beef6d20d703ca3e"+ },+ {+ "name": "Comfyui_Minimax_h3_latent_Upscaler",+ "repo": "https://github.com/LBH-123-AI/Comfyui_Minimax_h3_latent_Upscaler/tree/40316cf008b2fd8663263270669eb4da23f89d2c"+ }+ ],+ "vramGb": 48,+ "license": "MiniMax H3 Community License (the H3 FL2VA model, its VAEs, the packaged Qwen3-VL text encoder, NVIDIA's Open-H3-Regenerate-2K LoRA and the fast H3 VAE decoder): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax's written authorization; show \"MiniMax H3\" on the product's interface · LBH latent upscaler weights Apache-2.0, its node code MIT · ComfyUI-Open-H3-Regenerate Apache-2.0",+ "validated": false,+ "notes": "video-regenerate-h3 started from a saved latent instead of a clip (rdh9616's \"Decode Saved Latent\" loader in front of the \"Prompt to 2K\" regenerate half): Load Refined Latent (1) reads the draft's output/open_h3_latents/ file by name (latent: the draft run's latentPrefix + _00001.safetensors, so it runs on the ComfyUI that made the draft), the LBH upscaler puts it on the target grid (resolution: 1080p | 2k | 4k), the refine re-noises it to startSigma (0.8, closer to the draft) and runs 3 Euler steps at CFG 1 with Sol-Attn and the prompt, the refined latent is saved again, the fast H3 VAE decoder decodes it, and Finish trims to the draft's frame count and puts the draft's own sound back at 24 fps."+ },{"id": "video-composite-mask","title": "Put only the swapped character back over the original footage: the 768p swap, then the regenerated one, each through the approved mask (grown, feathered), with the footage's sound (core nodes, no model)",diff --git a/workflows/comfyui/model-pins.json b/workflows/comfyui/model-pins.jsonindex 40a21db4..1aa1955c 100644--- a/workflows/comfyui/model-pins.json+++ b/workflows/comfyui/model-pins.json@@ -940,6 +940,11 @@"sizeBytes": 779849816,"sha256": "5f3a626cd72c93a8b9318d6760c510bc5092d2ab13aaba1f932c5bab07a416d3"},+ "https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors": {+ "revision": "3ec17a324ced54151364f24f8b5fb6bf7e26414f",+ "sizeBytes": 1956193000,+ "sha256": "c8168ebc17bbacc4296103dda2fec1ba85b24392fa08cf2bfbcef0cff0dc3cc8"+ },"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors": {"revision": "3ec17a324ced54151364f24f8b5fb6bf7e26414f","sizeBytes": 1956193000,diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex fd27884c..8c108164 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,9 +1,9 @@{"v": 1,- "hash": "05a34a965da3f4a5429a4ca2a232401d08d40f3c16430dfd78ae463eda0b2f97",+ "hash": "439bb4cb682e2d80e1bdf61d86e665b3ec5c1dbd5dc582267321d08cd4e5017d","comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],- "sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],+ "sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],"packs": {"ComfyUI-DBS": {"repo":"https://github.com/hiroki-abe-58/ComfyUI-DBS","commit":"f656e53434b5485c148a2866fbd6ddc6b6152ed6","registry":{"id":"dbs-soundtrack-separation","version":""},"classes":["DBSLoader","DBSSeparate"],"folders":["dbs"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Frame-Interpolation": {"repo":"https://github.com/Fannovel16/ComfyUI-Frame-Interpolation","commit":"26545cc2dd95bc3d27f056016300673bdeee78f5","registry":{"id":"comfyui-frame-interpolation","version":""},"classes":["RIFE VFI"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},@@ -16,7 +16,7 @@"ComfyUI-MMAudio": {"repo":"https://github.com/kijai/ComfyUI-MMAudio","commit":"8eaeb72edc3aaf2059b57f2d96a1f6f689f19ae2","registry":{"id":"comfyui-mmaudio","version":""},"classes":["MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler"],"folders":["mmaudio"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-MelBandRoFormer": {"repo":"https://github.com/kijai/ComfyUI-MelBandRoFormer","commit":"92c86854e6654f4aacc97484471af95c98ea16d4","registry":{"id":"ComfyUI-MelBandRoFormer","version":""},"classes":["MelBandRoFormerModelLoader","MelBandRoFormerSampler"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-MiniMax-H3-Turbo": {"repo":"https://github.com/Larryvrh/ComfyUI-MiniMax-H3-Turbo","commit":"77bfa67575b14e3be6214f1747732e540c68b5dd","registry":{"id":"comfyui-minimax-h3-turbo","version":""},"classes":["MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},- "ComfyUI-Open-H3-Regenerate": {"repo":"https://github.com/rdh9616/ComfyUI-Open-H3-Regenerate","commit":"9b686c5ffd380e9d1351f9b8beef6d20d703ca3e","classes":["OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},+ "ComfyUI-Open-H3-Regenerate": {"repo":"https://github.com/rdh9616/ComfyUI-Open-H3-Regenerate","commit":"9b686c5ffd380e9d1351f9b8beef6d20d703ca3e","classes":["OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-QwenASR": {"repo":"https://github.com/1038lab/ComfyUI-QwenASR","commit":"3f9a652a617e578e4e3bd090e3dbc75274bf4775","registry":{"id":"ComfyUI-QwenASR","version":""},"classes":["AILab_Qwen3ASRSubtitle"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-QwenTTS": {"repo":"https://github.com/1038lab/ComfyUI-QwenTTS","commit":"d8122a8ba835b65fd65c113d2b273b1ad1579293","registry":{"id":"ComfyUI-QwenTTS","version":""},"classes":["AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-RE-USE": {"repo":"https://github.com/workingprototype/Fuobe","commit":"8cc0417b5cb8a603f06502d97d5c6d8c6035ea0d","classes":["REUSEEnhance","REUSELoader"],"folders":["reuse"],"isolated":false,"subdir":"comfy-nodes/ComfyUI-RE-USE","requirementsTxt":false,"install":"manual"},@@ -163,6 +163,7 @@"loras/ltx-2-19b-distilled-lora-384.safetensors": {"folder":"loras","file":"ltx-2-19b-distilled-lora-384.safetensors","url":"https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled-lora-384.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2/resolve/64f65d09e0b76c96202b5bc09997673184cf9b5d/ltx-2-19b-distilled-lora-384.safetensors","sizeBytes":7674558424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","sizeBytes":1310000000,"gated":true,"presence":"list"},"loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-restore-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","sizeBytes":1710000000,"gated":true,"presence":"list"},+ "loras/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors": {"folder":"loras","file":"minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors","url":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors","pinnedUrl":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors","sizeBytes":1956193000,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors": {"folder":"loras","file":"minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","url":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","pinnedUrl":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","sizeBytes":1956193000,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/minimax_h3_flf2v_lora_v1.safetensors": {"folder":"loras","file":"minimax_h3_flf2v_lora_v1.safetensors","url":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","pinnedUrl":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","sizeBytes":155111424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/minimax_h3_turbo_v4_step600_ema.safetensors": {"folder":"loras","file":"minimax_h3_turbo_v4_step600_ema.safetensors","url":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","pinnedUrl":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","sizeBytes":779849816,"gated":false,"presence":"loader","loaders":[["MiniMaxH3TurboLoRA","lora_name"]]},@@ -418,6 +419,7 @@"video-export-pro-chunked": {"core":[],"packs":{"ComfyUI-VideoHelperSuite":["VHS_BatchManager","VHS_LoadVideo","VHS_VideoCombine","VHS_VideoInfo"]},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},"video-extend-wan22-fun-vace": {"core":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","EmptyImage","GetVideoComponents","ImageFromBatch","ImageScale","ImageToMask","KSamplerAdvanced","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","PrimitiveInt","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["ImageBatchExtendWithOverlap"]},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-fit-clip": {"core":["ComfyMathExpression","ImageScale","PrimitiveFloat"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_BatchManager","VHS_LoadVideo","VHS_VideoCombine"]},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},+ "video-h3-t2v-2k": {"core":["BasicGuider","BasicScheduler","CLIPLoader","CreateVideo","KSamplerSelect","LoraLoaderModelOnly","MiniMaxH3ImageToVideo","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3SaveRefinedLatent"]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","loras/minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":32,"isolated":false,"firstRun":[]},"video-inpaint-wan-vace": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","TrimAudioDuration","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","Video Slice","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["GrowMaskWithBlur"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/wan2.1_vace_14B_fp16.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-inpaint-wan-vace-painted": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadImageMask","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","SAM3_TrackToMask","SAM3_VideoTrack","SaveImage","SaveVideo","TrimAudioDuration","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","Video Slice","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["GrowMaskWithBlur"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/wan2.1_vace_14B_fp16.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-insert-wan-vace": {"core":["CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","ImageToMask","InvertMask","KSampler","LoadImage","LoadImageMask","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveFloat","PrimitiveInt","RepeatImageBatch","SaveVideo","TrimAudioDuration","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","Video Slice","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["GrowMaskWithBlur"]},"files":["diffusion_models/wan2.1_vace_14B_fp16.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},@@ -427,6 +429,7 @@"video-person-remove-h3-relay": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EndLoop","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","ThresholdMask","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"],"packs":{"h3-relay":["H3RelayAppendWindow","H3RelayApplyHistory","H3RelayFinishWindows","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/H3-Person-Remover-V1.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},"video-reframe-wan22-fun-vace": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerAdvanced","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["ImageResizeKJv2"]},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-regenerate-h3": {"core":["BasicGuider","BlockSparseAttention","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEEncode","VAELoader","Video Slice"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"Comfyui_Minimax_h3_latent_Upscaler":[]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","latent_upscale_models/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors","loras/open_h3_regenerate_2k_lora.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/fast_h3_vae_noncausal_24l.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":48,"isolated":false,"firstRun":[]},+ "video-regenerate-h3-latent": {"core":["BasicGuider","BlockSparseAttention","CLIPLoader","CLIPTextEncode","CreateVideo","KSamplerSelect","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAELoader"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"Comfyui_Minimax_h3_latent_Upscaler":[]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","latent_upscale_models/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors","loras/open_h3_regenerate_2k_lora.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/fast_h3_vae_noncausal_24l.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":48,"isolated":false,"firstRun":[]},"video-relight-bernini-r": {"core":["BasicScheduler","BerniniConditioning","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","LoraLoaderModelOnly","SamplerCustom","SaveVideo","SplitSigmas","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","diffusion_models/wan2.2_bernini_r_low_noise_fp8_scaled.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-restore-ltx25-tiled": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","EmptyLTXVLatentVideo","ImageFromBatch","ImageScale","KSamplerSelect","LTXVAddGuide","LTXVConditioning","LoadImage","ManualSigmas","SaveVideo","UNETLoader","VAEDecodeTiled","VAELoader"],"packs":{"ComfyUI-LTXVideo":["LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVTiledFusionSampler"],"ComfyUI-VideoHelperSuite":["VHS_LoadVideo"]},"files":["diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","vae/ltx-2.5-video-vae-bf16.safetensors"],"optional":["loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},"video-restyle-wan22-fun-vace": {"core":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","DA3Inference","DA3Render","GetVideoComponents","ImageFromBatch","ImageScale","ImageToMask","KSamplerAdvanced","LoadDA3Model","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveInt","RepeatImageBatch","SaveVideo","SolidMask","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","geometry_estimation/depth_anything_3_mono_large.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},diff --git a/workflows/comfyui/video-h3-t2v-2k.json b/workflows/comfyui/video-h3-t2v-2k.jsonnew file mode 100644index 00000000..3702766f--- /dev/null+++ b/workflows/comfyui/video-h3-t2v-2k.json@@ -0,0 +1,238 @@+{+ "2": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "H3 FL2VA (pruned int8)"+ }+ },+ "6": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "Qwen3-VL 32B (H3 text encoder)"+ }+ },+ "7": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 video VAE"+ }+ },+ "8": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 audio VAE"+ }+ },+ "9": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "lora_name": "minimax_h3_fl2v_turbo_4step_v1.2_768p_comfyui_bf16.safetensors",+ "strength_model": 1,+ "model": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "LightX2V Turbo 4-step v1.2 (768p)"+ }+ },+ "10": {+ "class_type": "MiniMaxH3ImageToVideo",+ "inputs": {+ "prompt": "",+ "width": 1344,+ "height": 768,+ "length": 124,+ "clip": [+ "6",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "H3 768p draft conditioning"+ }+ },+ "11": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 42+ },+ "_meta": {+ "title": "Seed"+ }+ },+ "12": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "er_sde"+ },+ "_meta": {+ "title": "er_sde"+ }+ },+ "13": {+ "class_type": "BasicScheduler",+ "inputs": {+ "scheduler": "simple",+ "steps": 6,+ "denoise": 1,+ "model": [+ "9",+ 0+ ]+ },+ "_meta": {+ "title": "Scheduler (simple, 6 steps)"+ }+ },+ "14": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "9",+ 0+ ],+ "conditioning": [+ "10",+ 0+ ]+ },+ "_meta": {+ "title": "Basic Guider (CFG 1)"+ }+ },+ "15": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "11",+ 0+ ],+ "guider": [+ "14",+ 0+ ],+ "sampler": [+ "12",+ 0+ ],+ "sigmas": [+ "13",+ 0+ ],+ "latent_image": [+ "10",+ 1+ ]+ },+ "_meta": {+ "title": "768p draft"+ }+ },+ "16": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "20",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Decode video"+ }+ },+ "17": {+ "class_type": "VAEDecodeAudio",+ "inputs": {+ "samples": [+ "15",+ 0+ ],+ "vae": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Decode audio"+ }+ },+ "18": {+ "class_type": "CreateVideo",+ "inputs": {+ "fps": 24,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none",+ "images": [+ "16",+ 0+ ],+ "audio": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Create Video"+ }+ },+ "19": {+ "class_type": "SaveVideo",+ "inputs": {+ "filename_prefix": "fuobe/video-h3-t2v-2k",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Save Video"+ }+ },+ "20": {+ "class_type": "OpenH3SaveRefinedLatent",+ "inputs": {+ "frame_count": 0,+ "filename_prefix": "fuobe_h3_draft",+ "samples": [+ "15",+ 0+ ],+ "audio": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Save the 768p latent (Finish in 2K decodes from it)"+ }+ }+}diff --git a/workflows/comfyui/video-regenerate-h3-latent.json b/workflows/comfyui/video-regenerate-h3-latent.jsonnew file mode 100644index 00000000..1eaed8f2--- /dev/null+++ b/workflows/comfyui/video-regenerate-h3-latent.json@@ -0,0 +1,303 @@+{+ "1": {+ "class_type": "OpenH3LoadRefinedLatent",+ "inputs": {+ "latent_file": "(newest)"+ },+ "_meta": {+ "title": "The draft's saved 768p latent"+ }+ },+ "2": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "minimax_h3_fl2va_pruned_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "H3 FL2VA (pruned int8)"+ }+ },+ "3": {+ "class_type": "OpenH3RegenLora",+ "inputs": {+ "lora_name": "open_h3_regenerate_2k_lora.safetensors",+ "curve_name": "none",+ "curve_table": "(model's own table)",+ "strength": 1,+ "curve_strength": 1,+ "lora_dtype": "bf16",+ "model": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Open-H3 Regenerate LoRA (curve branches off)"+ }+ },+ "4": {+ "class_type": "BlockSparseAttention",+ "inputs": {+ "selection": "sol-attn",+ "selection.tau": 1.2,+ "start_percent": 0,+ "end_percent": 0.9,+ "dense_blocks": "0,1,49",+ "min_tokens": 12288,+ "extra_tokens": 256,+ "sink_conditioning": "exact_kv_and_rows",+ "verbose": false,+ "model": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Sol-Attn sparse attention"+ }+ },+ "6": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",+ "type": "minimax",+ "device": "default"+ },+ "_meta": {+ "title": "Qwen3-VL 32B (H3 text encoder)"+ }+ },+ "7": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"+ },+ "_meta": {+ "title": "H3 video VAE"+ }+ },+ "8": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"+ },+ "_meta": {+ "title": "H3 audio VAE"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "",+ "clip": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Prompt"+ }+ },+ "17": {+ "class_type": "OpenH3RegenUpscale",+ "inputs": {+ "model_name": "minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors",+ "resolution": "2k (2560x1440)",+ "precision": "bf16",+ "temporal_chunking": false,+ "latent": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Latent upscale straight from the draft latent"+ }+ },+ "18": {+ "class_type": "OpenH3RegenRefineLatent",+ "inputs": {+ "audio_mode": "silence (reference)",+ "latent": [+ "17",+ 0+ ],+ "audio_vae": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Refine latent (audio held clean)"+ }+ },+ "19": {+ "class_type": "OpenH3RegenSigmas",+ "inputs": {+ "steps": 3,+ "start_sigma": 0.8+ },+ "_meta": {+ "title": "Sigmas"+ }+ },+ "20": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 1766580932+ },+ "_meta": {+ "title": "Seed"+ }+ },+ "21": {+ "class_type": "KSamplerSelect",+ "inputs": {+ "sampler_name": "euler"+ },+ "_meta": {+ "title": "Euler"+ }+ },+ "22": {+ "class_type": "BasicGuider",+ "inputs": {+ "model": [+ "4",+ 0+ ],+ "conditioning": [+ "16",+ 0+ ]+ },+ "_meta": {+ "title": "Basic Guider (CFG 1)"+ }+ },+ "23": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "20",+ 0+ ],+ "guider": [+ "22",+ 0+ ],+ "sampler": [+ "21",+ 0+ ],+ "sigmas": [+ "19",+ 0+ ],+ "latent_image": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Refine"+ }+ },+ "24": {+ "class_type": "OpenH3SaveRefinedLatent",+ "inputs": {+ "frame_count": [+ "1",+ 1+ ],+ "filename_prefix": "open_h3_regen",+ "samples": [+ "23",+ 0+ ],+ "audio": [+ "1",+ 2+ ]+ },+ "_meta": {+ "title": "Save refined latent (redo a failed decode)"+ }+ },+ "25": {+ "class_type": "OpenH3RegenFastVAEDecode",+ "inputs": {+ "vae_name": "fast_h3_vae_noncausal_24l.safetensors",+ "keep_loaded": false,+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Fast H3 VAE decode"+ }+ },+ "26": {+ "class_type": "OpenH3RegenFinish",+ "inputs": {+ "frame_count": [+ "1",+ 1+ ],+ "crop": "auto (1088 -> 1080, 2176 -> 2160)",+ "images": [+ "25",+ 0+ ],+ "audio": [+ "1",+ 2+ ]+ },+ "_meta": {+ "title": "Finish (trim, crop, the draft's sound)"+ }+ },+ "27": {+ "class_type": "CreateVideo",+ "inputs": {+ "fps": 24,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none",+ "images": [+ "26",+ 0+ ],+ "audio": [+ "26",+ 1+ ]+ },+ "_meta": {+ "title": "Create Video"+ }+ },+ "28": {+ "class_type": "SaveVideo",+ "inputs": {+ "filename_prefix": "fuobe/video-regenerate-h3-latent",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "27",+ 0+ ]+ },+ "_meta": {+ "title": "Save Video"+ }+ }+}