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
ComfyUI library: 17 round-4 workflows (132 total) and the CausVid licence fix, all validated on the live server
Claude698265b9b5e0
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjsindex e9c9a751..2465c6f7 100644--- a/scripts/comfy/build-library.mjs+++ b/scripts/comfy/build-library.mjs@@ -64,6 +64,9 @@ export const LOADER_FOLDERS = {HunyuanDependenciesLoader: { vae_name: 'foley', synchformer_name: 'foley' },ThinkSoundModelLoader: { thinksound_model: 'thinksound' },ThinkSoundFeatureUtilsLoader: { vae_model: 'thinksound', synchformer_model: 'thinksound' },+ // comfyui-oss-4 additions+ OpticalFlowLoader: { model_name: 'optical_flow' },+ LoadMoGeModel: { model_name: 'geometry_estimation' },};// Nodes that fetch their own weights at runtime (no manual download needed; listed in the entry's autoDownloads).const SELF_DOWNLOADING = new Set(['RIFE VFI', 'DownloadAndLoadWav2VecModel', 'RMBG', 'AILab_Qwen3ASRSubtitle', 'Apply Whisper', 'ClothesSegment', 'LatentSyncNode']);@@ -80,6 +83,9 @@ const NUMERIC_DEFAULT_KEYS = ['octreeResolution', 'columns', 'rows',// av-tools (Wave B)'frameIndex',+ // comfyui-oss-4 additions+ 'maskGrow', 'supersample', 'zoomStart', 'zoomEnd', 'panStartX', 'panStartY', 'panEndX', 'panEndY', 'easeInOut', 'chunkFrames',+ 'crossfade', 'headroomDb', 'peakNits', 'resolutionLevel', 'fovX', 'decimation', 'numGaussians', 'orbitFrames', 'frameWidth',];export const BINDING_KEYS = new Set(['prompt', 'negativePrompt', 'image', 'image2', 'image3', 'image4', 'mask', 'endImage', 'video', 'audio',@@ -98,6 +104,10 @@ export const BINDING_KEYS = new Set(['gridPrompt', 'sheetPrompt',// av-tools (Wave B, see library.spec.mjs header)'frameIndex',+ // comfyui-oss-4 additions (see library.spec.mjs header)+ 'maskPrompt', 'maskGrow', 'skipPass2', 'supersample', 'zoomStart', 'zoomEnd', 'panStartX', 'panStartY', 'panEndX', 'panEndY',+ 'easeInOut', 'chunkFrames', 'crossfade', 'headroomDb', 'fadeCurve', 'format', 'profile', 'peakNits', 'resolutionLevel', 'fovX',+ 'decimation', 'cutout', 'numGaussians', 'splatFormat', 'orbitFrames', 'frameWidth',]);const readJson = (p, fallback) => (fs.existsSync(p) ? JSON.parse(fs.readFileSync(p, 'utf8')) : fallback);diff --git a/scripts/comfy/hand-built/audio-join-crossfade.json b/scripts/comfy/hand-built/audio-join-crossfade.jsonnew file mode 100644index 00000000..879997a3--- /dev/null+++ b/scripts/comfy/hand-built/audio-join-crossfade.json@@ -0,0 +1,251 @@+{+ "1": {+ "class_type": "VHS_LoadAudioUpload",+ "inputs": {+ "audio": "a.wav",+ "start_time": 0,+ "duration": 0+ },+ "_meta": {+ "title": "First clip (audio)"+ }+ },+ "2": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "b.wav"+ },+ "_meta": {+ "title": "Second clip (audio2)"+ }+ },+ "3": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "fade.wav"+ },+ "_meta": {+ "title": "Crossfade curve the provider writes: stereo, left = fade-in, right = fade-out (fadeCurve)"+ }+ },+ "4": {+ "class_type": "SplitAudioChannels",+ "inputs": {+ "audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Fade-in / fade-out curves"+ }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Crossfade seconds (crossfade)"+ }+ },+ "6": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "0 - a",+ "values.a": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "-crossfade"+ }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - b",+ "values.a": [+ "1",+ 1+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "First clip without its tail"+ }+ },+ "8": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "start_index": 0,+ "duration": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "First clip, all but the overlap"+ }+ },+ "9": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "start_index": [+ "6",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "First clip's tail"+ }+ },+ "10": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": 0,+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Second clip's head"+ }+ },+ "11": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "5",+ 0+ ],+ "duration": 100000+ },+ "_meta": {+ "title": "Second clip after the overlap (a long duration = to its end)"+ }+ },+ "12": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "9",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Tail fading out"+ }+ },+ "13": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "10",+ 0+ ],+ "audio2": [+ "4",+ 0+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Head fading in"+ }+ },+ "14": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "12",+ 0+ ],+ "audio2": [+ "13",+ 0+ ],+ "merge_method": "add"+ },+ "_meta": {+ "title": "Overlap"+ }+ },+ "15": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "8",+ 0+ ],+ "audio2": [+ "14",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "First clip + overlap"+ }+ },+ "16": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "15",+ 0+ ],+ "audio2": [+ "11",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "+ the rest of the second clip"+ }+ },+ "17": {+ "class_type": "SaveAudio",+ "inputs": {+ "audio": [+ "16",+ 0+ ],+ "filename_prefix": "fuobe/audio-join"+ },+ "_meta": {+ "title": "Save (FLAC)"+ }+ }+}diff --git a/scripts/comfy/hand-built/audio-loop-crossfade.json b/scripts/comfy/hand-built/audio-loop-crossfade.jsonnew file mode 100644index 00000000..075aba75--- /dev/null+++ b/scripts/comfy/hand-built/audio-loop-crossfade.json@@ -0,0 +1,411 @@+{+ "1": {+ "class_type": "VHS_LoadAudioUpload",+ "inputs": {+ "audio": "music.wav",+ "start_time": 0,+ "duration": 0+ },+ "_meta": {+ "title": "Music clip to loop (audio)"+ }+ },+ "2": {+ "class_type": "AudioAdjustVolume",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "volume": -3+ },+ "_meta": {+ "title": "Headroom so overlapping seams never clip (headroomDb)"+ }+ },+ "3": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "fade.wav"+ },+ "_meta": {+ "title": "Crossfade curve the provider writes: stereo, left = fade-in, right = fade-out, crossfade seconds long (fadeCurve)"+ }+ },+ "4": {+ "class_type": "SplitAudioChannels",+ "inputs": {+ "audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Fade-in / fade-out curves"+ }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Crossfade seconds (crossfade; = the curve's length)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 20+ },+ "_meta": {+ "title": "Length of the bed in seconds (duration)"+ }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(ceil((a - b) / (c - b)), 1)",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "5",+ 0+ ],+ "values.c": [+ "1",+ 1+ ]+ },+ "_meta": {+ "title": "Repeats needed"+ }+ },+ "8": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": 0,+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Head (first crossfade seconds)"+ }+ },+ "9": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "0 - a",+ "values.a": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "-crossfade (from the end)"+ }+ },+ "10": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "9",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Tail (last crossfade seconds)"+ }+ },+ "11": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - 2 * b",+ "values.a": [+ "1",+ 1+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Body length"+ }+ },+ "12": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "5",+ 0+ ],+ "duration": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Body (between head and tail)"+ }+ },+ "13": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "10",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Tail fading out"+ }+ },+ "14": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "8",+ 0+ ],+ "audio2": [+ "4",+ 0+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Head fading in"+ }+ },+ "15": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "13",+ 0+ ],+ "audio2": [+ "14",+ 0+ ],+ "merge_method": "add"+ },+ "_meta": {+ "title": "Seam: tail into head"+ }+ },+ "16": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "12",+ 0+ ],+ "audio2": [+ "15",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "One repeat = body + seam"+ }+ },+ "20": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "simple",+ "mode.num_iterations": [+ "7",+ 1+ ],+ "cache_iterations": false,+ "initial_iteration_value": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Append one repeat per pass (starts from the head)"+ }+ },+ "21": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "20",+ 4+ ],+ "audio2": [+ "16",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Bed so far + one repeat"+ }+ },+ "22": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": false,+ "output_value": [+ "21",+ 0+ ],+ "next_iteration_value": [+ "21",+ 0+ ]+ },+ "_meta": {+ "title": "The looped bed"+ }+ },+ "23": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "22",+ 0+ ],+ "start_index": 0,+ "duration": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Cut to the requested length"+ }+ },+ "24": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - b",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Start of the final fade"+ }+ },+ "25": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "23",+ 0+ ],+ "start_index": 0,+ "duration": [+ "24",+ 0+ ]+ },+ "_meta": {+ "title": "All but the ending"+ }+ },+ "26": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "23",+ 0+ ],+ "start_index": [+ "9",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Ending"+ }+ },+ "27": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "26",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Ending fades out"+ }+ },+ "28": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "25",+ 0+ ],+ "audio2": [+ "27",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Finished bed"+ }+ },+ "29": {+ "class_type": "SaveAudio",+ "inputs": {+ "audio": [+ "28",+ 0+ ],+ "filename_prefix": "fuobe/audio-loop"+ },+ "_meta": {+ "title": "Save (FLAC)"+ }+ }+}diff --git a/scripts/comfy/hand-built/image-to-splat-triposplat.json b/scripts/comfy/hand-built/image-to-splat-triposplat.jsonnew file mode 100644index 00000000..0ec6c603--- /dev/null+++ b/scripts/comfy/hand-built/image-to-splat-triposplat.json@@ -0,0 +1,332 @@+{+ "41": {+ "inputs": {+ "fps": 25,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264",+ "images": [+ "75",+ 0+ ]+ },+ "class_type": "CreateVideo",+ "_meta": {+ "title": "Create Video"+ }+ },+ "42": {+ "inputs": {+ "filename_prefix": "fuobe/splat-orbit",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "41",+ 0+ ]+ },+ "class_type": "SaveVideo",+ "_meta": {+ "title": "Save Video"+ }+ },+ "51": {+ "inputs": {+ "filename_prefix": "fuobe/splat",+ "mesh": [+ "92",+ 0+ ]+ },+ "class_type": "SaveGLB",+ "_meta": {+ "title": "Save 3D Model"+ }+ },+ "75": {+ "inputs": {+ "width": 1024,+ "height": 1024,+ "frames": 75,+ "splat_scale": 1,+ "sharpen": 2,+ "headlight_shading": 0,+ "opacity_threshold": 0,+ "render_style": "color",+ "background": "#848484",+ "splat": [+ "88:55",+ 0+ ],+ "camera_info": [+ "79",+ 0+ ]+ },+ "class_type": "RenderSplat",+ "_meta": {+ "title": "Render Splat"+ }+ },+ "79": {+ "inputs": {+ "mode": "orbit",+ "mode.yaw": 35,+ "mode.pitch": 30,+ "mode.distance": 2.5,+ "target_x": 0,+ "target_y": 0,+ "target_z": 0,+ "roll": 0,+ "fov": 35,+ "zoom": 1,+ "camera_type": "perspective"+ },+ "class_type": "CreateCameraInfo",+ "_meta": {+ "title": "Create Camera Info"+ }+ },+ "92": {+ "inputs": {+ "format": "spz",+ "splat": [+ "88:55",+ 0+ ]+ },+ "class_type": "SplatToFile3D",+ "_meta": {+ "title": "Create 3D File (from Splat)"+ }+ },+ "99": {+ "inputs": {+ "image": "subject.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Load Image"+ }+ },+ "88:24": {+ "inputs": {+ "clip_vision": [+ "88:7",+ 0+ ],+ "vae": [+ "88:8",+ 0+ ],+ "image": [+ "88:2",+ 0+ ]+ },+ "class_type": "TripoSplatConditioning",+ "_meta": {+ "title": "TripoSplat Conditioning"+ }+ },+ "88:6": {+ "inputs": {+ "seed": 46,+ "steps": 20,+ "cfg": 3,+ "sampler_name": "dpmpp_2m",+ "scheduler": "simple",+ "denoise": 1,+ "model": [+ "88:96",+ 0+ ],+ "positive": [+ "88:24",+ 0+ ],+ "negative": [+ "88:24",+ 1+ ],+ "latent_image": [+ "88:24",+ 2+ ]+ },+ "class_type": "KSampler",+ "_meta": {+ "title": "KSampler"+ }+ },+ "88:35": {+ "inputs": {+ "switch": true,+ "on_false": [+ "88:95",+ 0+ ],+ "on_true": [+ "88:85:81",+ 0+ ]+ },+ "class_type": "ComfySwitchNode",+ "_meta": {+ "title": "Switch: Mask Source"+ }+ },+ "88:2": {+ "inputs": {+ "erode_radius": 1,+ "size": 1024,+ "image": [+ "99",+ 0+ ],+ "mask": [+ "88:35",+ 0+ ]+ },+ "class_type": "TripoSplatPreprocessImage",+ "_meta": {+ "title": "TripoSplat Preprocess Image"+ }+ },+ "88:7": {+ "inputs": {+ "clip_name": "dino_v3_vit_h.safetensors"+ },+ "class_type": "CLIPVisionLoader",+ "_meta": {+ "title": "Load CLIP Vision"+ }+ },+ "88:11": {+ "inputs": {+ "vae_name": "triposplat_vae_decoder_fp16.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "88:8": {+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "88:55": {+ "inputs": {+ "num_gaussians": 262144,+ "seed": 790219963981395,+ "samples": [+ "88:6",+ 0+ ],+ "vae": [+ "88:11",+ 0+ ]+ },+ "class_type": "VAEDecodeTripoSplat",+ "_meta": {+ "title": "TripoSplat Decode"+ }+ },+ "88:85:81": {+ "inputs": {+ "bg_removal_model": [+ "88:85:82",+ 0+ ],+ "image": [+ "99",+ 0+ ]+ },+ "class_type": "RemoveBackground",+ "_meta": {+ "title": "Remove Background"+ }+ },+ "88:85:82": {+ "inputs": {+ "bg_removal_name": "birefnet.safetensors"+ },+ "class_type": "LoadBackgroundRemovalModel",+ "_meta": {+ "title": "Load Background Removal Model"+ }+ },+ "88:85:83": {+ "inputs": {+ "mask": [+ "88:85:81",+ 0+ ]+ },+ "class_type": "InvertMask",+ "_meta": {+ "title": "Invert Mask"+ }+ },+ "88:85:84": {+ "inputs": {+ "image": [+ "99",+ 0+ ],+ "alpha": [+ "88:85:83",+ 0+ ]+ },+ "class_type": "JoinImageWithAlpha",+ "_meta": {+ "title": "Join Image with Alpha"+ }+ },+ "88:95": {+ "inputs": {+ "mask": [+ "99",+ 1+ ]+ },+ "class_type": "InvertMask",+ "_meta": {+ "title": "Invert Mask"+ }+ },+ "88:16": {+ "inputs": {+ "unet_name": "triposplat_fp16.safetensors",+ "weight_dtype": "default"+ },+ "class_type": "UNETLoader",+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "88:96": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": false,+ "on_false": [+ "88:16",+ 0+ ],+ "on_true": [+ "88:16",+ 0+ ]+ }+ }+}diff --git a/scripts/comfy/hand-built/kenburns-still.json b/scripts/comfy/hand-built/kenburns-still.jsonnew file mode 100644index 00000000..f6e96c95--- /dev/null+++ b/scripts/comfy/hand-built/kenburns-still.json@@ -0,0 +1,577 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "still.png"+ },+ "_meta": {+ "title": "Still (image)"+ }+ },+ "2": {+ "class_type": "ImageScaleBy",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "lanczos",+ "scale_by": 2+ },+ "_meta": {+ "title": "Supersample the still (supersample): finer crop steps"+ }+ },+ "3": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 1280+ },+ "_meta": {+ "title": "Output width (width)"+ }+ },+ "5": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 720+ },+ "_meta": {+ "title": "Output height (height)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 5+ },+ "_meta": {+ "title": "Seconds (duration)"+ }+ },+ "7": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per second (fps)"+ }+ },+ "8": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 2)",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Frame count = duration x fps"+ }+ },+ "9": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Zoom at the start (zoomStart; 1 = the widest crop)"+ }+ },+ "10": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1.25+ },+ "_meta": {+ "title": "Zoom at the end (zoomEnd)"+ }+ },+ "11": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.5+ },+ "_meta": {+ "title": "Centre x at the start, 0-1 (panStartX)"+ }+ },+ "12": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.5+ },+ "_meta": {+ "title": "Centre y at the start, 0-1 (panStartY)"+ }+ },+ "13": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.6+ },+ "_meta": {+ "title": "Centre x at the end, 0-1 (panEndX)"+ }+ },+ "14": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.45+ },+ "_meta": {+ "title": "Centre y at the end, 0-1 (panEndY)"+ }+ },+ "15": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a, b * c / d)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "3",+ 1+ ],+ "values.c": [+ "4",+ 0+ ],+ "values.d": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Widest crop with the output's shape: width"+ }+ },+ "16": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(b, a * d / c)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "3",+ 1+ ],+ "values.c": [+ "4",+ 0+ ],+ "values.d": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Widest crop with the output's shape: height"+ }+ },+ "17": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per encoded chunk (chunkFrames)"+ }+ },+ "18": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "ceil(a / b)",+ "values.a": [+ "8",+ 1+ ],+ "values.b": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Chunk count"+ }+ },+ "19": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Easing (easeInOut): 1 = ease in-out, 0 = linear"+ }+ },+ "20": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "For",+ "mode.start_iteration_index": [+ "41",+ 1+ ],+ "mode.max_iteration": [+ "42",+ 1+ ],+ "mode.step": 1,+ "cache_iterations": false,+ "parent_iteration": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "One pass per frame of the chunk"+ }+ },+ "21": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "(1 - c) * a / max(b - 1, 1) + c * (1 - cos(3.141592653589793 * a / max(b - 1, 1))) / 2",+ "values.a": [+ "20",+ 0+ ],+ "values.b": [+ "8",+ 1+ ],+ "values.c": [+ "19",+ 0+ ]+ },+ "_meta": {+ "title": "Progress 0..1 (linear, eased or a blend)"+ }+ },+ "22": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a + (b - a) * c",+ "values.a": [+ "9",+ 0+ ],+ "values.b": [+ "10",+ 0+ ],+ "values.c": [+ "21",+ 0+ ]+ },+ "_meta": {+ "title": "Zoom of this frame"+ }+ },+ "23": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "15",+ 0+ ],+ "values.b": [+ "22",+ 0+ ]+ },+ "_meta": {+ "title": "Crop width"+ }+ },+ "24": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "16",+ 0+ ],+ "values.b": [+ "22",+ 0+ ]+ },+ "_meta": {+ "title": "Crop height"+ }+ },+ "25": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(max((a + (b - a) * c) * d - e / 2, 0), d - e)",+ "values.a": [+ "11",+ 0+ ],+ "values.b": [+ "13",+ 0+ ],+ "values.c": [+ "21",+ 0+ ],+ "values.d": [+ "3",+ 0+ ],+ "values.e": [+ "23",+ 1+ ]+ },+ "_meta": {+ "title": "Crop left"+ }+ },+ "26": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(max((a + (b - a) * c) * d - e / 2, 0), d - e)",+ "values.a": [+ "12",+ 0+ ],+ "values.b": [+ "14",+ 0+ ],+ "values.c": [+ "21",+ 0+ ],+ "values.d": [+ "3",+ 1+ ],+ "values.e": [+ "24",+ 1+ ]+ },+ "_meta": {+ "title": "Crop top"+ }+ },+ "27": {+ "class_type": "ImageCrop",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "width": [+ "23",+ 1+ ],+ "height": [+ "24",+ 1+ ],+ "x": [+ "25",+ 1+ ],+ "y": [+ "26",+ 1+ ]+ },+ "_meta": {+ "title": "Crop this frame"+ }+ },+ "28": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "27",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "4",+ 0+ ],+ "height": [+ "5",+ 0+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "To the output size"+ }+ },+ "29": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": true,+ "output_value": [+ "28",+ 0+ ]+ },+ "_meta": {+ "title": "The chunk's frames"+ }+ },+ "30": {+ "class_type": "RebatchImages",+ "inputs": {+ "images": [+ "29",+ 0+ ],+ "batch_size": 4096+ },+ "_meta": {+ "title": "As one batch"+ }+ },+ "31": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "30",+ 0+ ],+ "fps": [+ "7",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Encode the chunk now (its frames can leave memory)"+ }+ },+ "32": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "44",+ 0+ ],+ "filename_prefix": "fuobe/kenburns-still",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "For",+ "mode.start_iteration_index": 0,+ "mode.max_iteration": [+ "18",+ 1+ ],+ "mode.step": 1,+ "cache_iterations": false+ },+ "_meta": {+ "title": "One pass per chunk"+ }+ },+ "41": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a * b",+ "values.a": [+ "40",+ 0+ ],+ "values.b": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "First frame of this chunk"+ }+ },+ "42": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a * b + b, c)",+ "values.a": [+ "40",+ 0+ ],+ "values.b": [+ "17",+ 0+ ],+ "values.c": [+ "8",+ 1+ ]+ },+ "_meta": {+ "title": "End of this chunk (exclusive)"+ }+ },+ "43": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": true,+ "output_value": [+ "31",+ 0+ ]+ },+ "_meta": {+ "title": "The encoded chunks"+ }+ },+ "44": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "43",+ 0+ ],+ "codec": "auto"+ },+ "_meta": {+ "title": "Chunks in order"+ }+ }+}diff --git a/scripts/comfy/hand-built/ocr-lines-qwen35.json b/scripts/comfy/hand-built/ocr-lines-qwen35.jsonnew file mode 100644index 00000000..98c9c72e--- /dev/null+++ b/scripts/comfy/hand-built/ocr-lines-qwen35.json@@ -0,0 +1,112 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "poster.png"+ },+ "_meta": {+ "title": "Image to read (image)"+ }+ },+ "2": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "area",+ "largest_size": 1280+ },+ "_meta": {+ "title": "Longest side the model sees (maxSize; 1280 keeps small print legible)"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "ovisocr3_0.8b_bf16.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "OCR model (checkpoint: ovisocr3_0.8b_bf16 default, or qwen3.5_0.8b / 2b / 4b_bf16)"+ }+ },+ "4": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "prompt": "Locate and transcribe every readable line of text in the image. Return a single JSON array in natural reading order.\n\nEach element follows this schema:\n`{\"bbox\": [x_min, y_min, x_max, y_max], \"text\": \"string\"}`\n\nRules:\n1. Use line-level annotations. Each element must represent exactly one visible line of text; keep the words of one line together and do not merge separate lines.\n2. The bbox coordinates are integers scaled to [0, 1000).\n3. Each bbox must tightly enclose its line.\n4. Preserve the original text exactly without translation, paraphrasing, correction, or completion.\n5. Output strictly valid JSON only. Do not output Markdown, explanations, or code fences.",+ "image": [+ "2",+ 0+ ],+ "max_length": 2048,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true+ },+ "_meta": {+ "title": "Read every text line with its box (instruction)"+ }+ },+ "5": {+ "class_type": "SaveText",+ "inputs": {+ "text": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/ocr-lines",+ "format": "json"+ },+ "_meta": {+ "title": "Lines + boxes as JSON text: [{\"bbox\":[x0,y0,x1,y1] in 0-1000, \"text\":\"...\"}]"+ }+ },+ "6": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Size the model saw"+ }+ },+ "7": {+ "class_type": "StringFormat",+ "inputs": {+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "6",+ 1+ ],+ "f_string": "{{\"width\": {a}, \"height\": {b}, \"coords\": \"relative-1000\"}}"+ },+ "_meta": {+ "title": "Frame of reference"+ }+ },+ "8": {+ "class_type": "PreviewAny",+ "inputs": {+ "source": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Size (text)"+ }+ }+}diff --git a/scripts/comfy/hand-built/reference-brief-gemma4.json b/scripts/comfy/hand-built/reference-brief-gemma4.jsonnew file mode 100644index 00000000..51892642--- /dev/null+++ b/scripts/comfy/hand-built/reference-brief-gemma4.json@@ -0,0 +1,76 @@+{+ "1": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "reference.mp4",+ "force_rate": 24,+ "custom_width": 384,+ "custom_height": 0,+ "frame_load_cap": 720,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Reference clip at 24 fps (video; frames = frame cap, startFrame, frameWidth px wide)"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "gemma4_e4b_it_fp8_scaled.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Gemma 4 E4B (checkpoint)"+ }+ },+ "3": {+ "class_type": "TextGenerate",+ "inputs": {+ "prompt": "You are given a short-form reference video (frames at 1 fps plus its soundtrack). Write a reusable style brief for a new faceless video in the same style. Return strict JSON with keys: format (e.g. 'what if' explainer), hook (first 3 s), pacing (average shot length in seconds), shots (list of {seconds, visual, camera, on_screen_text}), visual_style (medium, palette, lighting, texture), animation_style (one of 'Fully animated', 'Frame by frame', 'Scene by scene video', 'Seamless motion video'), narration (voice, tone, words per minute, language), music (genre, energy), captions (style, position), and topic_ideas (5). Describe style only; never copy the reference's people, logos or exact words.",+ "max_length": 2048,+ "sampling_mode": "on",+ "sampling_mode.temperature": 0.3,+ "sampling_mode.top_k": 64,+ "sampling_mode.top_p": 0.95,+ "sampling_mode.min_p": 0.05,+ "sampling_mode.repetition_penalty": 1.05,+ "sampling_mode.seed": 0,+ "sampling_mode.presence_penalty": 0,+ "thinking": false,+ "use_default_template": true,+ "mtp": "auto",+ "clip": [+ "2",+ 0+ ],+ "audio": [+ "1",+ 2+ ],+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Style brief as JSON (instruction, maxTokens)"+ }+ },+ "4": {+ "class_type": "SaveText",+ "inputs": {+ "text": [+ "3",+ 0+ ],+ "filename_prefix": "fuobe/reference-brief",+ "format": "txt"+ },+ "_meta": {+ "title": "Save the brief"+ }+ }+}diff --git a/scripts/comfy/hand-built/scene-mesh-moge.json b/scripts/comfy/hand-built/scene-mesh-moge.jsonnew file mode 100644index 00000000..d5c45381--- /dev/null+++ b/scripts/comfy/hand-built/scene-mesh-moge.json@@ -0,0 +1,155 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "scene.png"+ },+ "_meta": {+ "title": "Photo of the scene (image)"+ }+ },+ "2": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Its size"+ }+ },+ "3": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a > 2048",+ "values.a": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Longer than 2048 px?"+ }+ },+ "4": {+ "class_type": "ResizeImagesByLongerEdge",+ "inputs": {+ "longer_edge": 2048,+ "images": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Longer edge to 2048"+ }+ },+ "5": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "3",+ 2+ ],+ "on_false": [+ "1",+ 0+ ],+ "on_true": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Resized only when needed"+ }+ },+ "6": {+ "class_type": "LoadMoGeModel",+ "inputs": {+ "model_name": "moge_2_vitl_normal_fp16.safetensors"+ },+ "_meta": {+ "title": "MoGe model (checkpoint)"+ }+ },+ "7": {+ "class_type": "MoGeInference",+ "inputs": {+ "resolution_level": 9,+ "fov_x_degrees": 0,+ "batch_size": 4,+ "force_projection": true,+ "apply_mask": true,+ "refine_steps": 3,+ "moge_model": [+ "6",+ 0+ ],+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Point map, depth, camera (resolutionLevel, fovX: 0 = estimate)"+ }+ },+ "8": {+ "class_type": "MoGePointMapToMesh",+ "inputs": {+ "batch_index": 0,+ "decimation": 1,+ "discontinuity_threshold": 0.04,+ "texture": true,+ "moge_geometry": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Textured mesh of the whole frame (decimation)"+ }+ },+ "9": {+ "class_type": "SaveGLB",+ "inputs": {+ "filename_prefix": "fuobe/scene-mesh",+ "mesh": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Scene GLB"+ }+ },+ "10": {+ "class_type": "MoGeRender",+ "inputs": {+ "output": "depth",+ "moge_geometry": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Depth render"+ }+ },+ "11": {+ "class_type": "SaveImage",+ "inputs": {+ "filename_prefix": "fuobe/scene-depth",+ "images": [+ "10",+ 0+ ]+ },+ "_meta": {+ "title": "Depth PNG"+ }+ }+}diff --git a/scripts/comfy/hand-built/still-to-clip.json b/scripts/comfy/hand-built/still-to-clip.jsonnew file mode 100644index 00000000..a965aab4--- /dev/null+++ b/scripts/comfy/hand-built/still-to-clip.json@@ -0,0 +1,131 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "card.png"+ },+ "_meta": {+ "title": "Still or end card (image)"+ }+ },+ "2": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 1280,+ "height": 720,+ "crop": "center"+ },+ "_meta": {+ "title": "To the clip size (width, height; centre crop)"+ }+ },+ "3": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 3+ },+ "_meta": {+ "title": "Seconds (duration)"+ }+ },+ "4": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per second (fps)"+ }+ },+ "5": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 1)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Frame count"+ }+ },+ "6": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "amount": [+ "5",+ 1+ ]+ },+ "_meta": {+ "title": "Hold the still"+ }+ },+ "7": {+ "class_type": "EmptyAudio",+ "inputs": {+ "duration": [+ "3",+ 0+ ],+ "sample_rate": 44100,+ "channels": 2+ },+ "_meta": {+ "title": "Silent soundtrack (so joins and players see an audio track)"+ }+ },+ "8": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "fps": [+ "4",+ 0+ ],+ "audio": [+ "7",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Clip (encoded right away)"+ }+ },+ "9": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "8",+ 0+ ],+ "filename_prefix": "fuobe/still-to-clip",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-append-endcard.json b/scripts/comfy/hand-built/video-append-endcard.jsonnew file mode 100644index 00000000..2d1bc66c--- /dev/null+++ b/scripts/comfy/hand-built/video-append-endcard.json@@ -0,0 +1,207 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "clip.mp4"+ },+ "_meta": {+ "title": "The ad (video; its picture is copied, not re-encoded, when compatible)"+ }+ },+ "2": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "clip.mp4"+ },+ "_meta": {+ "title": "Its soundtrack (the same upload; drop for silent clips)"+ }+ },+ "3": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "card.png"+ },+ "_meta": {+ "title": "End card, e.g. the logo on the brand colour (image)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 1280+ },+ "_meta": {+ "title": "Clip width (width; from the clip's header)"+ }+ },+ "5": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 720+ },+ "_meta": {+ "title": "Clip height (height)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Clip frame rate (fps)"+ }+ },+ "7": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 2+ },+ "_meta": {+ "title": "End card seconds (duration)"+ }+ },+ "8": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "3",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "4",+ 0+ ],+ "height": [+ "5",+ 0+ ],+ "crop": "center"+ },+ "_meta": {+ "title": "Card at the clip's size"+ }+ },+ "9": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 1)",+ "values.a": [+ "7",+ 0+ ],+ "values.b": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Card frames"+ }+ },+ "10": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "amount": [+ "9",+ 1+ ]+ },+ "_meta": {+ "title": "Hold the card"+ }+ },+ "11": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "10",+ 0+ ],+ "fps": [+ "6",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Card clip (H.264, like the ad)"+ }+ },+ "12": {+ "class_type": "EmptyAudio",+ "inputs": {+ "duration": [+ "7",+ 0+ ],+ "sample_rate": 44100,+ "channels": 2+ },+ "_meta": {+ "title": "Silence under the card"+ }+ },+ "13": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "2",+ 0+ ],+ "audio2": [+ "12",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Ad sound, then silence"+ }+ },+ "14": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "1",+ 0+ ],+ "videos.video1": [+ "11",+ 0+ ],+ "codec": "auto",+ "complete_audio": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Ad + end card with the ad's sound"+ }+ },+ "15": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "14",+ 0+ ],+ "filename_prefix": "fuobe/video-append-endcard",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-erase-void.json b/scripts/comfy/hand-built/video-erase-void.jsonnew file mode 100644index 00000000..868be735--- /dev/null+++ b/scripts/comfy/hand-built/video-erase-void.json@@ -0,0 +1,599 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 45+ },+ "_meta": {+ "title": "Frames to process (frames; rounded down so (frames-1)/4+1 is even, e.g. 45, 53, 61 ... 197)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 672,+ "height": 384,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; VOID trained at 672x384, multiples of 8)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the person",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 8,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask (maskGrow, px)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "t5xxl_fp16.safetensors",+ "type": "cogvideox",+ "device": "default"+ },+ "_meta": {+ "title": "T5-XXL"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty snowy mountain slope under a clear sky.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after removal (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "cogvideox_vae.safetensors"+ },+ "_meta": {+ "title": "CogVideoX VAE"+ }+ },+ "19": {+ "class_type": "VOIDInpaintConditioning",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "video": [+ "6",+ 0+ ],+ "quadmask": [+ "11",+ 0+ ],+ "width": 672,+ "height": 384,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1+ },+ "_meta": {+ "title": "VOID conditioning (mask 1 = remove)"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "void_pass1.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "VOID pass 1"+ }+ },+ "21": {+ "class_type": "CFGGuider",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "cfg": 6+ },+ "_meta": {+ "title": "Guidance (cfg)"+ }+ },+ "22": {+ "class_type": "BasicScheduler",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "scheduler": "simple",+ "steps": 30,+ "denoise": 1+ },+ "_meta": {+ "title": "Steps (steps)"+ }+ },+ "23": {+ "class_type": "VOIDSampler",+ "inputs": {},+ "_meta": {+ "title": "VOID DDIM"+ }+ },+ "24": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 0+ },+ "_meta": {+ "title": "Seed (seed)"+ }+ },+ "25": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "24",+ 0+ ],+ "guider": [+ "21",+ 0+ ],+ "sampler": [+ "23",+ 0+ ],+ "sigmas": [+ "22",+ 0+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Pass 1"+ }+ },+ "26": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "25",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 1 frames"+ }+ },+ "40": {+ "class_type": "OpticalFlowLoader",+ "inputs": {+ "model_name": "raft_large_C_T_SKHT_V2-ff5fadd5.safetensors"+ },+ "_meta": {+ "title": "RAFT optical flow"+ }+ },+ "41": {+ "class_type": "VOIDWarpedNoise",+ "inputs": {+ "optical_flow": [+ "40",+ 0+ ],+ "video": [+ "26",+ 0+ ],+ "width": 672,+ "height": 384,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1+ },+ "_meta": {+ "title": "Noise warped along pass 1's motion"+ }+ },+ "42": {+ "class_type": "VOIDWarpedNoiseSource",+ "inputs": {+ "warped_noise": [+ "41",+ 0+ ]+ },+ "_meta": {+ "title": "Warped noise"+ }+ },+ "43": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "void_pass2.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "VOID pass 2"+ }+ },+ "44": {+ "class_type": "CFGGuider",+ "inputs": {+ "model": [+ "43",+ 0+ ],+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "cfg": 6+ },+ "_meta": {+ "title": "Pass 2 guidance"+ }+ },+ "45": {+ "class_type": "BasicScheduler",+ "inputs": {+ "model": [+ "43",+ 0+ ],+ "scheduler": "simple",+ "steps": 30,+ "denoise": 1+ },+ "_meta": {+ "title": "Pass 2 steps"+ }+ },+ "46": {+ "class_type": "VOIDSampler",+ "inputs": {},+ "_meta": {+ "title": "VOID DDIM"+ }+ },+ "47": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "42",+ 0+ ],+ "guider": [+ "44",+ 0+ ],+ "sampler": [+ "46",+ 0+ ],+ "sigmas": [+ "45",+ 0+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Pass 2 (temporal refinement)"+ }+ },+ "48": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "47",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 2 frames"+ }+ },+ "49": {+ "class_type": "PrimitiveBoolean",+ "inputs": {+ "value": false+ },+ "_meta": {+ "title": "Skip pass 2 (skipPass2: halves the time; pass 1 suffices for most clips)"+ }+ },+ "50": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "49",+ 0+ ],+ "on_true": [+ "26",+ 0+ ],+ "on_false": [+ "48",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 1 or pass 2"+ }+ },+ "51": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "50",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "52": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "51",+ 0+ ],+ "filename_prefix": "fuobe/video-erase-void",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-export-exr.json b/scripts/comfy/hand-built/video-export-exr.jsonnew file mode 100644index 00000000..256ca1b7--- /dev/null+++ b/scripts/comfy/hand-built/video-export-exr.json@@ -0,0 +1,39 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames"+ }+ },+ "3": {+ "class_type": "SaveImageAdvanced",+ "inputs": {+ "images": [+ "2",+ 0+ ],+ "filename_prefix": "fuobe/video-export-exr",+ "format": "exr",+ "format.bit_depth": "16-bit float",+ "format.input_color_space": "sRGB"+ },+ "_meta": {+ "title": "OpenEXR frames (scene-linear, half float)"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-export-pro.json b/scripts/comfy/hand-built/video-export-pro.jsonnew file mode 100644index 00000000..685bbc40--- /dev/null+++ b/scripts/comfy/hand-built/video-export-pro.json@@ -0,0 +1,49 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "2",+ 0+ ],+ "audio": [+ "2",+ 1+ ],+ "frame_rate": [+ "2",+ 2+ ],+ "loop_count": 0,+ "filename_prefix": "fuobe/video-export-pro",+ "format": "video/ProRes",+ "profile": "hq",+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Pro codec (format: video/ProRes | video/h265-mp4 | video/ffv1-mkv | video/16bit-png; profile for ProRes)"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-inpaint-wan-vace-painted.json b/scripts/comfy/hand-built/video-inpaint-wan-vace-painted.jsonnew file mode 100644index 00000000..09d26439--- /dev/null+++ b/scripts/comfy/hand-built/video-inpaint-wan-vace-painted.json@@ -0,0 +1,632 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "initial_mask": [+ "73",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track the painted object"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty street with parked cars and trees, natural daylight.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-inpaint-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ },+ "70": {+ "class_type": "LoadImageMask",+ "inputs": {+ "image": "mask.png",+ "channel": "red"+ },+ "_meta": {+ "title": "Mask painted on the first frame (mask; white = the object, black = keep)"+ }+ },+ "71": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "70",+ 0+ ]+ },+ "_meta": {+ "title": "Mask as image"+ }+ },+ "72": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "71",+ 0+ ],+ "upscale_method": "bilinear",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "At the work size"+ }+ },+ "73": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "72",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "First-frame mask"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-inpaint-wan-vace.json b/scripts/comfy/hand-built/video-inpaint-wan-vace.jsonnew file mode 100644index 00000000..9eac2fb4--- /dev/null+++ b/scripts/comfy/hand-built/video-inpaint-wan-vace.json@@ -0,0 +1,594 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the person walking on the left",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty street with parked cars and trees, natural daylight.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-inpaint-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-insert-wan-vace.json b/scripts/comfy/hand-built/video-insert-wan-vace.jsonnew file mode 100644index 00000000..8b9c88a6--- /dev/null+++ b/scripts/comfy/hand-built/video-insert-wan-vace.json@@ -0,0 +1,616 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "10": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "74",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Per-frame masks"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "The red sports car from the reference drives down the street.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ],+ "reference_image": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-insert-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "reference.png"+ },+ "_meta": {+ "title": "What to put in (image: object, product or character on a plain background)"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ },+ "70": {+ "class_type": "LoadImageMask",+ "inputs": {+ "image": "mask.png",+ "channel": "red"+ },+ "_meta": {+ "title": "Region to fill (mask; white = where the object goes, black = keep)"+ }+ },+ "71": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "70",+ 0+ ]+ },+ "_meta": {+ "title": "Mask as image"+ }+ },+ "72": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "71",+ 0+ ],+ "upscale_method": "bilinear",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "At the work size"+ }+ },+ "74": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "72",+ 0+ ],+ "amount": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Same region in every frame"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-sdr-to-hdr.json b/scripts/comfy/hand-built/video-sdr-to-hdr.jsonnew file mode 100644index 00000000..7ad61797--- /dev/null+++ b/scripts/comfy/hand-built/video-sdr-to-hdr.json@@ -0,0 +1,76 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "SDR video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "ImageSDRToHDR",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "algorithm": "lottes",+ "algorithm.target_luminance": 650+ },+ "_meta": {+ "title": "Expand to Rec.2020 HLG (strength: target peak nits)"+ }+ },+ "4": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "3",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "2",+ 1+ ],+ "bit_depth": 10,+ "color_space": "HDR",+ "codec": "h264"+ },+ "_meta": {+ "title": "10-bit HLG"+ }+ },+ "5": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/video-sdr-to-hdr",+ "format": "mp4",+ "format.codec": "h264",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save HDR MP4"+ }+ }+}diff --git a/scripts/comfy/hand-built/video-swap-wan-vace.json b/scripts/comfy/hand-built/video-swap-wan-vace.jsonnew file mode 100644index 00000000..4d660931--- /dev/null+++ b/scripts/comfy/hand-built/video-swap-wan-vace.json@@ -0,0 +1,607 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the car",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "The red sports car from the reference drives down the street.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ],+ "reference_image": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-swap-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "reference.png"+ },+ "_meta": {+ "title": "What to put in (image: object, product or character on a plain background)"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex d64dc21c..2fb78064 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -56,11 +56,33 @@// gridPrompt, sheetPrompt (contact-sheet / turnaround framing text placed before the prompt)// Keys added with the av-tools workflows (Wave B):// frameIndex (Extract frame: which frame of the Trim Video window, -1 = its last, 0 = its first)+// Keys added with the comfyui-oss-4 workflows (docs/research/comfyui-oss-4.md). * = the provider fills it from the+// canonical request (params.*), the rest are model sliders/controls (params.extra[key]):+// maskPrompt* (SAM 3.1 text prompt: what to remove / replace in a video)+// maskGrow (px the tracked mask is grown by: covers edges and contact shadows)+// skipPass2 (VOID: pass 1 only, half the time)+// zoomStart*, zoomEnd* (Ken Burns zoom, 1 = the widest crop with the output's shape: params.zoomFrom / zoomTo)+// panStartX*, panStartY*, panEndX*, panEndY* (Ken Burns crop centre, 0-1 of the still: params.panFrom / panTo {x, y})+// easeInOut* (Ken Burns: 1 = ease in-out, 0 = linear: params.easing)+// supersample, chunkFrames (Ken Burns: still upscale before cropping, frames per encoded chunk)+// crossfade*, headroomDb (audio loop / join: crossfade seconds; dB taken off before the seams are summed)+// fadeCurve* (audio loop / join: the crossfade curve WAV the provider writes and uploads)+// format*, profile* (VideoHelperSuite format and ProRes profile: params.format)+// peakNits (SDR to HDR: target peak white)+// resolutionLevel, fovX, decimation (MoGe: inference detail 0-9, horizontal field of view in degrees (0 = estimate), mesh decimation)+// cutout, numGaussians, splatFormat (TripoSplat: BiRefNet cut-out on/off, number of Gaussians, ply | ksplat | spz)+// orbitFrames (TripoSplat orbit preview length in frames)+// frameWidth (reference brief: width the clip's frames are scaled to, px)// Output fields beyond {node, kind}: stem ("voice" | "background"), role ("cues" | "transcript" | "language" |-// "sheet" | "tiles" | "layers" | "first-frame" | "turntable"). Entry fields: worker "isolated" (needs its own ComfyUI,-// see README), expand "captions" (the provider writes one segment per caption cue before submitting).+// "sheet" | "tiles" | "layers" | "first-frame" | "turntable" | "lines" | "frame" | "frames" | "scene" | "depth" | "splat" |+// "brief"). Entry fields: worker "isolated" (needs its own ComfyUI, see README), expand "captions" (the provider writes one+// segment per caption cue before submitting).++import fs from 'node:fs';const b = (node, input) => ({ node, input });+// A literal input of a hand-built graph (instructions the provider writes back through defaults.instruction).+const handBuiltInput = (file, node, input) => JSON.parse(fs.readFileSync(new URL(file, import.meta.url), 'utf8'))[node].inputs[input];export const CUSTOM_NODE_REPOS = {'ComfyUI-WanVideoWrapper': 'https://github.com/kijai/ComfyUI-WanVideoWrapper',@@ -164,6 +186,24 @@ export const KNOWN_MODELS = {'trellis_2_texture_vae_bf16.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/Pixal3D/resolve/main/vae/trellis_2_texture_vae_bf16.safetensors' },'dino_v3_L_naf_fp32.safetensors': { folder: 'clip_vision', url: 'https://huggingface.co/Comfy-Org/Pixal3D/resolve/main/clip_vision/dino_v3_L_naf_fp32.safetensors' },'hunyuan_3d_v2.1.safetensors': { folder: 'checkpoints', url: 'https://huggingface.co/Comfy-Org/hunyuan3D_2.1_repackaged/resolve/main/hunyuan_3d_v2.1.safetensors' },+ // comfyui-oss-4 additions (docs/research/comfyui-oss-4.json). OvisOCR3 and Qwen3.5 0.8B are a single safetensors file+ // upstream (the URLs below): save them under these names. Qwen3.5 0.8B / 2B, VACE 1.3B and MoGe 3 are alternative checkpoints (bindings).+ 'ovisocr3_0.8b_bf16.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/ATH-MaaS/OvisOCR3/resolve/main/model.safetensors' },+ 'qwen3.5_0.8b_bf16.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/model.safetensors-00001-of-00001.safetensors' },+ 'qwen3.5_2b_bf16.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/Comfy-Org/Qwen3.5/resolve/main/text_encoders/qwen3.5_2b_bf16.safetensors' },+ 'wan2.1_vace_14B_fp16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors' },+ 'wan2.1_vace_1.3B_fp16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors' },+ 't5xxl_fp16.safetensors': { folder: 'text_encoders', url: 'https://huggingface.co/Comfy-Org/void-model/resolve/main/text_encoders/t5xxl_fp16.safetensors' },+ 'cogvideox_vae.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/void-model/resolve/main/vae/cogvideox_vae.safetensors' },+ 'void_pass1.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass1.safetensors' },+ 'void_pass2.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass2.safetensors' },+ 'raft_large_C_T_SKHT_V2-ff5fadd5.safetensors': { folder: 'optical_flow', url: 'https://huggingface.co/Comfy-Org/void-model/resolve/main/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors' },+ 'moge_2_vitl_normal_fp16.safetensors': { folder: 'geometry_estimation', url: 'https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_2_vitl_normal_fp16.safetensors' },+ 'moge_3_vitl_fp16.safetensors': { folder: 'geometry_estimation', url: 'https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitl_fp16.safetensors' },+ 'moge_3_vitg_fp16.safetensors': { folder: 'geometry_estimation', url: 'https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitg_fp16.safetensors' },+ 'dino_v3_vit_h.safetensors': { folder: 'clip_vision', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/clip_vision/dino_v3_vit_h.safetensors' },+ 'triposplat_vae_decoder_fp16.safetensors': { folder: 'vae', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/vae/triposplat_vae_decoder_fp16.safetensors' },+ 'triposplat_fp16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/diffusion_models/triposplat_fp16.safetensors' },};const WAN_NEG_EN =@@ -875,6 +915,15 @@ export const SPEC = [title: 'Wan 2.1 VACE 14B Reference to Video',capability: 'ref2v',export: 'video_wan_vace_14B_ref2v',+ transforms: [+ // The template's CausVid LoRA is CC-BY-NC-4.0 (tianweiy/CausVid): the Apache-2.0 lightx2v T2V 4-step LoRA replaces it,+ // with the sampler settings of the round-4 VACE graphs (docs/research/comfyui-oss-4.md, section b).+ { op: 'set', node: '115', input: 'lora_name', value: 'lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors' },+ { op: 'set', node: '115', input: 'strength_model', value: 1 },+ { op: 'set', node: '115', input: 'strength_clip', value: 0 },+ { op: 'set', node: '108', input: 'sampler_name', value: 'euler' },+ { op: 'set', node: '110', input: 'shift', value: 5 },+ ],bindings: {prompt: [b('105', 'text')],negativePrompt: [b('107', 'text')],@@ -887,11 +936,17 @@ export const SPEC = [steps: [b('108', 'steps')],cfg: [b('108', 'cfg')],shift: [b('110', 'shift')],+ loraStrength: [b('115', 'strength_model')],},outputs: [{ node: '69', kind: 'video' }],limits: { maxWidth: 1280, maxHeight: 1280, maxFrames: 121, dimensionMultiple: 16, frameStep: 4 },vramGb: 32,- notes: 'Subject/character reference (not a first frame): the reference appears in a newly composed scene. fp16 14B weights (34.7 GB) + CausVid LoRA at 0.3 for 4-step sampling. 24 GB cards need weight_dtype fp8_e4m3fn on node 113.',+ license: 'Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE)',+ notes:+ 'Subject/character reference (not a first frame): the reference appears in a newly composed scene. fp16 14B weights (34.7 GB) + the lightx2v T2V 4-step LoRA at 1.0: 4 steps, cfg 1, euler, shift 5 ' ++ '(loraStrength 0 + steps 20 + cfg 6 = the slow full-quality path). 24 GB cards need weight_dtype fp8_e4m3fn on node 113. ' ++ 'Changed in round 4: the template ships the CausVid LoRA (CC-BY-NC-4.0, non-commercial) at 0.3 with uni_pc and shift 8; it was swapped for the Apache-2.0 lightx2v LoRA ' ++ '(lightx2v/Wan2.1-T2V-14B-StepDistill-CfgDistill) with the settings of the round-4 VACE graphs. The lightx2v + VACE 14B pairing is inferred, not GPU-tested.',},{id: 'wan22-s2v-14b',@@ -2402,4 +2457,386 @@ export const SPEC = ['each loaded, cut, led in and added in turn, so the saved track is exactly as long as the video with every line at its cue time (pauses kept). ' +'SaveAudio writes FLAC (lossless, no MP3 priming delay). Feeds lip re-sync (InfiniteTalk frames = the track\'s length = the video\'s) and video-mux-audio. Runs on CPU.',},++ // =========================================================================+ // comfyui-oss-4 (round 4): docs/research/comfyui-oss-4.json, the 14 researched graphs and the critic's 3 (section i).+ // Graphs are the researcher's validated API graphs; changes are listed in each entry's notes. Capabilities are the+ // round-4 operations they serve.+ // =========================================================================++ // ---- Layers: text detection ----------------------------------------------------+ {+ id: 'ocr-lines-qwen35',+ title: 'Text lines with boxes for Layers: OvisOCR3 (Qwen3.5 0.8B OCR fine-tune) through core TextGenerate',+ capability: 'ocr',+ handBuilt: 'hand-built/ocr-lines-qwen35.json',+ bindings: {+ image: [b('1', 'image')], maxSize: [b('2', 'largest_size')], checkpoint: [b('3', 'clip_name')], instruction: [b('4', 'prompt')], maxTokens: [b('4', 'max_length')],+ },+ outputs: [{ node: '5', kind: 'text', role: 'lines' }, { node: '8', kind: 'text', role: 'frame' }],+ defaults: { checkpoint: 'ovisocr3_0.8b_bf16.safetensors', instruction: handBuiltInput('./hand-built/ocr-lines-qwen35.json', '4', 'prompt') },+ vramGb: 3,+ license: 'Apache-2.0 (OvisOCR3 weights by ATH-MaaS; the Qwen3.5 fallback checkpoints); ComfyUI core TextGenerate',+ notes:+ 'Output 1 (role lines, SaveText .json): a JSON array in reading order, [{"bbox":[x0,y0,x1,y1],"text":"..."}], one item per text line, box corners as integers RELATIVE 0-1000 of the image ' ++ '(checked against rendered ground truth: (60, 81) px in a 1024x768 poster came back as (62, 96)). App code must strip ``` / ```json fences, accept both bbox/text and bbox_2d/text_content ' ++ '(the general Qwen3.5 checkpoints answer that way), divide the corners by 1000 and turn them into OutputFile.meta.lines [{text, bbox:[x, y, w, h] normalised 0-1}] (OutputFile.text = the lines joined by newlines). ' ++ 'Output 2 (role frame, PreviewAny text): {"width", "height", "coords": "relative-1000"}, the size the model saw after the maxSize scaling. ' ++ 'instruction = defaults.instruction: OvisOCR3\'s prompts/word_spotting.txt changed from word to line level (use the original prompt for word boxes). Greedy decoding (sampling off): no seed. maxSize 1280 keeps small print legible. ' ++ 'checkpoint: ovisocr3_0.8b_bf16.safetensors (1.71 GB; upstream ATH-MaaS/OvisOCR3 model.safetensors, save it under this name), or qwen3.5_0.8b_bf16 (1.75 GB, Qwen/Qwen3.5-0.8B saved under that name), ' ++ 'qwen3.5_2b_bf16 (4.55 GB) or qwen3.5_4b_bf16 (9.32 GB, already in the library); the Qwen3.5 checkpoints wrap the JSON in fences, use bbox_2d/text_content and split lines more often. ' ++ 'Measured on the 4-core CPU server: OvisOCR3 161-194 s per poster (5/5 lines, mean IoU 0.82, also a 12-degree rotated sticker), Qwen3.5-0.8B 396 s (5/5) and 645 s on a busy poster (4/5); seconds on a GPU (inferred). ' ++ 'Tested on ComfyUI v0.41; v0.42 (#17121) writes the empty think block exactly as Qwen3.5\'s template.',+ },++ // ---- Edit video: remove, swap, insert ------------------------------------------------+ {+ id: 'video-inpaint-wan-vace',+ title: 'Remove an object from a video by naming it: SAM 3.1 tracking + Wan 2.1 VACE 14B fill (lightx2v 4-step)',+ capability: 'remove-object',+ handBuilt: 'hand-built/video-inpaint-wan-vace.json',+ bindings: {+ video: [b('1', 'file')], startFrame: [b('3', 'value')], frames: [b('4', 'value')], width: [b('6', 'width'), b('19', 'width')], height: [b('6', 'height'), b('19', 'height')],+ maskPrompt: [b('8', 'text')], maskGrow: [b('11', 'expand')], prompt: [b('16', 'text')], negativePrompt: [b('17', 'text')], checkpoint: [b('20', 'unet_name')],+ loraStrength: [b('21', 'strength_model')], shift: [b('22', 'shift')], seed: [b('23', 'seed')], steps: [b('23', 'steps')], cfg: [b('23', 'cfg')],+ },+ outputs: [{ node: '38', kind: 'video' }],+ defaults: { checkpoint: 'wan2.1_vace_14B_fp16.safetensors' },+ limits: { maxWidth: 1280, maxHeight: 1280, maxFrames: 81, dimensionMultiple: 16, frameStep: 4 },+ vramGb: 24,+ license: 'Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)',+ notes:+ 'maskPrompt = what to remove (SAM 3.1 text prompt, e.g. "the man in the red jacket"; up to 4 matching objects are tracked); prompt = the scene WITHOUT it. ' ++ 'One window per job: frames (4n+1, at most 81) from startFrame, both in SOURCE frames, because the graph runs at the clip\'s own fps (GetVideoComponents): the provider computes them with the fps of the clip\'s header, ' ++ 'not the 16 fps default. Longer clips: one job per window, joined with video-concat-N (seams between windows untested, inferred). ' ++ 'width x height = the work size VACE renders at (multiple of 16, 832x480 by default); give it the clip\'s shape (aspect ratio "auto"): the window is centre-cropped to it and the result is scaled back to the source size uncropped. ' ++ 'SAM3_VideoTrack follows the object through the window, GrowMask (maskGrow px) covers edges and contact shadows, the control video blanks the masked area (as Comfy-Org\'s video_wan_vace_inpainting template) ' ++ 'and WanVaceToVideo regenerates it. The result is pasted into the ORIGINAL frames at full resolution through a 6 px soft mask (GrowMaskWithBlur): every pixel outside the mask stays the source\'s own. ' ++ 'The window\'s sound is kept (silent clips work). Speed: the template\'s CausVid LoRA is CC-BY-NC-4.0, so this uses the Apache-2.0 lightx2v T2V 4-step LoRA (4 steps, cfg 1, euler, shift 5; ' ++ 'the pairing with VACE is inferred, not GPU-tested); loraStrength 0 + steps 20 + cfg 6 is the slow full-quality path. checkpoint wan2.1_vace_1.3B_fp16.safetensors (4.31 GB) fits 8 GB cards and needs loraStrength 0, steps 20, cfg 6 ' ++ '(no 4-step LoRA for 1.3B). No new download: every default file is already in the library. Validated by /prompt only (no GPU here); the window-and-sound part ' ++ '(ImageFromBatch + TrimAudioDuration at the clip\'s fps -> CreateVideo) ran on CPU on a clip with sound (the window\'s 0.84 s kept) and a silent one (no audio track, no error).',+ },+ {+ id: 'video-inpaint-wan-vace-painted',+ title: 'Remove an object painted on the first frame: SAM 3.1 tracks the mask + Wan 2.1 VACE 14B fill (lightx2v 4-step)',+ capability: 'remove-object',+ handBuilt: 'hand-built/video-inpaint-wan-vace-painted.json',+ bindings: {+ video: [b('1', 'file')], mask: [b('70', 'image')], startFrame: [b('3', 'value')], frames: [b('4', 'value')],+ width: [b('6', 'width'), b('19', 'width'), b('72', 'width')], height: [b('6', 'height'), b('19', 'height'), b('72', 'height')],+ maskGrow: [b('11', 'expand')], prompt: [b('16', 'text')], negativePrompt: [b('17', 'text')], checkpoint: [b('20', 'unet_name')],+ loraStrength: [b('21', 'strength_model')], shift: [b('22', 'shift')], seed: [b('23', 'seed')], steps: [b('23', 'steps')], cfg: [b('23', 'cfg')],+ },+ outputs: [{ node: '38', kind: 'video' }],+ defaults: { checkpoint: 'wan2.1_vace_14B_fp16.safetensors' },+ limits: { maxWidth: 1280, maxHeight: 1280, maxFrames: 81, dimensionMultiple: 16, frameStep: 4 },+ vramGb: 24,+ license: 'Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)',+ notes:+ 'mask = a PNG of the window\'s FIRST frame, read from the red channel: white = the object to remove, black = keep (the clip\'s shape; it is scaled to the work size like the frames). ' ++ 'SAM3_VideoTrack takes it as initial_mask and tracks the object through the window. Changed from the research graph: the mask is read from the red channel (Fuobe\'s mask convention, as flux1-fill-inpaint) instead of alpha. ' ++ 'Everything else as video-inpaint-wan-vace: windows of frames (4n+1, at most 81) from startFrame in source frames, width x height in the clip\'s shape, paste-back into the original frames, the window\'s sound kept. ' ++ 'For a window after the first, the mask must be painted on (or tracked to) that window\'s first frame. Validated by /prompt only (no GPU here).',+ },+ {+ id: 'video-erase-void',+ title: 'Remove an object AND what it causes (shadows, reflections, things it moves): Netflix VOID, two passes (core nodes)',+ capability: 'remove-object',+ handBuilt: 'hand-built/video-erase-void.json',+ bindings: {+ video: [b('1', 'file')], startFrame: [b('3', 'value')], frames: [b('4', 'value')], width: [b('6', 'width'), b('19', 'width'), b('41', 'width')],+ height: [b('6', 'height'), b('19', 'height'), b('41', 'height')], maskPrompt: [b('8', 'text')], maskGrow: [b('11', 'expand')], prompt: [b('16', 'text')],+ negativePrompt: [b('17', 'text')], cfg: [b('21', 'cfg'), b('44', 'cfg')], steps: [b('22', 'steps'), b('45', 'steps')], seed: [b('24', 'noise_seed')], skipPass2: [b('49', 'value')],+ },+ outputs: [{ node: '52', kind: 'video' }],+ limits: { maxFrames: 197, dimensionMultiple: 8 },+ vramGb: 40,+ license:+ 'VOID weights Apache-2.0 (netflix/void-model), BUT fine-tuned from CogVideoX-Fun-V1.5-5b-InP, whose 5B transformer is under the CogVideoX License: free for academic research; commercial use only after ' ++ 'registering for its basic commercial licence (open.bigmodel.cn), and at most 1 million service visits a month without a further licence; no military or illegal use. ' ++ 'T5-XXL and the CogVideoX VAE Apache-2.0; RAFT BSD-3-Clause; SAM 3.1 under Meta\'s SAM License',+ notes:+ 'The premium removal: VOID also removes what the object causes (shadows, reflections, objects it holds falling). Comfy-Org template utility_void_video_inpainting (2026-05-14), flattened, ' ++ 'with SAM3_VideoTrack (maskPrompt) instead of per-frame SAM3_Detect. The binary mask goes straight into VOIDInpaintConditioning (1 = remove) as in the template; VOIDQuadmaskPreprocess is only for VOID\'s own 4-level quadmasks. ' ++ 'frames is rounded down by the node so the latent length is even: 45, 53, 61 ... 197 (8n+5), counted in source frames from startFrame like the VACE graphs. ' ++ 'Output = the work size (672x384 by default, VOID\'s training size; multiples of 8), not the source size: the whole frame is re-rendered, so upscale afterwards if needed. The window\'s sound is kept. ' ++ 'Pass 2 re-samples with noise warped along pass 1\'s optical flow (RAFT) for steadier long clips; skipPass2 true halves the time (pass 1 "is sufficient for most videos" per Netflix\'s card). ' ++ 'The switch is lazy, so pass 2 does not run then, but void_pass2 and the RAFT file must still be installed (/prompt checks every loader that feeds the output). ' ++ 'Downloads 32.5 GB: 2 x 11.14 GB passes, T5-XXL fp16 9.79 GB (the same file as FLUX\'s t5xxl_fp16), CogVideoX VAE 0.43 GB, RAFT 0.02 GB. ' ++ 'VRAM in ComfyUI is unverified: Netflix\'s reference code needs 40 GB+, a 24 GB card with offloading is plausible (inferred). Validated by /prompt only (no GPU here).',+ },+ {+ id: 'video-swap-wan-vace',+ title: 'Swap an object or character for a reference image: SAM 3.1 tracking + Wan 2.1 VACE 14B with reference (lightx2v 4-step)',+ capability: 'video-swap',+ handBuilt: 'hand-built/video-swap-wan-vace.json',+ bindings: {+ video: [b('1', 'file')], image: [b('40', 'image')], startFrame: [b('3', 'value')], frames: [b('4', 'value')], width: [b('6', 'width'), b('19', 'width')], height: [b('6', 'height'), b('19', 'height')],+ maskPrompt: [b('8', 'text')], maskGrow: [b('11', 'expand')], prompt: [b('16', 'text')], negativePrompt: [b('17', 'text')], checkpoint: [b('20', 'unet_name')],+ loraStrength: [b('21', 'strength_model')], shift: [b('22', 'shift')], seed: [b('23', 'seed')], steps: [b('23', 'steps')], cfg: [b('23', 'cfg')],+ },+ outputs: [{ node: '38', kind: 'video' }],+ defaults: { checkpoint: 'wan2.1_vace_14B_fp16.safetensors' },+ limits: { maxWidth: 1280, maxHeight: 1280, maxFrames: 81, dimensionMultiple: 16, frameStep: 4 },+ vramGb: 24,+ license: 'Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)',+ notes:+ 'Genjutsu "Object Swap" on the open engine. maskPrompt = what to replace (the tracked mask, as video-inpaint-wan-vace); image = the new object, product or character, best cut out on a plain or white background ' ++ '(bg-remove-birefnet); prompt describes the result. The reference goes to WanVaceToVideo.reference_image (one extra latent frame that TrimVideoLatent drops) and the masked area is regenerated following the original motion. ' ++ 'One image: with several references the provider sends the first (or a collage). Window rules (frames 4n+1 <= 81 from startFrame in source frames, width x height in the clip\'s shape), the paste-back into the original frames ' ++ 'and the kept sound are as video-inpaint-wan-vace. For a whole person, SCAIL-2 Character Replacement (template video_wan21_scail2_character_replacement) keeps the body motion better (not built). Validated by /prompt only (no GPU here).',+ },+ {+ id: 'video-insert-wan-vace',+ title: 'Insert an object into a painted region: Wan 2.1 VACE 14B with a reference image (region held for the whole window)',+ capability: 'video-insert',+ handBuilt: 'hand-built/video-insert-wan-vace.json',+ bindings: {+ video: [b('1', 'file')], image: [b('40', 'image')], mask: [b('70', 'image')], startFrame: [b('3', 'value')], frames: [b('4', 'value')],+ width: [b('6', 'width'), b('19', 'width'), b('72', 'width')], height: [b('6', 'height'), b('19', 'height'), b('72', 'height')],+ maskGrow: [b('11', 'expand')], prompt: [b('16', 'text')], negativePrompt: [b('17', 'text')], checkpoint: [b('20', 'unet_name')],+ loraStrength: [b('21', 'strength_model')], shift: [b('22', 'shift')], seed: [b('23', 'seed')], steps: [b('23', 'steps')], cfg: [b('23', 'cfg')],+ },+ outputs: [{ node: '38', kind: 'video' }],+ defaults: { checkpoint: 'wan2.1_vace_14B_fp16.safetensors' },+ limits: { maxWidth: 1280, maxHeight: 1280, maxFrames: 81, dimensionMultiple: 16, frameStep: 4 },+ vramGb: 24,+ license: 'Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)',+ notes:+ 'mask = the region where the new object should appear, a PNG in the clip\'s shape read from the red channel (white = the region, black = keep); it is held for every frame of the window (RepeatImageBatch), ' ++ 'so it suits a static or slow camera (without the repeat WanVaceToVideo would pad a one-frame mask with 1 = generate and regenerate the whole clip). image = the object (best cut out on white); ' ++ 'prompt = what appears where and what it does. No SAM. Changed from the research graph: the mask is read from the red channel (Fuobe\'s mask convention) instead of alpha. ' ++ 'Window rules, paste-back and the kept sound as video-inpaint-wan-vace. Validated by /prompt only (no GPU here).',+ },++ // ---- Faceless "Frame by frame": Ken Burns over a still ------------------------------+ {+ id: 'kenburns-still',+ title: 'Ken Burns pan and zoom over a still for N seconds at F fps (core loops, chunk-encoded, no model)',+ capability: 'still-motion',+ handBuilt: 'hand-built/kenburns-still.json',+ bindings: {+ image: [b('1', 'image')], supersample: [b('2', 'scale_by')], width: [b('4', 'value')], height: [b('5', 'value')], duration: [b('6', 'value')], fps: [b('7', 'value')],+ zoomStart: [b('9', 'value')], zoomEnd: [b('10', 'value')], panStartX: [b('11', 'value')], panStartY: [b('12', 'value')], panEndX: [b('13', 'value')], panEndY: [b('14', 'value')],+ easeInOut: [b('19', 'value')], chunkFrames: [b('17', 'value')],+ },+ outputs: [{ node: '32', kind: 'video' }],+ limits: { maxWidth: 1920, maxHeight: 1920, dimensionMultiple: 2, maxDurationSec: 10 },+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core nodes)',+ notes:+ 'The still-motion operation: params.zoomFrom / zoomTo -> zoomStart / zoomEnd (1 = the widest crop with the output\'s shape, 1.25 = 25 % closer), params.panFrom / panTo {x, y} -> panStartX/Y and panEndX/Y ' ++ '(the crop centre, 0-1 of the still, clamped so the crop stays inside), params.easing "ease-in-out" -> easeInOut 1 ((1 - cos(pi t)) / 2), "linear" -> 0; duration, fps and width x height (the output size) as usual. ' ++ 'Presets (app side): push in zoom 1 -> 1.2; pull out 1.2 -> 1; pan left zoom 1.15, x 0.6 -> 0.4; pan up zoom 1.15, y 0.6 -> 0.4; a gentle end-card push-in 1 -> 1.05. ' ++ 'Core loops (StartLoop/EndLoop, ComfyUI 2026-09-15): the outer loop runs one pass per chunk of chunkFrames frames, the inner loop crops each frame (ImageCrop) and scales it (lanczos) to width x height, ' ++ 'each chunk is encoded at once (CreateVideo h264) and ConcatenateVideo joins them, so finished chunks can leave memory. supersample upsizes the still once so crop steps are half a source pixel. ' ++ 'At most 10 s per job: RAM still grows by about one output frame per frame (~11 MB at 720p) until ComfyUI\'s RAM-pressure cache evicts chunks; split longer scenes. ' ++ 'Changed from the research graph: easeInOut (node 19) blends linear and eased progress (the research graph was always eased). ' ++ 'Research runs (4-core CPU): 2 s 640x360 25 fps 17.9 s; 5 s 1280x720 30 fps 75.6 s (+2.6 GB RSS); 10 s 1280x720 30 fps 142.1 s (+3.7 GB RSS, both under RAM pressure). ' ++ 'Ran here (shared CPU server, two sessions, 64x64 still, 2 s 320x180 25 fps, chunks of 20): 50 frames, 2.000 s H.264 in 8.5-9.3 s (easeInOut 1) and 7.6-11.2 s (0); ' ++ 'the two match at the first, middle and last frame and differ in between, and the eased one barely moves over its first and last frames. ' ++ 'Crops are whole pixels, so a tiny still steps visibly (the first frame after zoom 1 jumps by one source pixel); supersample and a still larger than the output hide it.',+ },++ // ---- Music beds and audio joins --------------------------------------------------------+ {+ id: 'audio-loop-crossfade',+ title: 'Music bed of any length: loop a clip with equal-power crossfades and a fade-out (core audio nodes + core loop)',+ capability: 'audio-loop',+ handBuilt: 'hand-built/audio-loop-crossfade.json',+ bindings: {+ audio: [b('1', 'audio')], fadeCurve: [b('3', 'audio')], crossfade: [b('5', 'value')], duration: [b('6', 'value')], headroomDb: [b('2', 'volume')],+ },+ outputs: [{ node: '29', kind: 'audio' }],+ limits: { maxDurationSec: 600 },+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core audio nodes; VideoHelperSuite loader, GPL-3.0 code)',+ notes:+ 'audio = the clip to loop; duration = the bed\'s length (params.duration, up to 600 s: ACE-Step\'s <= 240 s beds become 10-minute beds); crossfade = seconds at each seam (params.crossfade). ' ++ 'fadeCurve = the crossfade curve the PROVIDER writes and uploads, because core has no gain-ramp node: a stereo WAV exactly crossfade seconds long, left channel = sin(pi/2 t) (fade-in), ' ++ 'right channel = cos(pi/2 t) (fade-out), at 8 kHz so AudioMerge upsamples the curve and never resamples the music (for loops of near-identical material a linear curve avoids the +3 dB equal-power bump). ' ++ 'Repeats = ceil((duration - crossfade) / (clip - crossfade)) from VHS_LoadAudioUpload\'s duration; each repeat is the body + (tail fading out + head fading in); the last crossfade seconds fade out. ' ++ 'The clip must be longer than 2 x crossfade. headroomDb (integer dB, default -3) keeps a summed seam under 1.0, because AudioMerge "add" normalises a whole segment that peaks over 1. ' ++ 'Each loop pass keeps its output cached, so memory grows as O(repeats^2 x clip): prefer clips >= 60 s (<= 10 repeats). Saves FLAC at the clip\'s sample rate. ' ++ 'Ran here (CPU, two sessions with two tone clips): a 3 s 44.1 kHz stereo clip (440 Hz left, 660 Hz right), crossfade 0.5 s (a 16-bit 8 kHz curve), duration 10 -> FLAC 10.000 s, 44.1 kHz stereo in 1.1-2.5 s; ' ++ 'seams at 2.5 / 5 / 7.5 s (+2.1 dB RMS over each seam on the pure tones: the equal-power bump), no clicks (largest sample step 0.035 vs 0.031 in the source), ' ++ 'level -3 dB elsewhere (headroomDb) and the last 0.5 s fading to 0.',+ },+ {+ id: 'audio-join-crossfade',+ title: 'Join two audio clips with a crossfade (core audio nodes)',+ capability: 'audio-join',+ handBuilt: 'hand-built/audio-join-crossfade.json',+ bindings: { audio: [b('1', 'audio')], audio2: [b('2', 'audio')], fadeCurve: [b('3', 'audio')], crossfade: [b('5', 'value')] },+ outputs: [{ node: '17', kind: 'audio' }],+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core audio nodes; VideoHelperSuite loader, GPL-3.0 code)',+ notes:+ 'audio then audio2, overlapped by crossfade seconds (params.crossfade, > 0; 0.02 gives a click-free hard join). fadeCurve = the same curve WAV as audio-loop-crossfade, crossfade seconds long, written by the provider. ' ++ 'More clips (params.audios in order): fold, i.e. join 1+2, then that result + 3, and so on. The output runs at the higher sample rate of the two (AudioConcat resamples) and is saved as FLAC. ' ++ 'Clips placed at exact times are audio-timeline\'s job. ' ++ 'Ran here (CPU, two sessions): 3 s 44.1 kHz tones + 2 s 48 kHz noise, crossfade 0.5 s -> FLAC 4.500 s at 48 kHz stereo in 0.2-2.1 s; the tones keep their level (-9.0 dB RMS) up to 2.5 s, ' ++ 'the overlap ramps over 0.5 s and the noise follows at its own level (-15.2 dB): no headroom is taken off here.',+ },++ // ---- Export: pro codecs, HDR, EXR -------------------------------------------------------+ {+ id: 'video-export-pro',+ title: 'Pro codec export: ProRes 422 HQ / 4444, H.265 10-bit, FFV1 lossless, H.264 (VideoHelperSuite)',+ capability: 'export-video',+ handBuilt: 'hand-built/video-export-pro.json',+ bindings: { video: [b('1', 'file')], format: [b('3', 'format')], profile: [b('3', 'profile')] },+ outputs: [{ node: '3', kind: 'video' }],+ defaults: { format: 'video/ProRes', profile: 'hq' },+ vramGb: 0,+ license: 'n/a (no model; VideoHelperSuite GPL-3.0 code and the system ffmpeg\'s prores_ks / libx265 / ffv1 / libx264 encoders)',+ notes:+ 'params.format -> format (+ profile): prores_422_hq -> video/ProRes + hq; prores_4444 -> video/ProRes + 4444 (also lt, standard, 4444xq); h265_10bit -> video/h265-mp4 (pix_fmt yuv420p10le, its first option); ' ++ 'ffv1 -> video/ffv1-mkv (lossless, rgba64le); h264 -> video/h264-mp4; exr -> video-export-exr. VHS falls back to each format widget\'s default when an input is missing, and adds profile only for ProRes. ' ++ 'VHS writes <prefix>_00001.<ext> (.mov ProRes, .mp4 H.264/H.265, .mkv FFV1; no sound) and, when the clip has sound, <prefix>_00001-audio.<ext>, the only file the history lists (under "gifs"); ' ++ 'it also leaves a first-frame .png next to them. ' ++ 'Decodes the whole clip (GetVideoComponents): RAM grows with the length. ' ++ 'Ran here (CPU, two sessions, a 1 s 64x64 16 fps clip with AAC sound, 0.16-0.4 s each, checked with ffprobe): ProRes HQ .mov yuv444p10le + pcm_s16le; ProRes 4444 yuv444p12le; h265-mp4 HEVC Main 10 yuv420p10le + AAC; ' ++ 'ffv1-mkv gbrap16le + FLAC; h264-mp4 High yuv420p + AAC; 16 frames and 1.000 s in every file; bt709 tags (FFV1: gbr matrix, sRGB transfer, bt709 primaries).',+ },+ {+ id: 'video-sdr-to-hdr',+ title: 'SDR to HDR: expand to Rec.2020 HLG and save 10-bit H.264 (core ImageSDRToHDR, no model)',+ capability: 'sdr-to-hdr',+ handBuilt: 'hand-built/video-sdr-to-hdr.json',+ bindings: { video: [b('1', 'file')], peakNits: [b('3', 'algorithm.target_luminance')] },+ outputs: [{ node: '5', kind: 'video' }],+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core)',+ notes:+ 'An algorithmic inverse tone map (Lottes-style curve blended with a log-gain curve), not a learned model: the open stand-in for Topaz\'s SDR to HDR. peakNits = the target peak white (650 by default, 0 = the calibrated rendering). ' ++ 'CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format "hlg" is this graph; PQ would be color_space "HDR PQ" on node 4 (not bound). ' ++ 'The learned alternative is the LTX-2.5 SDR-To-HDR IC-LoRA (LTX community licence, not built). Decodes the whole clip: RAM grows with the length. ' ++ 'Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.2-1.5 s): H.264 High 10, yuv420p10le, bt2020nc / bt2020 / arib-std-b67 (HLG), 16 frames, AAC kept.',+ },+ {+ id: 'video-export-exr',+ title: 'OpenEXR frame sequence (16-bit float, scene-linear) from a video (core SaveImageAdvanced)',+ capability: 'export-video',+ handBuilt: 'hand-built/video-export-exr.json',+ bindings: { video: [b('1', 'file')] },+ outputs: [{ node: '3', kind: 'image', role: 'frames' }],+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core)',+ notes:+ 'params.format "exr" of the export-video operation. One half-float .exr per frame (role frames, in frame order); input_color_space sRGB applies the inverse sRGB curve, so the files are scene-linear Rec.709. ' ++ 'The app zips the sequence. No sound. Decodes the whole clip: RAM grows with the length. ' ++ 'Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.06-0.2 s): 16 .exr files (<prefix>_00001.exr ...), HALF B/G/R channels, ZIP compression, linear transfer.',+ },++ // ---- Still to clip, ad end card ---------------------------------------------------------+ {+ id: 'still-to-clip',+ title: 'Still or end card to an N-second clip with a silent track (core, no model)',+ capability: 'still-motion',+ handBuilt: 'hand-built/still-to-clip.json',+ bindings: {+ image: [b('1', 'image')], width: [b('2', 'width')], height: [b('2', 'height')], duration: [b('3', 'value')], fps: [b('4', 'value')],+ },+ outputs: [{ node: '9', kind: 'video' }],+ limits: { maxWidth: 3840, maxHeight: 3840, dimensionMultiple: 2 },+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core)',+ notes:+ 'The still held for duration seconds at fps, centre-cropped to width x height (ImageScale), with a silent stereo AAC track so joins and players see sound. ' ++ 'The app renders an end card (logo on the brand colour) at the clip\'s size; for a gentle push-in use kenburns-still with zoom 1 -> 1.05. ' ++ 'With video-concat-sound1-2 it is the end-card fallback for clips the open engine did not make (see video-append-endcard). ' ++ 'Ran here (CPU, two sessions, 64x64 PNG -> 2 s 320x180 25 fps, 0.2-1.0 s): 50 identical frames, H.264 + stereo AAC silence, 2.000 s.',+ },+ {+ id: 'video-append-endcard',+ title: 'Append an end card to an ad and keep the ad\'s sound (picture stream-copied; core ConcatenateVideo)',+ capability: 'concat',+ handBuilt: 'hand-built/video-append-endcard.json',+ bindings: {+ video: [b('1', 'file'), b('2', 'audio')], image: [b('3', 'image')], width: [b('4', 'value')], height: [b('5', 'value')], fps: [b('6', 'value')], duration: [b('7', 'value')],+ },+ outputs: [{ node: '15', kind: 'video' }],+ limits: { dimensionMultiple: 2 },+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core)',+ notes:+ 'video = the ad (LoadVideo and LoadAudio read the same upload), image = the card; width, height and fps must be the clip\'s own (from its header), duration = the card\'s seconds (2 by default). ' ++ 'The ad\'s picture is copied packet by packet (bit-identical, never decoded); the card is encoded as H.264 at the clip\'s size and fps, and the ad\'s sound is padded with card-length silence (AudioConcat) ' ++ 'and passed as complete_audio. Silent ads (LoadAudio stops with "No audio stream found in the file", checked): the provider drops nodes 2, 12 and 13 and the complete_audio input of node 14, and the result has no sound track. ' ++ 'LIMIT: only for clips the open engine made (ComfyUI CreateVideo/SaveVideo, sRGB-tagged H.264). Clips from other encoders (cloud models, uploads, ffmpeg/libx264, tagged or not) fail in core v0.41 with ' ++ '"Video chunk 1 could not be encoded compatibly: extradata ... color space"; for those use still-to-clip + video-concat-sound1-2 (decodes everything, keeps clip 1\'s sound). ' ++ 'Ran here (CPU, two sessions): a ComfyUI-made 2 s 320x180 25 fps clip with sound + a 2 s card -> 4.000 s, 100 frames in 0.3-2.9 s; the ad\'s 50 frames decode bit-identical to the source (framemd5) and silencedetect finds silence from 2.00 s. ' ++ 'Silent ad + a 1.5 s card with nodes 2, 12 and 13 dropped: 3.52 s, 88 frames, no sound track (keeping node 12 as complete_audio instead gives a sound track only the card\'s 1.5 s long). ' ++ 'The fixture clip from ffmpeg failed with the extradata / colour-space error above (the limit reproduced).',+ },++ // ---- Cinema Studio 3D scene, subject splats -------------------------------------------+ {+ id: 'scene-mesh-moge',+ title: 'Image to a textured 3D mesh of the whole scene + a depth map (MoGe 2 / MoGe 3, core nodes)',+ capability: 'scene-3d',+ handBuilt: 'hand-built/scene-mesh-moge.json',+ bindings: {+ image: [b('1', 'image')], checkpoint: [b('6', 'model_name')], resolutionLevel: [b('7', 'resolution_level')], fovX: [b('7', 'fov_x_degrees')], decimation: [b('8', 'decimation')],+ },+ outputs: [{ node: '9', kind: 'model3d', role: 'scene' }, { node: '11', kind: 'image', role: 'depth' }],+ defaults: { checkpoint: 'moge_2_vitl_normal_fp16.safetensors' },+ vramGb: 4,+ license: 'MIT (microsoft/MoGe 2 and 3, Comfy-Org/MoGe repack)',+ notes:+ 'Cinema Studio "Create 3D scene": photo -> textured GLB of the WHOLE frame (role scene) + a depth PNG (role depth). From the official template 3d_moge_perspective_to_mesh (2026-05-15): normal-map previews dropped, the depth PNG added; ' ++ 'images over 2048 px are resized first. The browser orbits the GLB, captures a view, and qwen-image-edit-2511 re-renders it with the original photo. ' ++ 'resolutionLevel 0-9 (detail), fovX = horizontal field of view in degrees (0 = estimate), decimation 2 for phones (about 4x fewer triangles, inferred). ' ++ 'checkpoint moge_2_vitl_normal_fp16 (0.66 GB) by default; moge_3_vitl_fp16 (0.74 GB) and moge_3_vitg_fp16 (2.50 GB) load through the same node. ' ++ 'Research run on the 4-core CPU: a 768x768 living-room photo became a 25.2 MB GLB (556k vertices, 1.08M triangles, one texture, depth 0.35-6.58 m) in 42 s, +1.6 GB RSS. VRAM unverified (MoGe 2 ViT-L is ~0.33B parameters). ' ++ 'TripoSplat (image-to-splat-triposplat) rebuilds the subject only, not the scene.',+ },+ {+ id: 'image-to-splat-triposplat',+ title: 'Image to a Gaussian splat of the subject (TripoSplat, core nodes) + an orbit video',+ capability: 'splat',+ handBuilt: 'hand-built/image-to-splat-triposplat.json',+ bindings: {+ image: [b('99', 'image')], cutout: [b('88:35', 'switch')], numGaussians: [b('88:55', 'num_gaussians')], steps: [b('88:6', 'steps')], cfg: [b('88:6', 'cfg')],+ seed: [b('88:6', 'seed'), b('88:55', 'seed')], splatFormat: [b('92', 'format')], orbitFrames: [b('75', 'frames')],+ },+ outputs: [{ node: '51', kind: 'model3d', role: 'splat' }, { node: '42', kind: 'video', role: 'turntable' }],+ defaults: { splatFormat: 'spz' },+ limits: { maxGaussians: 1048576 },+ vramGb: 8,+ license:+ 'MIT (VAST-AI/TripoSplat weights); the dino_v3_vit_h image encoder is under the DINOv3 License (royalty-free, commercial use allowed, trade-control limits; ' ++ 'the app must show a "Built with DINOv3" notice); FLUX.2 VAE Apache-2.0; BiRefNet MIT',+ notes:+ 'Subject or product splat (3D Angles, 3D Jutsu props, a splat alternative to TRELLIS.2 spins). The official template 3d_triposplat_image_to_gaussian_splat (2026-06-02) with the UI-only live-preview patch removed ' ++ 'and a 75-frame H.264 orbit (RenderSplat + CreateCameraInfo orbit yaw 35, pitch 30, distance 2.5; role turntable, 25 fps). Subject only: BiRefNet cuts it out first (cutout false = use the image\'s own alpha). ' ++ 'Output 1 (role splat): splatFormat spz (Niantic, gzip, ~10x smaller, base colour), ply (full spherical harmonics) or ksplat, saved by SaveGLB under that extension (meta.format = the extension). ' ++ 'numGaussians up to 1,048,576 (262,144 by default); seed drives both the sampler and the decoder. RenderSplat also takes a look_at camera, so a view picked in the browser can be rendered on the server. ' ++ '3.78 GB of weights (TripoSplat 0.74, DINOv3 ViT-H 1.68, TripoSplat VAE decoder 0.58, FLUX.2 VAE 0.34, BiRefNet 0.44). VRAM unverified. Validated by /prompt only.',+ },++ // ---- Content Factory: read a reference video ---------------------------------------------+ {+ id: 'reference-brief-gemma4',+ title: 'Reference video to a style brief: Gemma 4 E4B reads the frames and the sound (core TextGenerate)',+ capability: 'write',+ handBuilt: 'hand-built/reference-brief-gemma4.json',+ bindings: {+ video: [b('1', 'video')], frames: [b('1', 'frame_load_cap')], startFrame: [b('1', 'skip_first_frames')], frameWidth: [b('1', 'custom_width')],+ checkpoint: [b('2', 'clip_name')], instruction: [b('3', 'prompt')], seed: [b('3', 'sampling_mode.seed')], maxTokens: [b('3', 'max_length')],+ },+ outputs: [{ node: '4', kind: 'text', role: 'brief' }],+ defaults: { fps: 24, checkpoint: 'gemma4_e4b_it_fp8_scaled.safetensors', instruction: handBuiltInput('./hand-built/reference-brief-gemma4.json', '3', 'prompt') },+ limits: { maxFrames: 720, frameStep: 1 },+ vramGb: 12,+ license: 'Apache-2.0 (Gemma 4); VideoHelperSuite loader GPL-3.0 code',+ notes:+ 'Content Factory "Use as reference": the clip\'s frames AND sound go into one TextGenerate call and come back as a JSON style brief (role brief): format, hook, pacing, shots, visual_style, animation_style, ' ++ 'narration, music, captions, topic_ideas (5). The instruction forbids copying the reference\'s people, logos or exact words. Strip ``` fences before parsing. ' ++ 'VHS_LoadVideo resamples to 24 fps (fixed: TextGenerate assumes 24 fps and keeps every 24th frame, i.e. 1 fps, each capped at 70 soft tokens); frames = the frame cap at 24 fps (720 = the first 30 s), ' ++ 'startFrame = frames skipped at 24 fps, frameWidth = 384 px wide (about 0.7 GB of frames for 720, inferred). In ComfyUI v0.41 only the Gemma 4 and MiniMax text encoders read a video input ' ++ '(the Qwen3.5 encoder ignores it). Same model file as speech-translate-gemma4 (no new download). Whether Gemma 4 E4B takes 30 s of audio in one call is unverified. Validated by /prompt only.',+ },];diff --git a/scripts/comfy/validate-workflows.mjs b/scripts/comfy/validate-workflows.mjsindex 1650260c..dd8d1d6c 100644--- a/scripts/comfy/validate-workflows.mjs+++ b/scripts/comfy/validate-workflows.mjs@@ -76,6 +76,10 @@ function sampleValue(key, entry, uploads) {case 'hints': return 'Fuobe';case 'instruction': return String(entry.defaults?.instruction ?? 'Translate into {language}.').replaceAll('{language}', 'Spanish');case 'mask': return uploads.mask;+ case 'maskPrompt': return 'the person on the left';+ case 'fadeCurve': return uploads.wav;+ case 'skipPass2': return true; // switches: the non-default branch, so both values are known to pass+ case 'cutout': return false;case 'video': case 'video2': case 'video3': case 'video4': return uploads.mp4;case 'audio': case 'audio2': return uploads.wav;case 'tracks': {diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex f0a22739..3ef5d28b 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -1,9 +1,21 @@{+ "audio-join-crossfade": {+ "sha256": "f18c08cd22f37ccadb81cf557c4624e894c71dd718685e7b3030c92c9893be6a",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:06.665Z"+ },+ "audio-loop-crossfade": {+ "sha256": "97a181dd41506ca676dd88cb238da5e7871ce7101b74186991e4be33a0a2654c",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:05.393Z"+ },"audio-timeline": {"sha256": "b483019231d6add28874dc3c835a85726eaccdaf0c1d60c0d2f0431159a7711a","validated": true,"error": null,- "at": "2026-10-21T16:25:18.850Z"+ "at": "2026-10-22T19:21:14.746Z"},"bg-remove-birefnet": {"sha256": "8d12248b956c8cd91d207b5ec9a8585c681259aff216ac38745fa4bffdaae988",@@ -21,7 +33,7 @@"sha256": "8bb4d7bca5145d94ee1d509e50e23ef40e4cd21cb7c152bbba32751eca4ea013","validated": true,"error": null,- "at": "2026-10-18T07:29:28.801Z"+ "at": "2026-10-22T23:27:26.274Z"},"captions-qwen3-asr": {"sha256": "75286c2efad353c7285df2eea90782db99e7b7e994adeeaaf242a2e70c790bf7",@@ -57,7 +69,7 @@"sha256": "62de41ccfa9c0fcce1599c8f5f712b983e767800af5b73a4e06cb71a1aa649ea","validated": true,"error": null,- "at": "2026-10-16T20:57:15.582Z"+ "at": "2026-10-22T23:27:25.995Z"},"flux1-fill-inpaint": {"sha256": "1805c40665be21f24ac3f48c9bb5f3a8a901ac4e8ac3f75578d1f66bd83a5bbb",@@ -153,7 +165,13 @@"sha256": "7bfa7ebe14aa128a4b9b513e653998c5293ddc9221ca1d668191d27dc52725f6","validated": true,"error": null,- "at": "2026-10-17T21:02:04.654Z"+ "at": "2026-10-22T23:27:26.415Z"+ },+ "image-to-splat-triposplat": {+ "sha256": "cb65f4660b4d5fef3c0544146ed51b7d3acf059f3190a102dccf8166908f5413",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:40.971Z"},"infinitetalk-native": {"sha256": "816327852679ebc006a3842668c35a0c9127f724690abc4d58d7e820d2cf0de5",@@ -177,7 +195,7 @@"sha256": "83a7470b9574b0e297e0fc2c8e1eb3e280f0bf77784f397b4f01516f8f18604e","validated": true,"error": null,- "at": "2026-10-16T20:57:26.854Z"+ "at": "2026-10-22T23:27:26.098Z"},"interpolate-rife-vfi": {"sha256": "bec30ae2655d256ad465f02fb5249b7a6ec08c57cd3d6ca2f5425428f1f6f95c",@@ -185,6 +203,12 @@"error": null,"at": "2026-10-16T20:57:26.862Z"},+ "kenburns-still": {+ "sha256": "34c5bdc4b0a425d82b5971ca31eae697da6b7363ea48b30dfe055d7a8573976d",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:05.238Z"+ },"layers-qwen-image-layered": {"sha256": "7e8aae04b028f3e0000ca59ab953c4af5be0a1a65f734481d8162179d6cc9e77","validated": true,@@ -245,6 +269,12 @@"error": null,"at": "2026-10-16T20:57:26.870Z"},+ "ocr-lines-qwen35": {+ "sha256": "2cc591a75dbc160f91475e1f0e06c4a6a321adf6ad3a90b92648eea456322705",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:02.691Z"+ },"palette-transfer-image": {"sha256": "3287bd729386b870c9797679512d46526e17e66b09736029ca55867c6670e43f","validated": true,@@ -291,7 +321,7 @@"sha256": "5deec4e50d093dabcdd74b6a97e794bcb0069a987f573ce65e8d966909c6de26","validated": true,"error": null,- "at": "2026-10-16T20:57:16.994Z"+ "at": "2026-10-22T19:21:14.050Z"},"qwen-image-edit-2511-multi": {"sha256": "29278f8d1a2c84104c2bcc4cab0f8a3e33002681c32e97409afa38c5525dc641",@@ -299,6 +329,12 @@"error": null,"at": "2026-10-16T20:57:17.108Z"},+ "reference-brief-gemma4": {+ "sha256": "4c941f187a7278ba7996e2d30c3ac65b295472b05b746958d1e87294f18ec1ef",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:09.261Z"+ },"relight-qwen-edit-2509": {"sha256": "06aa8787ebbc6fd40a4e95b3040a748c4544598ee7b795530c0e90e841a96ac8","validated": true,@@ -311,6 +347,12 @@"error": null,"at": "2026-10-16T23:33:15.071Z"},+ "scene-mesh-moge": {+ "sha256": "23eb02752b1e13077b037faeeef57de4b2959d3000ae4e9eaa50411f70bc0df3",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:07.669Z"+ },"sdxl-t2i": {"sha256": "ae16cc9b74193179da08136571719871c3e31e2abacf5297985657c2fe5e9fbf","validated": true,@@ -363,7 +405,13 @@"sha256": "baf609432b57514c43d2f91630b9ae3cb916e9fe8dab47ac02c6c9b64ded643a","validated": true,"error": null,- "at": "2026-10-17T21:02:03.760Z"+ "at": "2026-10-22T23:27:26.367Z"+ },+ "still-to-clip": {+ "sha256": "cd21914faa22195c7cf3fd4346c20ba1306d434bf565456ac6bfaa24743d08e3",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:07.304Z"},"storyboard-qwen-edit-2509-next-scene": {"sha256": "779d2a53bb5d45cfad1fe9da71e9258b4cf04af0036ae4708d74cc3788938106",@@ -375,7 +423,7 @@"sha256": "ee964fa6e4647d4ed99ff0f185c4b871629e1178628e33320133b1d6dec43da8","validated": true,"error": null,- "at": "2026-10-17T21:02:00.584Z"+ "at": "2026-10-22T23:27:26.170Z"},"style-ref-krea2": {"sha256": "6c556b269e758fa0133a84a20d39818ab7cdedf4640775d905c37d70ab0e5504",@@ -399,7 +447,7 @@"sha256": "0cbdf80883b7249dda9128050fc9c4f3c3df414b3cb3283bc057f389251fa010","validated": true,"error": null,- "at": "2026-10-17T21:02:03.621Z"+ "at": "2026-10-22T23:27:26.313Z"},"tryon-flux2-klein-4b": {"sha256": "3e697e48a436c9340b26524a1303c1c13a300d116ecab604e3981dbebd9195ef",@@ -411,7 +459,7 @@"sha256": "087e75d50567a17128d2bc728589eab2c3d97c7353f95946f21f5a60a58cd798","validated": true,"error": null,- "at": "2026-10-16T23:33:12.875Z"+ "at": "2026-10-22T19:21:14.237Z"},"tts-dialogue-chatterbox": {"sha256": "64d5a090c039ecadf7961864287c5ffdcaa2b7a52cde9d6d8f181baa6fcda8ce",@@ -461,6 +509,12 @@"error": null,"at": "2026-10-16T20:57:26.882Z"},+ "video-append-endcard": {+ "sha256": "2b3f625be7e9c9356384f601edaca89f582bc4c1315e9f8d449b3cf2d7e08c8c",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:07.490Z"+ },"video-bg-remove-birefnet": {"sha256": "08da8d310a04add6eb729fb67f3a82b63b0a806368ce49fc498dfe6aeb58c83e","validated": true,@@ -480,10 +534,10 @@"at": "2026-10-16T23:33:19.651Z"},"video-concat-3": {- "sha256": "d0d5eb952887e1a550c64a22fa1a42414a36e92cd7f678851ec6d6ce41834dcb",+ "sha256": "5fbca8e0d8728ba74f5f2dfe52c5f992f6f77de62ead81e4e93668755c9c13a7","validated": true,"error": null,- "at": "2026-10-16T23:33:20.104Z"+ "at": "2026-10-22T19:21:14.274Z"},"video-concat-4": {"sha256": "baac8cfe6fb58ca137e0f75d154ec357fd5283614b602e43dae5635beead5faf",@@ -495,7 +549,7 @@"sha256": "70ed1a9d7d25e3022e0289e8c1c4db3a6471e616201e3c1575150ce68cfef108","validated": true,"error": null,- "at": "2026-10-21T16:25:17.252Z"+ "at": "2026-10-22T23:27:26.125Z"},"video-concat-sound1-3": {"sha256": "fde35477afe1883be1078a91cb0d1fda6548d9aefec2a78c74fc63c3a9a7dec0",@@ -539,12 +593,48 @@"error": null,"at": "2026-10-16T23:33:22.128Z"},+ "video-erase-void": {+ "sha256": "6a2f22e04b9427b587f5e61a826c35b15aba351e11e556c94eb8d84482407e6b",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:40.640Z"+ },+ "video-export-exr": {+ "sha256": "59de86f898829c9ed60d059d038e3a5b3f5df8fdd675a76579eacaae1526c6a8",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:07.142Z"+ },+ "video-export-pro": {+ "sha256": "94b6ad366376bad9348ddd79e137b012bed54184e7d269cb66952cee5c1d6ca4",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:06.854Z"+ },"video-extend-wan22-fun-vace": {"sha256": "c6e30d4d5acf5d3d97c59fe02194e4b80fc21278ea0e946547060b80efd70ae0","validated": true,"error": null,"at": "2026-10-16T23:33:13.889Z"},+ "video-inpaint-wan-vace": {+ "sha256": "2ec20430ca30fed0354cd00f9a87679073162c3a6cafe9292ab08b8b318ff4fc",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:03.404Z"+ },+ "video-inpaint-wan-vace-painted": {+ "sha256": "b5528dfa2ebd1d21ee8576071d905fd862a97c0b1c3aded5117c0a32a083727d",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:03.638Z"+ },+ "video-insert-wan-vace": {+ "sha256": "713f6c7ac94738c043abc035babfe9afac045a902b7d230152be51d4c37f1df4",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:05.062Z"+ },"video-mux-audio": {"sha256": "68af795bae0c0e89749819173916044e4024a6ce3035f830b48c80e0b6899181","validated": true,@@ -573,7 +663,13 @@"sha256": "e11ef47ba766cc4ce8bda70c6e16b6c4736a683b88f8cf86e6c569e56eaed1c6","validated": true,"error": null,- "at": "2026-10-17T21:02:01.799Z"+ "at": "2026-10-22T23:27:26.214Z"+ },+ "video-sdr-to-hdr": {+ "sha256": "f51f27af77dd2f61d51553241b15f6b5af14e6c06ff3342b24e810dff3e87f93",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:07.018Z"},"video-segment-resample": {"sha256": "957899bf0bd99a4bf9e2407a6149392eccc2ee6d8338088809992025e4d4b45d",@@ -581,6 +677,12 @@"error": null,"at": "2026-10-17T21:02:01.523Z"},+ "video-swap-wan-vace": {+ "sha256": "47d216d2c2237d0c422c31be82c6af53b12b9e8e2b7a7e9466755b8a17720c41",+ "validated": true,+ "error": null,+ "at": "2026-10-22T23:20:04.932Z"+ },"video-trim": {"sha256": "7c611e027051c751670b1716031b6bbe61e21d5db990410fde4d7a54994815e8","validated": true,@@ -600,10 +702,10 @@"at": "2026-10-16T20:57:25.481Z"},"wan21-vace-14b-ref2v": {- "sha256": "6a9e277f11862df6ed7bf8e28d5f28414f623f571bb265881370b190e402e37c",+ "sha256": "c78c05dc0d19131b8ccbc40aebff19323d0c7de70f6d93a4aeb2e76773637e27","validated": true,"error": null,- "at": "2026-10-16T20:57:24.965Z"+ "at": "2026-10-22T23:20:02.570Z"},"wan22-flf2v-14b": {"sha256": "8fe5dfa9f3705bdc640960bc8fdb7d4fe28a2cf21e9c942a28c90d1dcc8c4e11",@@ -633,7 +735,7 @@"sha256": "344df9a302da8ec9afe0bcd6606e241f7e4f301bb337d78987d7030edf6b68ba","validated": true,"error": null,- "at": "2026-10-16T20:57:21.427Z"+ "at": "2026-10-22T23:27:26.063Z"},"wan22-i2v-14b-lora": {"sha256": "95908d67a56cb8eb7db7e7fc36047b5480b416e9a1a6a5712da691daf9cfe000",@@ -663,7 +765,7 @@"sha256": "8937d1317a4df79ab983b2630b17e65e2c30789d694db18e9dc08dc2a7a42268","validated": true,"error": null,- "at": "2026-10-16T20:57:21.668Z"+ "at": "2026-10-22T19:21:14.100Z"},"wan22-ti2v-5b-i2v": {"sha256": "6dc57b1184547542488964ec52f77a8cd5a1d1ad0f25326d972a22e65e65c46a",diff --git a/src/lib/comfy.ts b/src/lib/comfy.tsindex 1b79c628..2baabb25 100644--- a/src/lib/comfy.ts+++ b/src/lib/comfy.ts@@ -56,8 +56,27 @@ export interface ManifestOutput {kind: MediaKind;/** Audio stems of a voice/background separation. */stem?: "voice" | "background";- /** What a text or image output is: timed caption cues, a plain transcript, the detected language, layers, a grid's sheet or tiles… */- role?: "cues" | "transcript" | "language" | "layers" | "sheet" | "tiles" | "first-frame" | "turntable";+ /**+ * What a text, image or 3D output is: timed caption cues, a plain transcript, the detected language, layers, a grid's sheet or tiles…+ * Round 4: OCR "lines" (JSON, boxes 0–1000) and the "frame" the model saw, an EXR sequence's "frames", a whole-"scene" GLB and its+ * "depth" map, a Gaussian "splat", a reference video's style "brief".+ */+ role?:+ | "cues"+ | "transcript"+ | "language"+ | "layers"+ | "sheet"+ | "tiles"+ | "first-frame"+ | "turntable"+ | "lines"+ | "frame"+ | "frames"+ | "scene"+ | "depth"+ | "splat"+ | "brief";}export interface ManifestWorkflow {diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsnew file mode 100644index 00000000..f9778abe--- /dev/null+++ b/tests/comfy-library-4.test.ts@@ -0,0 +1,148 @@+import fs from "node:fs";+import path from "node:path";+import { describe, expect, it } from "vitest";+import type { ComfyWorkflow, Manifest, ManifestOutput } from "@/lib/comfy";++// The round-4 ComfyUI library (docs/research/comfyui-oss-4.json): the 17 graphs with the bindings and outputs the+// feature packages drive, and the CausVid licence fix of wan21-vace-14b-ref2v.+const dir = path.join(process.cwd(), "workflows/comfyui");+const manifest = JSON.parse(fs.readFileSync(path.join(dir, "manifest.json"), "utf8")) as Manifest;+const byId = new Map(manifest.workflows.map((w) => [w.id, w]));+const graph = (id: string) => JSON.parse(fs.readFileSync(path.join(dir, `${id}.json`), "utf8")) as ComfyWorkflow;+const subset = JSON.parse(fs.readFileSync(path.join(dir, "object_info.subset.json"), "utf8")) as Record<string, unknown>;++const VACE = ["startFrame", "frames", "width", "height", "maskGrow", "prompt", "negativePrompt", "checkpoint", "loraStrength", "shift", "seed", "steps", "cfg", "filenamePrefix"];+const ROUND4: Record<string, { capability: string; bindings: string[]; outputs: [string, string?][] }> = {+ "ocr-lines-qwen35": { capability: "ocr", bindings: ["image", "maxSize", "checkpoint", "instruction", "maxTokens", "filenamePrefix"], outputs: [["text", "lines"], ["text", "frame"]] },+ "video-inpaint-wan-vace": { capability: "remove-object", bindings: ["video", "maskPrompt", ...VACE], outputs: [["video"]] },+ "video-inpaint-wan-vace-painted": { capability: "remove-object", bindings: ["video", "mask", ...VACE], outputs: [["video"]] },+ "video-erase-void": {+ capability: "remove-object",+ bindings: ["video", "startFrame", "frames", "width", "height", "maskPrompt", "maskGrow", "prompt", "negativePrompt", "cfg", "steps", "seed", "skipPass2", "filenamePrefix"],+ outputs: [["video"]],+ },+ "video-swap-wan-vace": { capability: "video-swap", bindings: ["video", "image", "maskPrompt", ...VACE], outputs: [["video"]] },+ "video-insert-wan-vace": { capability: "video-insert", bindings: ["video", "image", "mask", ...VACE], outputs: [["video"]] },+ "kenburns-still": {+ capability: "still-motion",+ bindings: ["image", "supersample", "width", "height", "duration", "fps", "zoomStart", "zoomEnd", "panStartX", "panStartY", "panEndX", "panEndY", "easeInOut", "chunkFrames", "filenamePrefix"],+ outputs: [["video"]],+ },+ "audio-loop-crossfade": { capability: "audio-loop", bindings: ["audio", "fadeCurve", "crossfade", "duration", "headroomDb", "filenamePrefix"], outputs: [["audio"]] },+ "audio-join-crossfade": { capability: "audio-join", bindings: ["audio", "audio2", "fadeCurve", "crossfade", "filenamePrefix"], outputs: [["audio"]] },+ "video-export-pro": { capability: "export-video", bindings: ["video", "format", "profile", "filenamePrefix"], outputs: [["video"]] },+ "video-sdr-to-hdr": { capability: "sdr-to-hdr", bindings: ["video", "peakNits", "filenamePrefix"], outputs: [["video"]] },+ "video-export-exr": { capability: "export-video", bindings: ["video", "filenamePrefix"], outputs: [["image", "frames"]] },+ "still-to-clip": { capability: "still-motion", bindings: ["image", "width", "height", "duration", "fps", "filenamePrefix"], outputs: [["video"]] },+ "video-append-endcard": { capability: "concat", bindings: ["video", "image", "width", "height", "fps", "duration", "filenamePrefix"], outputs: [["video"]] },+ "scene-mesh-moge": { capability: "scene-3d", bindings: ["image", "checkpoint", "resolutionLevel", "fovX", "decimation", "filenamePrefix"], outputs: [["model3d", "scene"], ["image", "depth"]] },+ "image-to-splat-triposplat": {+ capability: "splat",+ bindings: ["image", "cutout", "numGaussians", "steps", "cfg", "seed", "splatFormat", "orbitFrames", "filenamePrefix"],+ outputs: [["model3d", "splat"], ["video", "turntable"]],+ },+ "reference-brief-gemma4": {+ capability: "write",+ bindings: ["video", "frames", "startFrame", "frameWidth", "checkpoint", "instruction", "seed", "maxTokens", "filenamePrefix"],+ outputs: [["text", "brief"]],+ },+};+/** Loaders whose input is an upload: every one must be a binding, or the graph points at a researcher's file. */+const MEDIA: Record<string, string> = { LoadImage: "image", LoadImageMask: "image", LoadVideo: "file", VHS_LoadVideo: "video", LoadAudio: "audio", VHS_LoadAudioUpload: "audio" };+const ROLES: NonNullable<ManifestOutput["role"]>[] = [+ "cues", "transcript", "language", "layers", "sheet", "tiles", "first-frame", "turntable", "lines", "frame", "frames", "scene", "depth", "splat", "brief",+];++describe("round-4 ComfyUI workflows", () => {+ it.each(Object.entries(ROUND4))("%s: validated, licensed, with the contract's bindings and outputs", (id, want) => {+ const w = byId.get(id);+ expect(w, id).toBeDefined();+ expect(w!.validated).toBe(true);+ expect(w!.license).toBeTruthy();+ expect(w!.notes?.length).toBeGreaterThan(100);+ expect(w!.capability).toBe(want.capability);+ expect(Object.keys(w!.bindings).sort()).toEqual([...want.bindings].sort());+ expect(w!.outputs.map((o) => (o.role ? [o.kind, o.role] : [o.kind]))).toEqual(want.outputs);+ for (const m of w!.models) expect(m.url && m.sizeGb, `${id} ${m.file}`).toBeTruthy();+ const g = graph(id);+ const bound = new Set(Object.values(w!.bindings).flatMap((ts) => ts!.map((t) => `${t.node}.${t.input}`)));+ for (const [nid, n] of Object.entries(g)) {+ expect(subset[n.class_type], `${id}: ${n.class_type} in object_info.subset.json`).toBeTruthy();+ if (MEDIA[n.class_type]) expect(bound.has(`${nid}.${MEDIA[n.class_type]}`), `${id} node ${nid} ${n.class_type}`).toBe(true);+ }+ });++ it("keeps the whole library validated, and every output role is a typed role", () => {+ expect(manifest.workflows.length).toBeGreaterThanOrEqual(132);+ expect(new Set(manifest.workflows.map((w) => w.id)).size).toBe(manifest.workflows.length);+ expect(manifest.workflows.filter((w) => !w.validated).map((w) => w.id)).toEqual([]);+ for (const w of manifest.workflows) for (const o of w.outputs) if (o.role) expect(ROLES, `${w.id} ${o.role}`).toContain(o.role);+ });++ it("states the limits the app plans windows and jobs with", () => {+ for (const id of ["video-inpaint-wan-vace", "video-inpaint-wan-vace-painted", "video-swap-wan-vace", "video-insert-wan-vace"]) {+ expect(byId.get(id)!.limits).toMatchObject({ maxFrames: 81, dimensionMultiple: 16 });+ expect(byId.get(id)!.defaults).toMatchObject({ frameStep: 4, checkpoint: "wan2.1_vace_14B_fp16.safetensors", steps: 4, cfg: 1, loraStrength: 1 });+ }+ expect(byId.get("video-erase-void")!.limits).toMatchObject({ maxFrames: 197 });+ expect(byId.get("kenburns-still")!.limits).toMatchObject({ maxDurationSec: 10 });+ expect(byId.get("audio-loop-crossfade")!.limits).toMatchObject({ maxDurationSec: 600 });+ expect(byId.get("reference-brief-gemma4")!.defaults).toMatchObject({ fps: 24, frameStep: 1, frames: 720 });+ });++ it("writes the TextGenerate instructions back from defaults, word for word", () => {+ expect(byId.get("ocr-lines-qwen35")!.defaults.instruction).toBe(graph("ocr-lines-qwen35")["4"].inputs.prompt);+ expect(String(byId.get("ocr-lines-qwen35")!.defaults.instruction)).toMatch(/\[0, 1000\)/);+ expect(byId.get("reference-brief-gemma4")!.defaults.instruction).toBe(graph("reference-brief-gemma4")["3"].inputs.prompt);+ });++ it("reads painted masks from the red channel (white = erase / the region), like flux1-fill-inpaint", () => {+ for (const id of ["video-inpaint-wan-vace-painted", "video-insert-wan-vace"]) {+ const g = graph(id);+ const [t] = byId.get(id)!.bindings.mask!;+ expect(g[t.node].class_type).toBe("LoadImageMask");+ expect(g[t.node].inputs.channel).toBe("red");+ }+ });++ it("Ken Burns blends linear and eased progress through easeInOut", () => {+ const g = graph("kenburns-still");+ const [ease] = byId.get("kenburns-still")!.bindings.easeInOut!;+ const progress = Object.values(g).find((n) => n.class_type === "ComfyMathExpression" && String(n.inputs.expression).includes("cos("))!;+ expect(progress.inputs["values.c"]).toEqual([ease.node, 0]);+ expect(progress.inputs.expression).toMatch(/^\(1 - c\) \* a \/ max\(b - 1, 1\) \+ c \* \(1 - cos/);+ });++ it("the audio graphs load the crossfade curve the provider writes", () => {+ for (const id of ["audio-loop-crossfade", "audio-join-crossfade"]) {+ const g = graph(id);+ const [curve] = byId.get(id)!.bindings.fadeCurve!;+ expect(g[curve.node].class_type).toBe("LoadAudio");+ expect(Object.values(g).some((n) => n.class_type === "SplitAudioChannels" && JSON.stringify(n.inputs.audio) === JSON.stringify([curve.node, 0]))).toBe(true);+ }+ });++ it("wan21-vace-14b-ref2v runs on the Apache-2.0 lightx2v LoRA, not CausVid (CC-BY-NC-4.0)", () => {+ const w = byId.get("wan21-vace-14b-ref2v")!;+ const g = graph("wan21-vace-14b-ref2v");+ expect(JSON.stringify(g)).not.toMatch(/CausVid/i);+ expect(w.models.map((m) => m.file)).toContain("lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors");+ expect(w.models.some((m) => /CausVid/i.test(m.file))).toBe(false);+ expect(w.license).toMatch(/^Apache-2.0/);+ expect(w.validated).toBe(true);+ const [lora] = w.bindings.loraStrength!;+ expect(g[lora.node].inputs).toMatchObject({ lora_name: "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors", strength_model: 1 });+ const sampler = Object.values(g).find((n) => n.class_type === "KSampler")!;+ expect(sampler.inputs).toMatchObject({ sampler_name: "euler", steps: 4, cfg: 1 });+ expect(w.defaults).toMatchObject({ shift: 5, steps: 4, cfg: 1, loraStrength: 1 });+ });++ it("flags the licence terms people have to know about", () => {+ expect(byId.get("video-erase-void")!.license).toMatch(/CogVideoX License.*commercial use only after registering.*1 million/);+ expect(byId.get("image-to-splat-triposplat")!.license).toMatch(/Built with DINOv3/);+ for (const id of ["video-inpaint-wan-vace", "video-inpaint-wan-vace-painted", "video-swap-wan-vace", "video-insert-wan-vace"]) {+ expect(byId.get(id)!.license, id).toMatch(/KJNodes \(GPL-3.0 code\)/);+ expect(byId.get(id)!.customNodes.map((c) => c.name)).toEqual(["ComfyUI-KJNodes"]);+ }+ });+});diff --git a/workflows/comfyui/audio-join-crossfade.json b/workflows/comfyui/audio-join-crossfade.jsonnew file mode 100644index 00000000..859fa054--- /dev/null+++ b/workflows/comfyui/audio-join-crossfade.json@@ -0,0 +1,251 @@+{+ "1": {+ "class_type": "VHS_LoadAudioUpload",+ "inputs": {+ "audio": "a.wav",+ "start_time": 0,+ "duration": 0+ },+ "_meta": {+ "title": "First clip (audio)"+ }+ },+ "2": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "b.wav"+ },+ "_meta": {+ "title": "Second clip (audio2)"+ }+ },+ "3": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "fade.wav"+ },+ "_meta": {+ "title": "Crossfade curve the provider writes: stereo, left = fade-in, right = fade-out (fadeCurve)"+ }+ },+ "4": {+ "class_type": "SplitAudioChannels",+ "inputs": {+ "audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Fade-in / fade-out curves"+ }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Crossfade seconds (crossfade)"+ }+ },+ "6": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "0 - a",+ "values.a": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "-crossfade"+ }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - b",+ "values.a": [+ "1",+ 1+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "First clip without its tail"+ }+ },+ "8": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "start_index": 0,+ "duration": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "First clip, all but the overlap"+ }+ },+ "9": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "start_index": [+ "6",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "First clip's tail"+ }+ },+ "10": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": 0,+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Second clip's head"+ }+ },+ "11": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "5",+ 0+ ],+ "duration": 100000+ },+ "_meta": {+ "title": "Second clip after the overlap (a long duration = to its end)"+ }+ },+ "12": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "9",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Tail fading out"+ }+ },+ "13": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "10",+ 0+ ],+ "audio2": [+ "4",+ 0+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Head fading in"+ }+ },+ "14": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "12",+ 0+ ],+ "audio2": [+ "13",+ 0+ ],+ "merge_method": "add"+ },+ "_meta": {+ "title": "Overlap"+ }+ },+ "15": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "8",+ 0+ ],+ "audio2": [+ "14",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "First clip + overlap"+ }+ },+ "16": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "15",+ 0+ ],+ "audio2": [+ "11",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "+ the rest of the second clip"+ }+ },+ "17": {+ "class_type": "SaveAudio",+ "inputs": {+ "audio": [+ "16",+ 0+ ],+ "filename_prefix": "fuobe/audio-join-crossfade"+ },+ "_meta": {+ "title": "Save (FLAC)"+ }+ }+}diff --git a/workflows/comfyui/audio-loop-crossfade.json b/workflows/comfyui/audio-loop-crossfade.jsonnew file mode 100644index 00000000..28f00cee--- /dev/null+++ b/workflows/comfyui/audio-loop-crossfade.json@@ -0,0 +1,411 @@+{+ "1": {+ "class_type": "VHS_LoadAudioUpload",+ "inputs": {+ "audio": "music.wav",+ "start_time": 0,+ "duration": 0+ },+ "_meta": {+ "title": "Music clip to loop (audio)"+ }+ },+ "2": {+ "class_type": "AudioAdjustVolume",+ "inputs": {+ "audio": [+ "1",+ 0+ ],+ "volume": -3+ },+ "_meta": {+ "title": "Headroom so overlapping seams never clip (headroomDb)"+ }+ },+ "3": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "fade.wav"+ },+ "_meta": {+ "title": "Crossfade curve the provider writes: stereo, left = fade-in, right = fade-out, crossfade seconds long (fadeCurve)"+ }+ },+ "4": {+ "class_type": "SplitAudioChannels",+ "inputs": {+ "audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Fade-in / fade-out curves"+ }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Crossfade seconds (crossfade; = the curve's length)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 20+ },+ "_meta": {+ "title": "Length of the bed in seconds (duration)"+ }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(ceil((a - b) / (c - b)), 1)",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "5",+ 0+ ],+ "values.c": [+ "1",+ 1+ ]+ },+ "_meta": {+ "title": "Repeats needed"+ }+ },+ "8": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": 0,+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Head (first crossfade seconds)"+ }+ },+ "9": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "0 - a",+ "values.a": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "-crossfade (from the end)"+ }+ },+ "10": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "9",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Tail (last crossfade seconds)"+ }+ },+ "11": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - 2 * b",+ "values.a": [+ "1",+ 1+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Body length"+ }+ },+ "12": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 0+ ],+ "start_index": [+ "5",+ 0+ ],+ "duration": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Body (between head and tail)"+ }+ },+ "13": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "10",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Tail fading out"+ }+ },+ "14": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "8",+ 0+ ],+ "audio2": [+ "4",+ 0+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Head fading in"+ }+ },+ "15": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "13",+ 0+ ],+ "audio2": [+ "14",+ 0+ ],+ "merge_method": "add"+ },+ "_meta": {+ "title": "Seam: tail into head"+ }+ },+ "16": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "12",+ 0+ ],+ "audio2": [+ "15",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "One repeat = body + seam"+ }+ },+ "20": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "simple",+ "mode.num_iterations": [+ "7",+ 1+ ],+ "cache_iterations": false,+ "initial_iteration_value": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Append one repeat per pass (starts from the head)"+ }+ },+ "21": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "20",+ 4+ ],+ "audio2": [+ "16",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Bed so far + one repeat"+ }+ },+ "22": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": false,+ "output_value": [+ "21",+ 0+ ],+ "next_iteration_value": [+ "21",+ 0+ ]+ },+ "_meta": {+ "title": "The looped bed"+ }+ },+ "23": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "22",+ 0+ ],+ "start_index": 0,+ "duration": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Cut to the requested length"+ }+ },+ "24": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a - b",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Start of the final fade"+ }+ },+ "25": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "23",+ 0+ ],+ "start_index": 0,+ "duration": [+ "24",+ 0+ ]+ },+ "_meta": {+ "title": "All but the ending"+ }+ },+ "26": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "23",+ 0+ ],+ "start_index": [+ "9",+ 0+ ],+ "duration": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Ending"+ }+ },+ "27": {+ "class_type": "AudioMerge",+ "inputs": {+ "audio1": [+ "26",+ 0+ ],+ "audio2": [+ "4",+ 1+ ],+ "merge_method": "multiply"+ },+ "_meta": {+ "title": "Ending fades out"+ }+ },+ "28": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "25",+ 0+ ],+ "audio2": [+ "27",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Finished bed"+ }+ },+ "29": {+ "class_type": "SaveAudio",+ "inputs": {+ "audio": [+ "28",+ 0+ ],+ "filename_prefix": "fuobe/audio-loop-crossfade"+ },+ "_meta": {+ "title": "Save (FLAC)"+ }+ }+}diff --git a/workflows/comfyui/image-to-splat-triposplat.json b/workflows/comfyui/image-to-splat-triposplat.jsonnew file mode 100644index 00000000..e0c5c931--- /dev/null+++ b/workflows/comfyui/image-to-splat-triposplat.json@@ -0,0 +1,304 @@+{+ "41": {+ "inputs": {+ "fps": 25,+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264",+ "images": [+ "75",+ 0+ ]+ },+ "class_type": "CreateVideo",+ "_meta": {+ "title": "Create Video"+ }+ },+ "42": {+ "inputs": {+ "filename_prefix": "fuobe/image-to-splat-triposplat",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto",+ "video": [+ "41",+ 0+ ]+ },+ "class_type": "SaveVideo",+ "_meta": {+ "title": "Save Video"+ }+ },+ "51": {+ "inputs": {+ "filename_prefix": "fuobe/image-to-splat-triposplat",+ "mesh": [+ "92",+ 0+ ]+ },+ "class_type": "SaveGLB",+ "_meta": {+ "title": "Save 3D Model"+ }+ },+ "75": {+ "inputs": {+ "width": 1024,+ "height": 1024,+ "frames": 75,+ "splat_scale": 1,+ "sharpen": 2,+ "headlight_shading": 0,+ "opacity_threshold": 0,+ "render_style": "color",+ "background": "#848484",+ "splat": [+ "88:55",+ 0+ ],+ "camera_info": [+ "79",+ 0+ ]+ },+ "class_type": "RenderSplat",+ "_meta": {+ "title": "Render Splat"+ }+ },+ "79": {+ "inputs": {+ "mode": "orbit",+ "mode.yaw": 35,+ "mode.pitch": 30,+ "mode.distance": 2.5,+ "target_x": 0,+ "target_y": 0,+ "target_z": 0,+ "roll": 0,+ "fov": 35,+ "zoom": 1,+ "camera_type": "perspective"+ },+ "class_type": "CreateCameraInfo",+ "_meta": {+ "title": "Create Camera Info"+ }+ },+ "92": {+ "inputs": {+ "format": "spz",+ "splat": [+ "88:55",+ 0+ ]+ },+ "class_type": "SplatToFile3D",+ "_meta": {+ "title": "Create 3D File (from Splat)"+ }+ },+ "99": {+ "inputs": {+ "image": "subject.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Load Image"+ }+ },+ "88:2": {+ "inputs": {+ "erode_radius": 1,+ "size": 1024,+ "image": [+ "99",+ 0+ ],+ "mask": [+ "88:35",+ 0+ ]+ },+ "class_type": "TripoSplatPreprocessImage",+ "_meta": {+ "title": "TripoSplat Preprocess Image"+ }+ },+ "88:6": {+ "inputs": {+ "seed": 46,+ "steps": 20,+ "cfg": 3,+ "sampler_name": "dpmpp_2m",+ "scheduler": "simple",+ "denoise": 1,+ "model": [+ "88:96",+ 0+ ],+ "positive": [+ "88:24",+ 0+ ],+ "negative": [+ "88:24",+ 1+ ],+ "latent_image": [+ "88:24",+ 2+ ]+ },+ "class_type": "KSampler",+ "_meta": {+ "title": "KSampler"+ }+ },+ "88:7": {+ "inputs": {+ "clip_name": "dino_v3_vit_h.safetensors"+ },+ "class_type": "CLIPVisionLoader",+ "_meta": {+ "title": "Load CLIP Vision"+ }+ },+ "88:8": {+ "inputs": {+ "vae_name": "flux2-vae.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "88:11": {+ "inputs": {+ "vae_name": "triposplat_vae_decoder_fp16.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "88:16": {+ "inputs": {+ "unet_name": "triposplat_fp16.safetensors",+ "weight_dtype": "default"+ },+ "class_type": "UNETLoader",+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "88:24": {+ "inputs": {+ "clip_vision": [+ "88:7",+ 0+ ],+ "vae": [+ "88:8",+ 0+ ],+ "image": [+ "88:2",+ 0+ ]+ },+ "class_type": "TripoSplatConditioning",+ "_meta": {+ "title": "TripoSplat Conditioning"+ }+ },+ "88:35": {+ "inputs": {+ "switch": true,+ "on_false": [+ "88:95",+ 0+ ],+ "on_true": [+ "88:85:81",+ 0+ ]+ },+ "class_type": "ComfySwitchNode",+ "_meta": {+ "title": "Switch: Mask Source"+ }+ },+ "88:55": {+ "inputs": {+ "num_gaussians": 262144,+ "seed": 790219963981395,+ "samples": [+ "88:6",+ 0+ ],+ "vae": [+ "88:11",+ 0+ ]+ },+ "class_type": "VAEDecodeTripoSplat",+ "_meta": {+ "title": "TripoSplat Decode"+ }+ },+ "88:85:81": {+ "inputs": {+ "bg_removal_model": [+ "88:85:82",+ 0+ ],+ "image": [+ "99",+ 0+ ]+ },+ "class_type": "RemoveBackground",+ "_meta": {+ "title": "Remove Background"+ }+ },+ "88:85:82": {+ "inputs": {+ "bg_removal_name": "birefnet.safetensors"+ },+ "class_type": "LoadBackgroundRemovalModel",+ "_meta": {+ "title": "Load Background Removal Model"+ }+ },+ "88:95": {+ "inputs": {+ "mask": [+ "99",+ 1+ ]+ },+ "class_type": "InvertMask",+ "_meta": {+ "title": "Invert Mask"+ }+ },+ "88:96": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": false,+ "on_false": [+ "88:16",+ 0+ ],+ "on_true": [+ "88:16",+ 0+ ]+ }+ }+}diff --git a/workflows/comfyui/kenburns-still.json b/workflows/comfyui/kenburns-still.jsonnew file mode 100644index 00000000..f6e96c95--- /dev/null+++ b/workflows/comfyui/kenburns-still.json@@ -0,0 +1,577 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "still.png"+ },+ "_meta": {+ "title": "Still (image)"+ }+ },+ "2": {+ "class_type": "ImageScaleBy",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "lanczos",+ "scale_by": 2+ },+ "_meta": {+ "title": "Supersample the still (supersample): finer crop steps"+ }+ },+ "3": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 1280+ },+ "_meta": {+ "title": "Output width (width)"+ }+ },+ "5": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 720+ },+ "_meta": {+ "title": "Output height (height)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 5+ },+ "_meta": {+ "title": "Seconds (duration)"+ }+ },+ "7": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per second (fps)"+ }+ },+ "8": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 2)",+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Frame count = duration x fps"+ }+ },+ "9": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Zoom at the start (zoomStart; 1 = the widest crop)"+ }+ },+ "10": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1.25+ },+ "_meta": {+ "title": "Zoom at the end (zoomEnd)"+ }+ },+ "11": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.5+ },+ "_meta": {+ "title": "Centre x at the start, 0-1 (panStartX)"+ }+ },+ "12": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.5+ },+ "_meta": {+ "title": "Centre y at the start, 0-1 (panStartY)"+ }+ },+ "13": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.6+ },+ "_meta": {+ "title": "Centre x at the end, 0-1 (panEndX)"+ }+ },+ "14": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.45+ },+ "_meta": {+ "title": "Centre y at the end, 0-1 (panEndY)"+ }+ },+ "15": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a, b * c / d)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "3",+ 1+ ],+ "values.c": [+ "4",+ 0+ ],+ "values.d": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Widest crop with the output's shape: width"+ }+ },+ "16": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(b, a * d / c)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "3",+ 1+ ],+ "values.c": [+ "4",+ 0+ ],+ "values.d": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Widest crop with the output's shape: height"+ }+ },+ "17": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per encoded chunk (chunkFrames)"+ }+ },+ "18": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "ceil(a / b)",+ "values.a": [+ "8",+ 1+ ],+ "values.b": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "Chunk count"+ }+ },+ "19": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 1+ },+ "_meta": {+ "title": "Easing (easeInOut): 1 = ease in-out, 0 = linear"+ }+ },+ "20": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "For",+ "mode.start_iteration_index": [+ "41",+ 1+ ],+ "mode.max_iteration": [+ "42",+ 1+ ],+ "mode.step": 1,+ "cache_iterations": false,+ "parent_iteration": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "One pass per frame of the chunk"+ }+ },+ "21": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "(1 - c) * a / max(b - 1, 1) + c * (1 - cos(3.141592653589793 * a / max(b - 1, 1))) / 2",+ "values.a": [+ "20",+ 0+ ],+ "values.b": [+ "8",+ 1+ ],+ "values.c": [+ "19",+ 0+ ]+ },+ "_meta": {+ "title": "Progress 0..1 (linear, eased or a blend)"+ }+ },+ "22": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a + (b - a) * c",+ "values.a": [+ "9",+ 0+ ],+ "values.b": [+ "10",+ 0+ ],+ "values.c": [+ "21",+ 0+ ]+ },+ "_meta": {+ "title": "Zoom of this frame"+ }+ },+ "23": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "15",+ 0+ ],+ "values.b": [+ "22",+ 0+ ]+ },+ "_meta": {+ "title": "Crop width"+ }+ },+ "24": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "16",+ 0+ ],+ "values.b": [+ "22",+ 0+ ]+ },+ "_meta": {+ "title": "Crop height"+ }+ },+ "25": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(max((a + (b - a) * c) * d - e / 2, 0), d - e)",+ "values.a": [+ "11",+ 0+ ],+ "values.b": [+ "13",+ 0+ ],+ "values.c": [+ "21",+ 0+ ],+ "values.d": [+ "3",+ 0+ ],+ "values.e": [+ "23",+ 1+ ]+ },+ "_meta": {+ "title": "Crop left"+ }+ },+ "26": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(max((a + (b - a) * c) * d - e / 2, 0), d - e)",+ "values.a": [+ "12",+ 0+ ],+ "values.b": [+ "14",+ 0+ ],+ "values.c": [+ "21",+ 0+ ],+ "values.d": [+ "3",+ 1+ ],+ "values.e": [+ "24",+ 1+ ]+ },+ "_meta": {+ "title": "Crop top"+ }+ },+ "27": {+ "class_type": "ImageCrop",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "width": [+ "23",+ 1+ ],+ "height": [+ "24",+ 1+ ],+ "x": [+ "25",+ 1+ ],+ "y": [+ "26",+ 1+ ]+ },+ "_meta": {+ "title": "Crop this frame"+ }+ },+ "28": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "27",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "4",+ 0+ ],+ "height": [+ "5",+ 0+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "To the output size"+ }+ },+ "29": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": true,+ "output_value": [+ "28",+ 0+ ]+ },+ "_meta": {+ "title": "The chunk's frames"+ }+ },+ "30": {+ "class_type": "RebatchImages",+ "inputs": {+ "images": [+ "29",+ 0+ ],+ "batch_size": 4096+ },+ "_meta": {+ "title": "As one batch"+ }+ },+ "31": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "30",+ 0+ ],+ "fps": [+ "7",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Encode the chunk now (its frames can leave memory)"+ }+ },+ "32": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "44",+ 0+ ],+ "filename_prefix": "fuobe/kenburns-still",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "StartLoop",+ "inputs": {+ "mode": "For",+ "mode.start_iteration_index": 0,+ "mode.max_iteration": [+ "18",+ 1+ ],+ "mode.step": 1,+ "cache_iterations": false+ },+ "_meta": {+ "title": "One pass per chunk"+ }+ },+ "41": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a * b",+ "values.a": [+ "40",+ 0+ ],+ "values.b": [+ "17",+ 0+ ]+ },+ "_meta": {+ "title": "First frame of this chunk"+ }+ },+ "42": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a * b + b, c)",+ "values.a": [+ "40",+ 0+ ],+ "values.b": [+ "17",+ 0+ ],+ "values.c": [+ "8",+ 1+ ]+ },+ "_meta": {+ "title": "End of this chunk (exclusive)"+ }+ },+ "43": {+ "class_type": "EndLoop",+ "inputs": {+ "accumulate": true,+ "output_value": [+ "31",+ 0+ ]+ },+ "_meta": {+ "title": "The encoded chunks"+ }+ },+ "44": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "43",+ 0+ ],+ "codec": "auto"+ },+ "_meta": {+ "title": "Chunks in order"+ }+ }+}diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex b1940c4e..b3254c75 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -1,6 +1,6 @@{"version": 1,- "generatedAt": "2026-10-21T15:15:54.549Z",+ "generatedAt": "2026-10-22T23:27:12.402Z","comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597","comfyuiVersion": "0.41.0","workflowTemplatesVersion": "0.11.86",@@ -3520,7 +3520,7 @@"title": "Wan 2.1 VACE 14B Reference to Video","capability": "ref2v","file": "wan21-vace-14b-ref2v.json",- "source": "official template video_wan_vace_14B_ref2v from comfyui-workflow-templates 0.11.86",+ "source": "official template video_wan_vace_14B_ref2v from comfyui-workflow-templates 0.11.86 (modified, see notes)","bindings": {"prompt": [{@@ -3588,6 +3588,12 @@"input": "shift"}],+ "loraStrength": [+ {+ "node": "115",+ "input": "strength_model"+ }+ ],"filenamePrefix": [{"node": "69",@@ -3608,7 +3614,8 @@"fps": 16,"steps": 4,"cfg": 1,- "shift": 8,+ "shift": 5,+ "loraStrength": 1,"frameStep": 4},"limits": {@@ -3631,10 +3638,10 @@"sizeGb": 0.25},{- "file": "Wan21_CausVid_14B_T2V_lora_rank32.safetensors",+ "file": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","folder": "loras",- "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan21_CausVid_14B_T2V_lora_rank32.safetensors",- "sizeGb": 0.32+ "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "sizeGb": 0.63},{"file": "umt5_xxl_fp16.safetensors",@@ -3645,8 +3652,9 @@],"customNodes": [],"vramGb": 32,+ "license": "Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE)","validated": true,- "notes": "Subject/character reference (not a first frame): the reference appears in a newly composed scene. fp16 14B weights (34.7 GB) + CausVid LoRA at 0.3 for 4-step sampling. 24 GB cards need weight_dtype fp8_e4m3fn on node 113."+ "notes": "Subject/character reference (not a first frame): the reference appears in a newly composed scene. fp16 14B weights (34.7 GB) + the lightx2v T2V 4-step LoRA at 1.0: 4 steps, cfg 1, euler, shift 5 (loraStrength 0 + steps 20 + cfg 6 = the slow full-quality path). 24 GB cards need weight_dtype fp8_e4m3fn on node 113. Changed in round 4: the template ships the CausVid LoRA (CC-BY-NC-4.0, non-commercial) at 0.3 with uni_pc and shift 8; it was swapped for the Apache-2.0 lightx2v LoRA (lightx2v/Wan2.1-T2V-14B-StepDistill-CfgDistill) with the settings of the round-4 VACE graphs. The lightx2v + VACE 14B pairing is inferred, not GPU-tested."},{"id": "wan22-s2v-14b",@@ -11481,6 +11489,1856 @@"validated": true,"notes": "The dub voice track, all core nodes. The template places one line: EmptyAudio of the video's length (duration) is the track, the line (audio) is cut where the next line starts (TrimAudioDuration), put after startTime seconds of silence (AudioConcat after EmptyAudio) and added onto the track (AudioMerge add: pads or cuts the line to the track). The provider rewrites the graph per request (expandTimelineWorkflow, src/lib/av/timeline.ts): params.extra.timeline = {length, clips:[{start, duration}]} with one inputs.audios clip per entry, each loaded, cut, led in and added in turn, so the saved track is exactly as long as the video with every line at its cue time (pauses kept). SaveAudio writes FLAC (lossless, no MP3 priming delay). Feeds lip re-sync (InfiniteTalk frames = the track's length = the video's) and video-mux-audio. Runs on CPU.","expand": "timeline"+ },+ {+ "id": "ocr-lines-qwen35",+ "title": "Text lines with boxes for Layers: OvisOCR3 (Qwen3.5 0.8B OCR fine-tune) through core TextGenerate",+ "capability": "ocr",+ "file": "ocr-lines-qwen35.json",+ "source": "hand-built (scripts/comfy/hand-built/ocr-lines-qwen35.json)",+ "bindings": {+ "image": [+ {+ "node": "1",+ "input": "image"+ }+ ],+ "maxSize": [+ {+ "node": "2",+ "input": "largest_size"+ }+ ],+ "checkpoint": [+ {+ "node": "3",+ "input": "clip_name"+ }+ ],+ "instruction": [+ {+ "node": "4",+ "input": "prompt"+ }+ ],+ "maxTokens": [+ {+ "node": "4",+ "input": "max_length"+ }+ ],+ "filenamePrefix": [+ {+ "node": "5",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "5",+ "kind": "text",+ "role": "lines"+ },+ {+ "node": "8",+ "kind": "text",+ "role": "frame"+ }+ ],+ "defaults": {+ "maxSize": 1280,+ "maxTokens": 2048,+ "checkpoint": "ovisocr3_0.8b_bf16.safetensors",+ "instruction": "Locate and transcribe every readable line of text in the image. Return a single JSON array in natural reading order.\n\nEach element follows this schema:\n`{\"bbox\": [x_min, y_min, x_max, y_max], \"text\": \"string\"}`\n\nRules:\n1. Use line-level annotations. Each element must represent exactly one visible line of text; keep the words of one line together and do not merge separate lines.\n2. The bbox coordinates are integers scaled to [0, 1000).\n3. Each bbox must tightly enclose its line.\n4. Preserve the original text exactly without translation, paraphrasing, correction, or completion.\n5. Output strictly valid JSON only. Do not output Markdown, explanations, or code fences."+ },+ "limits": {},+ "models": [+ {+ "file": "ovisocr3_0.8b_bf16.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/ATH-MaaS/OvisOCR3/resolve/main/model.safetensors",+ "sizeGb": 1.71+ }+ ],+ "customNodes": [],+ "vramGb": 3,+ "license": "Apache-2.0 (OvisOCR3 weights by ATH-MaaS; the Qwen3.5 fallback checkpoints); ComfyUI core TextGenerate",+ "validated": true,+ "notes": "Output 1 (role lines, SaveText .json): a JSON array in reading order, [{\"bbox\":[x0,y0,x1,y1],\"text\":\"...\"}], one item per text line, box corners as integers RELATIVE 0-1000 of the image (checked against rendered ground truth: (60, 81) px in a 1024x768 poster came back as (62, 96)). App code must strip ``` / ```json fences, accept both bbox/text and bbox_2d/text_content (the general Qwen3.5 checkpoints answer that way), divide the corners by 1000 and turn them into OutputFile.meta.lines [{text, bbox:[x, y, w, h] normalised 0-1}] (OutputFile.text = the lines joined by newlines). Output 2 (role frame, PreviewAny text): {\"width\", \"height\", \"coords\": \"relative-1000\"}, the size the model saw after the maxSize scaling. instruction = defaults.instruction: OvisOCR3's prompts/word_spotting.txt changed from word to line level (use the original prompt for word boxes). Greedy decoding (sampling off): no seed. maxSize 1280 keeps small print legible. checkpoint: ovisocr3_0.8b_bf16.safetensors (1.71 GB; upstream ATH-MaaS/OvisOCR3 model.safetensors, save it under this name), or qwen3.5_0.8b_bf16 (1.75 GB, Qwen/Qwen3.5-0.8B saved under that name), qwen3.5_2b_bf16 (4.55 GB) or qwen3.5_4b_bf16 (9.32 GB, already in the library); the Qwen3.5 checkpoints wrap the JSON in fences, use bbox_2d/text_content and split lines more often. Measured on the 4-core CPU server: OvisOCR3 161-194 s per poster (5/5 lines, mean IoU 0.82, also a 12-degree rotated sticker), Qwen3.5-0.8B 396 s (5/5) and 645 s on a busy poster (4/5); seconds on a GPU (inferred). Tested on ComfyUI v0.41; v0.42 (#17121) writes the empty think block exactly as Qwen3.5's template."+ },+ {+ "id": "video-inpaint-wan-vace",+ "title": "Remove an object from a video by naming it: SAM 3.1 tracking + Wan 2.1 VACE 14B fill (lightx2v 4-step)",+ "capability": "remove-object",+ "file": "video-inpaint-wan-vace.json",+ "source": "hand-built (scripts/comfy/hand-built/video-inpaint-wan-vace.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "startFrame": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "frames": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "6",+ "input": "width"+ },+ {+ "node": "19",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "6",+ "input": "height"+ },+ {+ "node": "19",+ "input": "height"+ }+ ],+ "maskPrompt": [+ {+ "node": "8",+ "input": "text"+ }+ ],+ "maskGrow": [+ {+ "node": "11",+ "input": "expand"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "negativePrompt": [+ {+ "node": "17",+ "input": "text"+ }+ ],+ "checkpoint": [+ {+ "node": "20",+ "input": "unet_name"+ }+ ],+ "loraStrength": [+ {+ "node": "21",+ "input": "strength_model"+ }+ ],+ "shift": [+ {+ "node": "22",+ "input": "shift"+ }+ ],+ "seed": [+ {+ "node": "23",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "23",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "23",+ "input": "cfg"+ }+ ],+ "filenamePrefix": [+ {+ "node": "38",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "38",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 832,+ "height": 480,+ "frames": 81,+ "steps": 4,+ "cfg": 1,+ "shift": 5,+ "loraStrength": 1,+ "startFrame": 0,+ "maskGrow": 16,+ "frameStep": 4,+ "checkpoint": "wan2.1_vace_14B_fp16.safetensors"+ },+ "limits": {+ "maxWidth": 1280,+ "maxHeight": 1280,+ "maxFrames": 81,+ "dimensionMultiple": 16+ },+ "models": [+ {+ "file": "sam3.1_multiplex_fp16.safetensors",+ "folder": "checkpoints",+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",+ "sizeGb": 1.75+ },+ {+ "file": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "sizeGb": 6.74+ },+ {+ "file": "wan_2.1_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "wan2.1_vace_14B_fp16.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors",+ "sizeGb": 34.68+ },+ {+ "file": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "sizeGb": 0.63+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-KJNodes",+ "repo": "https://github.com/kijai/ComfyUI-KJNodes"+ }+ ],+ "vramGb": 24,+ "license": "Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)",+ "validated": true,+ "notes": "maskPrompt = what to remove (SAM 3.1 text prompt, e.g. \"the man in the red jacket\"; up to 4 matching objects are tracked); prompt = the scene WITHOUT it. One window per job: frames (4n+1, at most 81) from startFrame, both in SOURCE frames, because the graph runs at the clip's own fps (GetVideoComponents): the provider computes them with the fps of the clip's header, not the 16 fps default. Longer clips: one job per window, joined with video-concat-N (seams between windows untested, inferred). width x height = the work size VACE renders at (multiple of 16, 832x480 by default); give it the clip's shape (aspect ratio \"auto\"): the window is centre-cropped to it and the result is scaled back to the source size uncropped. SAM3_VideoTrack follows the object through the window, GrowMask (maskGrow px) covers edges and contact shadows, the control video blanks the masked area (as Comfy-Org's video_wan_vace_inpainting template) and WanVaceToVideo regenerates it. The result is pasted into the ORIGINAL frames at full resolution through a 6 px soft mask (GrowMaskWithBlur): every pixel outside the mask stays the source's own. The window's sound is kept (silent clips work). Speed: the template's CausVid LoRA is CC-BY-NC-4.0, so this uses the Apache-2.0 lightx2v T2V 4-step LoRA (4 steps, cfg 1, euler, shift 5; the pairing with VACE is inferred, not GPU-tested); loraStrength 0 + steps 20 + cfg 6 is the slow full-quality path. checkpoint wan2.1_vace_1.3B_fp16.safetensors (4.31 GB) fits 8 GB cards and needs loraStrength 0, steps 20, cfg 6 (no 4-step LoRA for 1.3B). No new download: every default file is already in the library. Validated by /prompt only (no GPU here); the window-and-sound part (ImageFromBatch + TrimAudioDuration at the clip's fps -> CreateVideo) ran on CPU on a clip with sound (the window's 0.84 s kept) and a silent one (no audio track, no error)."+ },+ {+ "id": "video-inpaint-wan-vace-painted",+ "title": "Remove an object painted on the first frame: SAM 3.1 tracks the mask + Wan 2.1 VACE 14B fill (lightx2v 4-step)",+ "capability": "remove-object",+ "file": "video-inpaint-wan-vace-painted.json",+ "source": "hand-built (scripts/comfy/hand-built/video-inpaint-wan-vace-painted.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "mask": [+ {+ "node": "70",+ "input": "image"+ }+ ],+ "startFrame": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "frames": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "6",+ "input": "width"+ },+ {+ "node": "19",+ "input": "width"+ },+ {+ "node": "72",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "6",+ "input": "height"+ },+ {+ "node": "19",+ "input": "height"+ },+ {+ "node": "72",+ "input": "height"+ }+ ],+ "maskGrow": [+ {+ "node": "11",+ "input": "expand"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "negativePrompt": [+ {+ "node": "17",+ "input": "text"+ }+ ],+ "checkpoint": [+ {+ "node": "20",+ "input": "unet_name"+ }+ ],+ "loraStrength": [+ {+ "node": "21",+ "input": "strength_model"+ }+ ],+ "shift": [+ {+ "node": "22",+ "input": "shift"+ }+ ],+ "seed": [+ {+ "node": "23",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "23",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "23",+ "input": "cfg"+ }+ ],+ "filenamePrefix": [+ {+ "node": "38",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "38",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 832,+ "height": 480,+ "frames": 81,+ "steps": 4,+ "cfg": 1,+ "shift": 5,+ "loraStrength": 1,+ "startFrame": 0,+ "maskGrow": 16,+ "frameStep": 4,+ "checkpoint": "wan2.1_vace_14B_fp16.safetensors"+ },+ "limits": {+ "maxWidth": 1280,+ "maxHeight": 1280,+ "maxFrames": 81,+ "dimensionMultiple": 16+ },+ "models": [+ {+ "file": "sam3.1_multiplex_fp16.safetensors",+ "folder": "checkpoints",+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",+ "sizeGb": 1.75+ },+ {+ "file": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "sizeGb": 6.74+ },+ {+ "file": "wan_2.1_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "wan2.1_vace_14B_fp16.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors",+ "sizeGb": 34.68+ },+ {+ "file": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "sizeGb": 0.63+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-KJNodes",+ "repo": "https://github.com/kijai/ComfyUI-KJNodes"+ }+ ],+ "vramGb": 24,+ "license": "Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)",+ "validated": true,+ "notes": "mask = a PNG of the window's FIRST frame, read from the red channel: white = the object to remove, black = keep (the clip's shape; it is scaled to the work size like the frames). SAM3_VideoTrack takes it as initial_mask and tracks the object through the window. Changed from the research graph: the mask is read from the red channel (Fuobe's mask convention, as flux1-fill-inpaint) instead of alpha. Everything else as video-inpaint-wan-vace: windows of frames (4n+1, at most 81) from startFrame in source frames, width x height in the clip's shape, paste-back into the original frames, the window's sound kept. For a window after the first, the mask must be painted on (or tracked to) that window's first frame. Validated by /prompt only (no GPU here)."+ },+ {+ "id": "video-erase-void",+ "title": "Remove an object AND what it causes (shadows, reflections, things it moves): Netflix VOID, two passes (core nodes)",+ "capability": "remove-object",+ "file": "video-erase-void.json",+ "source": "hand-built (scripts/comfy/hand-built/video-erase-void.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "startFrame": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "frames": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "6",+ "input": "width"+ },+ {+ "node": "19",+ "input": "width"+ },+ {+ "node": "41",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "6",+ "input": "height"+ },+ {+ "node": "19",+ "input": "height"+ },+ {+ "node": "41",+ "input": "height"+ }+ ],+ "maskPrompt": [+ {+ "node": "8",+ "input": "text"+ }+ ],+ "maskGrow": [+ {+ "node": "11",+ "input": "expand"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "negativePrompt": [+ {+ "node": "17",+ "input": "text"+ }+ ],+ "cfg": [+ {+ "node": "21",+ "input": "cfg"+ },+ {+ "node": "44",+ "input": "cfg"+ }+ ],+ "steps": [+ {+ "node": "22",+ "input": "steps"+ },+ {+ "node": "45",+ "input": "steps"+ }+ ],+ "seed": [+ {+ "node": "24",+ "input": "noise_seed"+ }+ ],+ "skipPass2": [+ {+ "node": "49",+ "input": "value"+ }+ ],+ "filenamePrefix": [+ {+ "node": "52",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "52",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 672,+ "height": 384,+ "frames": 45,+ "steps": 30,+ "cfg": 6,+ "startFrame": 0,+ "maskGrow": 8+ },+ "limits": {+ "maxFrames": 197,+ "dimensionMultiple": 8+ },+ "models": [+ {+ "file": "sam3.1_multiplex_fp16.safetensors",+ "folder": "checkpoints",+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",+ "sizeGb": 1.75+ },+ {+ "file": "t5xxl_fp16.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/void-model/resolve/main/text_encoders/t5xxl_fp16.safetensors",+ "sizeGb": 9.79+ },+ {+ "file": "cogvideox_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/void-model/resolve/main/vae/cogvideox_vae.safetensors",+ "sizeGb": 0.43+ },+ {+ "file": "void_pass1.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass1.safetensors",+ "sizeGb": 11.14+ },+ {+ "file": "raft_large_C_T_SKHT_V2-ff5fadd5.safetensors",+ "folder": "optical_flow",+ "url": "https://huggingface.co/Comfy-Org/void-model/resolve/main/optical_flow/raft_large_C_T_SKHT_V2-ff5fadd5.safetensors",+ "sizeGb": 0.02+ },+ {+ "file": "void_pass2.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/void-model/resolve/main/diffusion_models/void_pass2.safetensors",+ "sizeGb": 11.14+ }+ ],+ "customNodes": [],+ "vramGb": 40,+ "license": "VOID weights Apache-2.0 (netflix/void-model), BUT fine-tuned from CogVideoX-Fun-V1.5-5b-InP, whose 5B transformer is under the CogVideoX License: free for academic research; commercial use only after registering for its basic commercial licence (open.bigmodel.cn), and at most 1 million service visits a month without a further licence; no military or illegal use. T5-XXL and the CogVideoX VAE Apache-2.0; RAFT BSD-3-Clause; SAM 3.1 under Meta's SAM License",+ "validated": true,+ "notes": "The premium removal: VOID also removes what the object causes (shadows, reflections, objects it holds falling). Comfy-Org template utility_void_video_inpainting (2026-05-14), flattened, with SAM3_VideoTrack (maskPrompt) instead of per-frame SAM3_Detect. The binary mask goes straight into VOIDInpaintConditioning (1 = remove) as in the template; VOIDQuadmaskPreprocess is only for VOID's own 4-level quadmasks. frames is rounded down by the node so the latent length is even: 45, 53, 61 ... 197 (8n+5), counted in source frames from startFrame like the VACE graphs. Output = the work size (672x384 by default, VOID's training size; multiples of 8), not the source size: the whole frame is re-rendered, so upscale afterwards if needed. The window's sound is kept. Pass 2 re-samples with noise warped along pass 1's optical flow (RAFT) for steadier long clips; skipPass2 true halves the time (pass 1 \"is sufficient for most videos\" per Netflix's card). The switch is lazy, so pass 2 does not run then, but void_pass2 and the RAFT file must still be installed (/prompt checks every loader that feeds the output). Downloads 32.5 GB: 2 x 11.14 GB passes, T5-XXL fp16 9.79 GB (the same file as FLUX's t5xxl_fp16), CogVideoX VAE 0.43 GB, RAFT 0.02 GB. VRAM in ComfyUI is unverified: Netflix's reference code needs 40 GB+, a 24 GB card with offloading is plausible (inferred). Validated by /prompt only (no GPU here)."+ },+ {+ "id": "video-swap-wan-vace",+ "title": "Swap an object or character for a reference image: SAM 3.1 tracking + Wan 2.1 VACE 14B with reference (lightx2v 4-step)",+ "capability": "video-swap",+ "file": "video-swap-wan-vace.json",+ "source": "hand-built (scripts/comfy/hand-built/video-swap-wan-vace.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "image": [+ {+ "node": "40",+ "input": "image"+ }+ ],+ "startFrame": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "frames": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "6",+ "input": "width"+ },+ {+ "node": "19",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "6",+ "input": "height"+ },+ {+ "node": "19",+ "input": "height"+ }+ ],+ "maskPrompt": [+ {+ "node": "8",+ "input": "text"+ }+ ],+ "maskGrow": [+ {+ "node": "11",+ "input": "expand"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "negativePrompt": [+ {+ "node": "17",+ "input": "text"+ }+ ],+ "checkpoint": [+ {+ "node": "20",+ "input": "unet_name"+ }+ ],+ "loraStrength": [+ {+ "node": "21",+ "input": "strength_model"+ }+ ],+ "shift": [+ {+ "node": "22",+ "input": "shift"+ }+ ],+ "seed": [+ {+ "node": "23",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "23",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "23",+ "input": "cfg"+ }+ ],+ "filenamePrefix": [+ {+ "node": "38",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "38",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 832,+ "height": 480,+ "frames": 81,+ "steps": 4,+ "cfg": 1,+ "shift": 5,+ "loraStrength": 1,+ "startFrame": 0,+ "maskGrow": 16,+ "frameStep": 4,+ "checkpoint": "wan2.1_vace_14B_fp16.safetensors"+ },+ "limits": {+ "maxWidth": 1280,+ "maxHeight": 1280,+ "maxFrames": 81,+ "dimensionMultiple": 16+ },+ "models": [+ {+ "file": "sam3.1_multiplex_fp16.safetensors",+ "folder": "checkpoints",+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",+ "sizeGb": 1.75+ },+ {+ "file": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "sizeGb": 6.74+ },+ {+ "file": "wan_2.1_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "wan2.1_vace_14B_fp16.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors",+ "sizeGb": 34.68+ },+ {+ "file": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "sizeGb": 0.63+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-KJNodes",+ "repo": "https://github.com/kijai/ComfyUI-KJNodes"+ }+ ],+ "vramGb": 24,+ "license": "Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)",+ "validated": true,+ "notes": "Genjutsu \"Object Swap\" on the open engine. maskPrompt = what to replace (the tracked mask, as video-inpaint-wan-vace); image = the new object, product or character, best cut out on a plain or white background (bg-remove-birefnet); prompt describes the result. The reference goes to WanVaceToVideo.reference_image (one extra latent frame that TrimVideoLatent drops) and the masked area is regenerated following the original motion. One image: with several references the provider sends the first (or a collage). Window rules (frames 4n+1 <= 81 from startFrame in source frames, width x height in the clip's shape), the paste-back into the original frames and the kept sound are as video-inpaint-wan-vace. For a whole person, SCAIL-2 Character Replacement (template video_wan21_scail2_character_replacement) keeps the body motion better (not built). Validated by /prompt only (no GPU here)."+ },+ {+ "id": "video-insert-wan-vace",+ "title": "Insert an object into a painted region: Wan 2.1 VACE 14B with a reference image (region held for the whole window)",+ "capability": "video-insert",+ "file": "video-insert-wan-vace.json",+ "source": "hand-built (scripts/comfy/hand-built/video-insert-wan-vace.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "image": [+ {+ "node": "40",+ "input": "image"+ }+ ],+ "mask": [+ {+ "node": "70",+ "input": "image"+ }+ ],+ "startFrame": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "frames": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "6",+ "input": "width"+ },+ {+ "node": "19",+ "input": "width"+ },+ {+ "node": "72",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "6",+ "input": "height"+ },+ {+ "node": "19",+ "input": "height"+ },+ {+ "node": "72",+ "input": "height"+ }+ ],+ "maskGrow": [+ {+ "node": "11",+ "input": "expand"+ }+ ],+ "prompt": [+ {+ "node": "16",+ "input": "text"+ }+ ],+ "negativePrompt": [+ {+ "node": "17",+ "input": "text"+ }+ ],+ "checkpoint": [+ {+ "node": "20",+ "input": "unet_name"+ }+ ],+ "loraStrength": [+ {+ "node": "21",+ "input": "strength_model"+ }+ ],+ "shift": [+ {+ "node": "22",+ "input": "shift"+ }+ ],+ "seed": [+ {+ "node": "23",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "23",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "23",+ "input": "cfg"+ }+ ],+ "filenamePrefix": [+ {+ "node": "38",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "38",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 832,+ "height": 480,+ "frames": 81,+ "steps": 4,+ "cfg": 1,+ "shift": 5,+ "loraStrength": 1,+ "startFrame": 0,+ "maskGrow": 16,+ "frameStep": 4,+ "checkpoint": "wan2.1_vace_14B_fp16.safetensors"+ },+ "limits": {+ "maxWidth": 1280,+ "maxHeight": 1280,+ "maxFrames": 81,+ "dimensionMultiple": 16+ },+ "models": [+ {+ "file": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "sizeGb": 6.74+ },+ {+ "file": "wan_2.1_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.2_ComfyUI_Repackaged/resolve/main/split_files/vae/wan_2.1_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "wan2.1_vace_14B_fp16.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/wan2.1_vace_14B_fp16.safetensors",+ "sizeGb": 34.68+ },+ {+ "file": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "sizeGb": 0.63+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-KJNodes",+ "repo": "https://github.com/kijai/ComfyUI-KJNodes"+ }+ ],+ "vramGb": 24,+ "license": "Apache-2.0 (Wan 2.1 VACE 14B, lightx2v T2V LoRA, umT5, Wan VAE); GrowMaskWithBlur from ComfyUI-KJNodes (GPL-3.0 code)",+ "validated": true,+ "notes": "mask = the region where the new object should appear, a PNG in the clip's shape read from the red channel (white = the region, black = keep); it is held for every frame of the window (RepeatImageBatch), so it suits a static or slow camera (without the repeat WanVaceToVideo would pad a one-frame mask with 1 = generate and regenerate the whole clip). image = the object (best cut out on white); prompt = what appears where and what it does. No SAM. Changed from the research graph: the mask is read from the red channel (Fuobe's mask convention) instead of alpha. Window rules, paste-back and the kept sound as video-inpaint-wan-vace. Validated by /prompt only (no GPU here)."+ },+ {+ "id": "kenburns-still",+ "title": "Ken Burns pan and zoom over a still for N seconds at F fps (core loops, chunk-encoded, no model)",+ "capability": "still-motion",+ "file": "kenburns-still.json",+ "source": "hand-built (scripts/comfy/hand-built/kenburns-still.json)",+ "bindings": {+ "image": [+ {+ "node": "1",+ "input": "image"+ }+ ],+ "supersample": [+ {+ "node": "2",+ "input": "scale_by"+ }+ ],+ "width": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "height": [+ {+ "node": "5",+ "input": "value"+ }+ ],+ "duration": [+ {+ "node": "6",+ "input": "value"+ }+ ],+ "fps": [+ {+ "node": "7",+ "input": "value"+ }+ ],+ "zoomStart": [+ {+ "node": "9",+ "input": "value"+ }+ ],+ "zoomEnd": [+ {+ "node": "10",+ "input": "value"+ }+ ],+ "panStartX": [+ {+ "node": "11",+ "input": "value"+ }+ ],+ "panStartY": [+ {+ "node": "12",+ "input": "value"+ }+ ],+ "panEndX": [+ {+ "node": "13",+ "input": "value"+ }+ ],+ "panEndY": [+ {+ "node": "14",+ "input": "value"+ }+ ],+ "easeInOut": [+ {+ "node": "19",+ "input": "value"+ }+ ],+ "chunkFrames": [+ {+ "node": "17",+ "input": "value"+ }+ ],+ "filenamePrefix": [+ {+ "node": "32",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "32",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 1280,+ "height": 720,+ "fps": 30,+ "duration": 5,+ "supersample": 2,+ "zoomStart": 1,+ "zoomEnd": 1.25,+ "panStartX": 0.5,+ "panStartY": 0.5,+ "panEndX": 0.6,+ "panEndY": 0.45,+ "easeInOut": 1,+ "chunkFrames": 30+ },+ "limits": {+ "maxWidth": 1920,+ "maxHeight": 1920,+ "dimensionMultiple": 2,+ "maxDurationSec": 10+ },+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core nodes)",+ "validated": true,+ "notes": "The still-motion operation: params.zoomFrom / zoomTo -> zoomStart / zoomEnd (1 = the widest crop with the output's shape, 1.25 = 25 % closer), params.panFrom / panTo {x, y} -> panStartX/Y and panEndX/Y (the crop centre, 0-1 of the still, clamped so the crop stays inside), params.easing \"ease-in-out\" -> easeInOut 1 ((1 - cos(pi t)) / 2), \"linear\" -> 0; duration, fps and width x height (the output size) as usual. Presets (app side): push in zoom 1 -> 1.2; pull out 1.2 -> 1; pan left zoom 1.15, x 0.6 -> 0.4; pan up zoom 1.15, y 0.6 -> 0.4; a gentle end-card push-in 1 -> 1.05. Core loops (StartLoop/EndLoop, ComfyUI 2026-09-15): the outer loop runs one pass per chunk of chunkFrames frames, the inner loop crops each frame (ImageCrop) and scales it (lanczos) to width x height, each chunk is encoded at once (CreateVideo h264) and ConcatenateVideo joins them, so finished chunks can leave memory. supersample upsizes the still once so crop steps are half a source pixel. At most 10 s per job: RAM still grows by about one output frame per frame (~11 MB at 720p) until ComfyUI's RAM-pressure cache evicts chunks; split longer scenes. Changed from the research graph: easeInOut (node 19) blends linear and eased progress (the research graph was always eased). Research runs (4-core CPU): 2 s 640x360 25 fps 17.9 s; 5 s 1280x720 30 fps 75.6 s (+2.6 GB RSS); 10 s 1280x720 30 fps 142.1 s (+3.7 GB RSS, both under RAM pressure). Ran here (shared CPU server, two sessions, 64x64 still, 2 s 320x180 25 fps, chunks of 20): 50 frames, 2.000 s H.264 in 8.5-9.3 s (easeInOut 1) and 7.6-11.2 s (0); the two match at the first, middle and last frame and differ in between, and the eased one barely moves over its first and last frames. Crops are whole pixels, so a tiny still steps visibly (the first frame after zoom 1 jumps by one source pixel); supersample and a still larger than the output hide it."+ },+ {+ "id": "audio-loop-crossfade",+ "title": "Music bed of any length: loop a clip with equal-power crossfades and a fade-out (core audio nodes + core loop)",+ "capability": "audio-loop",+ "file": "audio-loop-crossfade.json",+ "source": "hand-built (scripts/comfy/hand-built/audio-loop-crossfade.json)",+ "bindings": {+ "audio": [+ {+ "node": "1",+ "input": "audio"+ }+ ],+ "fadeCurve": [+ {+ "node": "3",+ "input": "audio"+ }+ ],+ "crossfade": [+ {+ "node": "5",+ "input": "value"+ }+ ],+ "duration": [+ {+ "node": "6",+ "input": "value"+ }+ ],+ "headroomDb": [+ {+ "node": "2",+ "input": "volume"+ }+ ],+ "filenamePrefix": [+ {+ "node": "29",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "29",+ "kind": "audio"+ }+ ],+ "defaults": {+ "duration": 20,+ "crossfade": 1,+ "headroomDb": -3+ },+ "limits": {+ "maxDurationSec": 600+ },+ "models": [],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core audio nodes; VideoHelperSuite loader, GPL-3.0 code)",+ "validated": true,+ "notes": "audio = the clip to loop; duration = the bed's length (params.duration, up to 600 s: ACE-Step's <= 240 s beds become 10-minute beds); crossfade = seconds at each seam (params.crossfade). fadeCurve = the crossfade curve the PROVIDER writes and uploads, because core has no gain-ramp node: a stereo WAV exactly crossfade seconds long, left channel = sin(pi/2 t) (fade-in), right channel = cos(pi/2 t) (fade-out), at 8 kHz so AudioMerge upsamples the curve and never resamples the music (for loops of near-identical material a linear curve avoids the +3 dB equal-power bump). Repeats = ceil((duration - crossfade) / (clip - crossfade)) from VHS_LoadAudioUpload's duration; each repeat is the body + (tail fading out + head fading in); the last crossfade seconds fade out. The clip must be longer than 2 x crossfade. headroomDb (integer dB, default -3) keeps a summed seam under 1.0, because AudioMerge \"add\" normalises a whole segment that peaks over 1. Each loop pass keeps its output cached, so memory grows as O(repeats^2 x clip): prefer clips >= 60 s (<= 10 repeats). Saves FLAC at the clip's sample rate. Ran here (CPU, two sessions with two tone clips): a 3 s 44.1 kHz stereo clip (440 Hz left, 660 Hz right), crossfade 0.5 s (a 16-bit 8 kHz curve), duration 10 -> FLAC 10.000 s, 44.1 kHz stereo in 1.1-2.5 s; seams at 2.5 / 5 / 7.5 s (+2.1 dB RMS over each seam on the pure tones: the equal-power bump), no clicks (largest sample step 0.035 vs 0.031 in the source), level -3 dB elsewhere (headroomDb) and the last 0.5 s fading to 0."+ },+ {+ "id": "audio-join-crossfade",+ "title": "Join two audio clips with a crossfade (core audio nodes)",+ "capability": "audio-join",+ "file": "audio-join-crossfade.json",+ "source": "hand-built (scripts/comfy/hand-built/audio-join-crossfade.json)",+ "bindings": {+ "audio": [+ {+ "node": "1",+ "input": "audio"+ }+ ],+ "audio2": [+ {+ "node": "2",+ "input": "audio"+ }+ ],+ "fadeCurve": [+ {+ "node": "3",+ "input": "audio"+ }+ ],+ "crossfade": [+ {+ "node": "5",+ "input": "value"+ }+ ],+ "filenamePrefix": [+ {+ "node": "17",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "17",+ "kind": "audio"+ }+ ],+ "defaults": {+ "crossfade": 1+ },+ "limits": {},+ "models": [],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core audio nodes; VideoHelperSuite loader, GPL-3.0 code)",+ "validated": true,+ "notes": "audio then audio2, overlapped by crossfade seconds (params.crossfade, > 0; 0.02 gives a click-free hard join). fadeCurve = the same curve WAV as audio-loop-crossfade, crossfade seconds long, written by the provider. More clips (params.audios in order): fold, i.e. join 1+2, then that result + 3, and so on. The output runs at the higher sample rate of the two (AudioConcat resamples) and is saved as FLAC. Clips placed at exact times are audio-timeline's job. Ran here (CPU, two sessions): 3 s 44.1 kHz tones + 2 s 48 kHz noise, crossfade 0.5 s -> FLAC 4.500 s at 48 kHz stereo in 0.2-2.1 s; the tones keep their level (-9.0 dB RMS) up to 2.5 s, the overlap ramps over 0.5 s and the noise follows at its own level (-15.2 dB): no headroom is taken off here."+ },+ {+ "id": "video-export-pro",+ "title": "Pro codec export: ProRes 422 HQ / 4444, H.265 10-bit, FFV1 lossless, H.264 (VideoHelperSuite)",+ "capability": "export-video",+ "file": "video-export-pro.json",+ "source": "hand-built (scripts/comfy/hand-built/video-export-pro.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "format": [+ {+ "node": "3",+ "input": "format"+ }+ ],+ "profile": [+ {+ "node": "3",+ "input": "profile"+ }+ ],+ "filenamePrefix": [+ {+ "node": "3",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "3",+ "kind": "video"+ }+ ],+ "defaults": {+ "format": "video/ProRes",+ "profile": "hq"+ },+ "limits": {},+ "models": [],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 0,+ "license": "n/a (no model; VideoHelperSuite GPL-3.0 code and the system ffmpeg's prores_ks / libx265 / ffv1 / libx264 encoders)",+ "validated": true,+ "notes": "params.format -> format (+ profile): prores_422_hq -> video/ProRes + hq; prores_4444 -> video/ProRes + 4444 (also lt, standard, 4444xq); h265_10bit -> video/h265-mp4 (pix_fmt yuv420p10le, its first option); ffv1 -> video/ffv1-mkv (lossless, rgba64le); h264 -> video/h264-mp4; exr -> video-export-exr. VHS falls back to each format widget's default when an input is missing, and adds profile only for ProRes. VHS writes <prefix>_00001.<ext> (.mov ProRes, .mp4 H.264/H.265, .mkv FFV1; no sound) and, when the clip has sound, <prefix>_00001-audio.<ext>, the only file the history lists (under \"gifs\"); it also leaves a first-frame .png next to them. Decodes the whole clip (GetVideoComponents): RAM grows with the length. Ran here (CPU, two sessions, a 1 s 64x64 16 fps clip with AAC sound, 0.16-0.4 s each, checked with ffprobe): ProRes HQ .mov yuv444p10le + pcm_s16le; ProRes 4444 yuv444p12le; h265-mp4 HEVC Main 10 yuv420p10le + AAC; ffv1-mkv gbrap16le + FLAC; h264-mp4 High yuv420p + AAC; 16 frames and 1.000 s in every file; bt709 tags (FFV1: gbr matrix, sRGB transfer, bt709 primaries)."+ },+ {+ "id": "video-sdr-to-hdr",+ "title": "SDR to HDR: expand to Rec.2020 HLG and save 10-bit H.264 (core ImageSDRToHDR, no model)",+ "capability": "sdr-to-hdr",+ "file": "video-sdr-to-hdr.json",+ "source": "hand-built (scripts/comfy/hand-built/video-sdr-to-hdr.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "peakNits": [+ {+ "node": "3",+ "input": "algorithm.target_luminance"+ }+ ],+ "filenamePrefix": [+ {+ "node": "5",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "5",+ "kind": "video"+ }+ ],+ "defaults": {+ "peakNits": 650+ },+ "limits": {},+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core)",+ "validated": true,+ "notes": "An algorithmic inverse tone map (Lottes-style curve blended with a log-gain curve), not a learned model: the open stand-in for Topaz's SDR to HDR. peakNits = the target peak white (650 by default, 0 = the calibrated rendering). CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format \"hlg\" is this graph; PQ would be color_space \"HDR PQ\" on node 4 (not bound). The learned alternative is the LTX-2.5 SDR-To-HDR IC-LoRA (LTX community licence, not built). Decodes the whole clip: RAM grows with the length. Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.2-1.5 s): H.264 High 10, yuv420p10le, bt2020nc / bt2020 / arib-std-b67 (HLG), 16 frames, AAC kept."+ },+ {+ "id": "video-export-exr",+ "title": "OpenEXR frame sequence (16-bit float, scene-linear) from a video (core SaveImageAdvanced)",+ "capability": "export-video",+ "file": "video-export-exr.json",+ "source": "hand-built (scripts/comfy/hand-built/video-export-exr.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "filenamePrefix": [+ {+ "node": "3",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "3",+ "kind": "image",+ "role": "frames"+ }+ ],+ "defaults": {},+ "limits": {},+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core)",+ "validated": true,+ "notes": "params.format \"exr\" of the export-video operation. One half-float .exr per frame (role frames, in frame order); input_color_space sRGB applies the inverse sRGB curve, so the files are scene-linear Rec.709. The app zips the sequence. No sound. Decodes the whole clip: RAM grows with the length. Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.06-0.2 s): 16 .exr files (<prefix>_00001.exr ...), HALF B/G/R channels, ZIP compression, linear transfer."+ },+ {+ "id": "still-to-clip",+ "title": "Still or end card to an N-second clip with a silent track (core, no model)",+ "capability": "still-motion",+ "file": "still-to-clip.json",+ "source": "hand-built (scripts/comfy/hand-built/still-to-clip.json)",+ "bindings": {+ "image": [+ {+ "node": "1",+ "input": "image"+ }+ ],+ "width": [+ {+ "node": "2",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "2",+ "input": "height"+ }+ ],+ "duration": [+ {+ "node": "3",+ "input": "value"+ }+ ],+ "fps": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "filenamePrefix": [+ {+ "node": "9",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "9",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 1280,+ "height": 720,+ "fps": 30,+ "duration": 3+ },+ "limits": {+ "maxWidth": 3840,+ "maxHeight": 3840,+ "dimensionMultiple": 2+ },+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core)",+ "validated": true,+ "notes": "The still held for duration seconds at fps, centre-cropped to width x height (ImageScale), with a silent stereo AAC track so joins and players see sound. The app renders an end card (logo on the brand colour) at the clip's size; for a gentle push-in use kenburns-still with zoom 1 -> 1.05. With video-concat-sound1-2 it is the end-card fallback for clips the open engine did not make (see video-append-endcard). Ran here (CPU, two sessions, 64x64 PNG -> 2 s 320x180 25 fps, 0.2-1.0 s): 50 identical frames, H.264 + stereo AAC silence, 2.000 s."+ },+ {+ "id": "video-append-endcard",+ "title": "Append an end card to an ad and keep the ad's sound (picture stream-copied; core ConcatenateVideo)",+ "capability": "concat",+ "file": "video-append-endcard.json",+ "source": "hand-built (scripts/comfy/hand-built/video-append-endcard.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ },+ {+ "node": "2",+ "input": "audio"+ }+ ],+ "image": [+ {+ "node": "3",+ "input": "image"+ }+ ],+ "width": [+ {+ "node": "4",+ "input": "value"+ }+ ],+ "height": [+ {+ "node": "5",+ "input": "value"+ }+ ],+ "fps": [+ {+ "node": "6",+ "input": "value"+ }+ ],+ "duration": [+ {+ "node": "7",+ "input": "value"+ }+ ],+ "filenamePrefix": [+ {+ "node": "15",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "15",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 1280,+ "height": 720,+ "fps": 30,+ "duration": 2+ },+ "limits": {+ "dimensionMultiple": 2+ },+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core)",+ "validated": true,+ "notes": "video = the ad (LoadVideo and LoadAudio read the same upload), image = the card; width, height and fps must be the clip's own (from its header), duration = the card's seconds (2 by default). The ad's picture is copied packet by packet (bit-identical, never decoded); the card is encoded as H.264 at the clip's size and fps, and the ad's sound is padded with card-length silence (AudioConcat) and passed as complete_audio. Silent ads (LoadAudio stops with \"No audio stream found in the file\", checked): the provider drops nodes 2, 12 and 13 and the complete_audio input of node 14, and the result has no sound track. LIMIT: only for clips the open engine made (ComfyUI CreateVideo/SaveVideo, sRGB-tagged H.264). Clips from other encoders (cloud models, uploads, ffmpeg/libx264, tagged or not) fail in core v0.41 with \"Video chunk 1 could not be encoded compatibly: extradata ... color space\"; for those use still-to-clip + video-concat-sound1-2 (decodes everything, keeps clip 1's sound). Ran here (CPU, two sessions): a ComfyUI-made 2 s 320x180 25 fps clip with sound + a 2 s card -> 4.000 s, 100 frames in 0.3-2.9 s; the ad's 50 frames decode bit-identical to the source (framemd5) and silencedetect finds silence from 2.00 s. Silent ad + a 1.5 s card with nodes 2, 12 and 13 dropped: 3.52 s, 88 frames, no sound track (keeping node 12 as complete_audio instead gives a sound track only the card's 1.5 s long). The fixture clip from ffmpeg failed with the extradata / colour-space error above (the limit reproduced)."+ },+ {+ "id": "scene-mesh-moge",+ "title": "Image to a textured 3D mesh of the whole scene + a depth map (MoGe 2 / MoGe 3, core nodes)",+ "capability": "scene-3d",+ "file": "scene-mesh-moge.json",+ "source": "hand-built (scripts/comfy/hand-built/scene-mesh-moge.json)",+ "bindings": {+ "image": [+ {+ "node": "1",+ "input": "image"+ }+ ],+ "checkpoint": [+ {+ "node": "6",+ "input": "model_name"+ }+ ],+ "resolutionLevel": [+ {+ "node": "7",+ "input": "resolution_level"+ }+ ],+ "fovX": [+ {+ "node": "7",+ "input": "fov_x_degrees"+ }+ ],+ "decimation": [+ {+ "node": "8",+ "input": "decimation"+ }+ ],+ "filenamePrefix": [+ {+ "node": "9",+ "input": "filename_prefix"+ },+ {+ "node": "11",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "9",+ "kind": "model3d",+ "role": "scene"+ },+ {+ "node": "11",+ "kind": "image",+ "role": "depth"+ }+ ],+ "defaults": {+ "resolutionLevel": 9,+ "fovX": 0,+ "decimation": 1,+ "checkpoint": "moge_2_vitl_normal_fp16.safetensors"+ },+ "limits": {},+ "models": [+ {+ "file": "moge_2_vitl_normal_fp16.safetensors",+ "folder": "geometry_estimation",+ "url": "https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_2_vitl_normal_fp16.safetensors",+ "sizeGb": 0.66+ }+ ],+ "customNodes": [],+ "vramGb": 4,+ "license": "MIT (microsoft/MoGe 2 and 3, Comfy-Org/MoGe repack)",+ "validated": true,+ "notes": "Cinema Studio \"Create 3D scene\": photo -> textured GLB of the WHOLE frame (role scene) + a depth PNG (role depth). From the official template 3d_moge_perspective_to_mesh (2026-05-15): normal-map previews dropped, the depth PNG added; images over 2048 px are resized first. The browser orbits the GLB, captures a view, and qwen-image-edit-2511 re-renders it with the original photo. resolutionLevel 0-9 (detail), fovX = horizontal field of view in degrees (0 = estimate), decimation 2 for phones (about 4x fewer triangles, inferred). checkpoint moge_2_vitl_normal_fp16 (0.66 GB) by default; moge_3_vitl_fp16 (0.74 GB) and moge_3_vitg_fp16 (2.50 GB) load through the same node. Research run on the 4-core CPU: a 768x768 living-room photo became a 25.2 MB GLB (556k vertices, 1.08M triangles, one texture, depth 0.35-6.58 m) in 42 s, +1.6 GB RSS. VRAM unverified (MoGe 2 ViT-L is ~0.33B parameters). TripoSplat (image-to-splat-triposplat) rebuilds the subject only, not the scene."+ },+ {+ "id": "image-to-splat-triposplat",+ "title": "Image to a Gaussian splat of the subject (TripoSplat, core nodes) + an orbit video",+ "capability": "splat",+ "file": "image-to-splat-triposplat.json",+ "source": "hand-built (scripts/comfy/hand-built/image-to-splat-triposplat.json)",+ "bindings": {+ "image": [+ {+ "node": "99",+ "input": "image"+ }+ ],+ "cutout": [+ {+ "node": "88:35",+ "input": "switch"+ }+ ],+ "numGaussians": [+ {+ "node": "88:55",+ "input": "num_gaussians"+ }+ ],+ "steps": [+ {+ "node": "88:6",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "88:6",+ "input": "cfg"+ }+ ],+ "seed": [+ {+ "node": "88:6",+ "input": "seed"+ },+ {+ "node": "88:55",+ "input": "seed"+ }+ ],+ "splatFormat": [+ {+ "node": "92",+ "input": "format"+ }+ ],+ "orbitFrames": [+ {+ "node": "75",+ "input": "frames"+ }+ ],+ "filenamePrefix": [+ {+ "node": "51",+ "input": "filename_prefix"+ },+ {+ "node": "42",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "51",+ "kind": "model3d",+ "role": "splat"+ },+ {+ "node": "42",+ "kind": "video",+ "role": "turntable"+ }+ ],+ "defaults": {+ "steps": 20,+ "cfg": 3,+ "numGaussians": 262144,+ "orbitFrames": 75,+ "splatFormat": "spz"+ },+ "limits": {+ "maxGaussians": 1048576+ },+ "models": [+ {+ "file": "dino_v3_vit_h.safetensors",+ "folder": "clip_vision",+ "url": "https://huggingface.co/VAST-AI/TripoSplat/resolve/main/clip_vision/dino_v3_vit_h.safetensors",+ "sizeGb": 1.68+ },+ {+ "file": "flux2-vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors",+ "sizeGb": 0.34+ },+ {+ "file": "triposplat_vae_decoder_fp16.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/VAST-AI/TripoSplat/resolve/main/vae/triposplat_vae_decoder_fp16.safetensors",+ "sizeGb": 0.58+ },+ {+ "file": "triposplat_fp16.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/VAST-AI/TripoSplat/resolve/main/diffusion_models/triposplat_fp16.safetensors",+ "sizeGb": 0.74+ },+ {+ "file": "birefnet.safetensors",+ "folder": "background_removal",+ "url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors",+ "sizeGb": 0.44+ }+ ],+ "customNodes": [],+ "vramGb": 8,+ "license": "MIT (VAST-AI/TripoSplat weights); the dino_v3_vit_h image encoder is under the DINOv3 License (royalty-free, commercial use allowed, trade-control limits; the app must show a \"Built with DINOv3\" notice); FLUX.2 VAE Apache-2.0; BiRefNet MIT",+ "validated": true,+ "notes": "Subject or product splat (3D Angles, 3D Jutsu props, a splat alternative to TRELLIS.2 spins). The official template 3d_triposplat_image_to_gaussian_splat (2026-06-02) with the UI-only live-preview patch removed and a 75-frame H.264 orbit (RenderSplat + CreateCameraInfo orbit yaw 35, pitch 30, distance 2.5; role turntable, 25 fps). Subject only: BiRefNet cuts it out first (cutout false = use the image's own alpha). Output 1 (role splat): splatFormat spz (Niantic, gzip, ~10x smaller, base colour), ply (full spherical harmonics) or ksplat, saved by SaveGLB under that extension (meta.format = the extension). numGaussians up to 1,048,576 (262,144 by default); seed drives both the sampler and the decoder. RenderSplat also takes a look_at camera, so a view picked in the browser can be rendered on the server. 3.78 GB of weights (TripoSplat 0.74, DINOv3 ViT-H 1.68, TripoSplat VAE decoder 0.58, FLUX.2 VAE 0.34, BiRefNet 0.44). VRAM unverified. Validated by /prompt only."+ },+ {+ "id": "reference-brief-gemma4",+ "title": "Reference video to a style brief: Gemma 4 E4B reads the frames and the sound (core TextGenerate)",+ "capability": "write",+ "file": "reference-brief-gemma4.json",+ "source": "hand-built (scripts/comfy/hand-built/reference-brief-gemma4.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "video"+ }+ ],+ "frames": [+ {+ "node": "1",+ "input": "frame_load_cap"+ }+ ],+ "startFrame": [+ {+ "node": "1",+ "input": "skip_first_frames"+ }+ ],+ "frameWidth": [+ {+ "node": "1",+ "input": "custom_width"+ }+ ],+ "checkpoint": [+ {+ "node": "2",+ "input": "clip_name"+ }+ ],+ "instruction": [+ {+ "node": "3",+ "input": "prompt"+ }+ ],+ "seed": [+ {+ "node": "3",+ "input": "sampling_mode.seed"+ }+ ],+ "maxTokens": [+ {+ "node": "3",+ "input": "max_length"+ }+ ],+ "filenamePrefix": [+ {+ "node": "4",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "4",+ "kind": "text",+ "role": "brief"+ }+ ],+ "defaults": {+ "frames": 720,+ "startFrame": 0,+ "maxTokens": 2048,+ "frameWidth": 384,+ "frameStep": 1,+ "fps": 24,+ "checkpoint": "gemma4_e4b_it_fp8_scaled.safetensors",+ "instruction": "You are given a short-form reference video (frames at 1 fps plus its soundtrack). Write a reusable style brief for a new faceless video in the same style. Return strict JSON with keys: format (e.g. 'what if' explainer), hook (first 3 s), pacing (average shot length in seconds), shots (list of {seconds, visual, camera, on_screen_text}), visual_style (medium, palette, lighting, texture), animation_style (one of 'Fully animated', 'Frame by frame', 'Scene by scene video', 'Seamless motion video'), narration (voice, tone, words per minute, language), music (genre, energy), captions (style, position), and topic_ideas (5). Describe style only; never copy the reference's people, logos or exact words."+ },+ "limits": {+ "maxFrames": 720+ },+ "models": [+ {+ "file": "gemma4_e4b_it_fp8_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/gemma-4/resolve/main/text_encoders/gemma4_e4b_it_fp8_scaled.safetensors",+ "sizeGb": 9.06+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 12,+ "license": "Apache-2.0 (Gemma 4); VideoHelperSuite loader GPL-3.0 code",+ "validated": true,+ "notes": "Content Factory \"Use as reference\": the clip's frames AND sound go into one TextGenerate call and come back as a JSON style brief (role brief): format, hook, pacing, shots, visual_style, animation_style, narration, music, captions, topic_ideas (5). The instruction forbids copying the reference's people, logos or exact words. Strip ``` fences before parsing. VHS_LoadVideo resamples to 24 fps (fixed: TextGenerate assumes 24 fps and keeps every 24th frame, i.e. 1 fps, each capped at 70 soft tokens); frames = the frame cap at 24 fps (720 = the first 30 s), startFrame = frames skipped at 24 fps, frameWidth = 384 px wide (about 0.7 GB of frames for 720, inferred). In ComfyUI v0.41 only the Gemma 4 and MiniMax text encoders read a video input (the Qwen3.5 encoder ignores it). Same model file as speech-translate-gemma4 (no new download). Whether Gemma 4 E4B takes 30 s of audio in one call is unverified. Validated by /prompt only."}]}diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.jsonindex b568ee18..4a20165f 100644--- a/workflows/comfyui/object_info.subset.json+++ b/workflows/comfyui/object_info.subset.json@@ -2759,6 +2759,290 @@"clear conditioning"]},+ "CreateCameraInfo": {+ "input": {+ "required": {+ "mode": [+ "COMFY_DYNAMICCOMBO_V3",+ {+ "tooltip": "How to define the camera: orbit angles, an explicit position, or a position + quaternion.",+ "options": [+ {+ "key": "orbit",+ "inputs": {+ "required": {+ "yaw": [+ "FLOAT",+ {+ "default": 35,+ "min": -360,+ "max": 360,+ "step": 1+ }+ ],+ "pitch": [+ "FLOAT",+ {+ "default": 30,+ "min": -89,+ "max": 89,+ "step": 1+ }+ ],+ "distance": [+ "FLOAT",+ {+ "tooltip": "Camera distance from the target.",+ "default": 4,+ "min": 0.01,+ "max": 1000,+ "step": 0.01+ }+ ]+ }+ }+ },+ {+ "key": "look_at",+ "inputs": {+ "required": {+ "position_x": [+ "FLOAT",+ {+ "tooltip": "Camera position in world space (right-handed, Y-up).",+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "position_y": [+ "FLOAT",+ {+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "position_z": [+ "FLOAT",+ {+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ]+ }+ }+ },+ {+ "key": "quaternion",+ "inputs": {+ "required": {+ "position_x": [+ "FLOAT",+ {+ "tooltip": "Camera position in world space (right-handed, Y-up).",+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "position_y": [+ "FLOAT",+ {+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "position_z": [+ "FLOAT",+ {+ "default": 4,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "quat_x": [+ "FLOAT",+ {+ "default": 0,+ "min": -1,+ "max": 1,+ "step": 0.001+ }+ ],+ "quat_y": [+ "FLOAT",+ {+ "default": 0,+ "min": -1,+ "max": 1,+ "step": 0.001+ }+ ],+ "quat_z": [+ "FLOAT",+ {+ "default": 0,+ "min": -1,+ "max": 1,+ "step": 0.001+ }+ ],+ "quat_w": [+ "FLOAT",+ {+ "tooltip": "Camera world-rotation quaternion (three.js: looks down local -Z). Normalized for you.",+ "default": 1,+ "min": -1,+ "max": 1,+ "step": 0.001+ }+ ]+ }+ }+ }+ ]+ }+ ],+ "target_x": [+ "FLOAT",+ {+ "tooltip": "Look-at point (orbit pivot / aim). In orbit mode, move it to pan/translate the whole camera. Ignored in quaternion mode. Defaults to the origin.",+ "advanced": true,+ "default": 0,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "target_y": [+ "FLOAT",+ {+ "advanced": true,+ "default": 0,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "target_z": [+ "FLOAT",+ {+ "advanced": true,+ "default": 0,+ "min": -1000,+ "max": 1000,+ "step": 0.01+ }+ ],+ "roll": [+ "FLOAT",+ {+ "tooltip": "Camera roll about the view axis, degrees.",+ "default": 0,+ "min": -180,+ "max": 180,+ "step": 1+ }+ ],+ "fov": [+ "FLOAT",+ {+ "tooltip": "Vertical field of view in degrees.",+ "default": 35,+ "min": 1,+ "max": 120,+ "step": 1+ }+ ],+ "zoom": [+ "FLOAT",+ {+ "tooltip": "Digital zoom (focal-length multiplier). >1 zooms in without moving the camera.",+ "default": 1,+ "min": 0.01,+ "max": 100,+ "step": 0.01+ }+ ],+ "camera_type": [+ "COMBO",+ {+ "tooltip": "Projection used by Render Splat: perspective (foreshortening) or orthographic (parallel).",+ "multiselect": false,+ "options": [+ "perspective",+ "orthographic"+ ]+ }+ ]+ },+ "optional": {+ "camera_info_state": [+ "CAMERA_INFO_STATE",+ {+ "socketless": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "mode",+ "target_x",+ "target_y",+ "target_z",+ "roll",+ "fov",+ "zoom",+ "camera_type"+ ],+ "optional": [+ "camera_info_state"+ ]+ },+ "is_input_list": false,+ "output": [+ "LOAD3D_CAMERA"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "camera_info"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "CreateCameraInfo",+ "display_name": "Create Camera Info",+ "description": "Build a camera_info. Mode 'orbit' aims with yaw/pitch/distance around the target; 'look_at' places the camera at world position. Coordinates are the viewer's world space (right-handed,Y-up).",+ "python_module": "comfy_extras.nodes_camera",+ "category": "3d",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "camera position",+ "make camera info",+ "orbit camera",+ "look at camera"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },"CreateList": {"input": {"required": {@@ -5383,61 +5667,235 @@"essentials_category": null,"has_intermediate_output": false},- "Hunyuan3Dv2Conditioning": {+ "GrowMask": {"input": {"required": {- "clip_vision_output": [- "CLIP_VISION_OUTPUT",+ "mask": [+ "MASK",{}+ ],+ "expand": [+ "INT",+ {+ "default": 0,+ "min": -16384,+ "max": 16384,+ "step": 1+ }+ ],+ "tapered_corners": [+ "BOOLEAN",+ {+ "advanced": true,+ "default": true+ }]}},"input_order": {"required": [- "clip_vision_output"+ "mask",+ "expand",+ "tapered_corners"]},"is_input_list": false,"output": [- "CONDITIONING",- "CONDITIONING"+ "MASK"],"output_is_list": [- false,false],"output_name": [- "positive",- "negative"+ "MASK"],"output_tooltips": [- null,null],"output_matchtypes": null,- "name": "Hunyuan3Dv2Conditioning",- "display_name": null,+ "name": "GrowMask",+ "display_name": "Grow Mask","description": "",- "python_module": "comfy_extras.nodes_hunyuan3d",- "category": "model/conditioning/hunyuan 3d",+ "python_module": "comfy_extras.nodes_mask",+ "category": "image/mask","output_node": false,"deprecated": false,"experimental": false,"dev_only": false,"api_node": false,"price_badge": null,- "search_aliases": null,+ "search_aliases": [+ "expand mask",+ "shrink mask"+ ],"essentials_category": null,"has_intermediate_output": false},- "HunyuanDependenciesLoader": {+ "GrowMaskWithBlur": {"input": {"required": {- "vae_name": [- []+ "mask": [+ "MASK"],- "synchformer_name": [- []+ "expand": [+ "INT",+ {+ "default": 0,+ "min": -16384,+ "max": 16384,+ "step": 1+ }+ ],+ "incremental_expandrate": [+ "FLOAT",+ {+ "default": 0,+ "min": 0,+ "max": 100,+ "step": 0.1+ }+ ],+ "tapered_corners": [+ "BOOLEAN",+ {+ "default": true+ }+ ],+ "flip_input": [+ "BOOLEAN",+ {+ "default": false+ }+ ],+ "blur_radius": [+ "FLOAT",+ {+ "default": 0,+ "min": 0,+ "max": 100,+ "step": 0.1+ }+ ],+ "lerp_alpha": [+ "FLOAT",+ {+ "default": 1,+ "min": 0,+ "max": 1,+ "step": 0.01+ }+ ],+ "decay_factor": [+ "FLOAT",+ {+ "default": 1,+ "min": 0,+ "max": 1,+ "step": 0.01+ }+ ]+ },+ "optional": {+ "fill_holes": [+ "BOOLEAN",+ {+ "default": false+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "mask",+ "expand",+ "incremental_expandrate",+ "tapered_corners",+ "flip_input",+ "blur_radius",+ "lerp_alpha",+ "decay_factor"+ ],+ "optional": [+ "fill_holes"+ ]+ },+ "is_input_list": false,+ "output": [+ "MASK",+ "MASK"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "mask",+ "mask_inverted"+ ],+ "name": "GrowMaskWithBlur",+ "display_name": "Grow Mask With Blur",+ "description": "\n# GrowMaskWithBlur\n- mask: Input mask or mask batch\n- expand: Expand or contract mask or mask batch by a given amount\n- incremental_expandrate: increase expand rate by a given amount per frame\n- tapered_corners: use tapered corners\n- flip_input: flip input mask\n- blur_radius: value higher than 0 will blur the mask\n- lerp_alpha: alpha value for interpolation between frames\n- decay_factor: decay value for interpolation between frames\n- fill_holes: fill holes in the mask (slow)",+ "python_module": "custom_nodes.ComfyUI-KJNodes",+ "category": "KJNodes/masking",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },+ "Hunyuan3Dv2Conditioning": {+ "input": {+ "required": {+ "clip_vision_output": [+ "CLIP_VISION_OUTPUT",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "clip_vision_output"+ ]+ },+ "is_input_list": false,+ "output": [+ "CONDITIONING",+ "CONDITIONING"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "positive",+ "negative"+ ],+ "output_tooltips": [+ null,+ null+ ],+ "output_matchtypes": null,+ "name": "Hunyuan3Dv2Conditioning",+ "display_name": null,+ "description": "",+ "python_module": "comfy_extras.nodes_hunyuan3d",+ "category": "model/conditioning/hunyuan 3d",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "HunyuanDependenciesLoader": {+ "input": {+ "required": {+ "vae_name": [+ []+ ],+ "synchformer_name": [+ []]}},@@ -6063,6 +6521,91 @@"essentials_category": null,"has_intermediate_output": false},+ "ImageCrop": {+ "input": {+ "required": {+ "image": [+ "IMAGE",+ {}+ ],+ "width": [+ "INT",+ {+ "default": 512,+ "min": 1,+ "max": 16384,+ "step": 1+ }+ ],+ "height": [+ "INT",+ {+ "default": 512,+ "min": 1,+ "max": 16384,+ "step": 1+ }+ ],+ "x": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ],+ "y": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image",+ "width",+ "height",+ "x",+ "y"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "IMAGE"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "ImageCrop",+ "display_name": "Crop Image (DEPRECATED)",+ "description": "",+ "python_module": "comfy_extras.nodes_images",+ "category": "image/transform",+ "output_node": false,+ "deprecated": true,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "trim"+ ],+ "essentials_category": "Image Tools",+ "has_intermediate_output": false+ },"ImageCropToMask": {"input": {"required": {@@ -6591,49 +7134,120 @@"has_intermediate_output": false,"search_aliases": []},- "ImageScale": {+ "ImageSDRToHDR": {"input": {"required": {"image": [- "IMAGE"- ],- "upscale_method": [- [- "nearest-exact",- "bilinear",- "area",- "bicubic",- "lanczos"- ]- ],- "width": [- "INT",+ "IMAGE",{- "default": 512,- "min": 0,- "max": 16384,- "step": 1+ "tooltip": "SDR image(s) in sRGB."}],- "height": [- "INT",+ "algorithm": [+ "COMFY_DYNAMICCOMBO_V3",{- "default": 512,- "min": 0,- "max": 16384,- "step": 1- }- ],- "crop": [- [- "disabled",- "center"- ]- ]- }- },- "input_order": {- "required": [+ "tooltip": "Lottes-style rational expansion blended with a calibrated monotonic log-gain curve.",+ "options": [+ {+ "key": "lottes",+ "inputs": {+ "required": {+ "target_luminance": [+ "FLOAT",+ {+ "tooltip": "Peak-white target in nits. 0 keeps the calibrated rendering. Dark images are not normalized to this peak.",+ "default": 650,+ "min": 0,+ "max": 10000,+ "step": 1+ }+ ]+ }+ }+ }+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image",+ "algorithm"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "IMAGE"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "ImageSDRToHDR",+ "display_name": "Convert SDR to HDR",+ "description": "Expand sRGB brightness into Rec.2020 HLG HDR. Save the result with the HDR color space selected. Alpha is preserved.",+ "python_module": "comfy_extras.nodes_images",+ "category": "image/color",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "ImageScale": {+ "input": {+ "required": {+ "image": [+ "IMAGE"+ ],+ "upscale_method": [+ [+ "nearest-exact",+ "bilinear",+ "area",+ "bicubic",+ "lanczos"+ ]+ ],+ "width": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ],+ "height": [+ "INT",+ {+ "default": 512,+ "min": 0,+ "max": 16384,+ "step": 1+ }+ ],+ "crop": [+ [+ "disabled",+ "center"+ ]+ ]+ }+ },+ "input_order": {+ "required": ["image","upscale_method","width",@@ -8984,12 +9598,6 @@{"multiselect": false,"options": [- "fuobe_BdMb-3O7.wav",- "fuobe_Ntv5KhVl.wav",- "fuobe_ZLDbJNmf.wav",- "fuobe_av_frame.mp4",- "fuobe_real.mp4",- "fuobe_real.wav","fuobe_validate.mp4","fuobe_validate.wav"],@@ -9149,6 +9757,7 @@"image": [["example.png",+ "fuobe_6hmQxYQr.png","fuobe_validate.png","fuobe_validate_mask.png"],@@ -9200,6 +9809,7 @@"image": [["example.png",+ "fuobe_6hmQxYQr.png","fuobe_validate.png","fuobe_validate_mask.png"],@@ -9247,6 +9857,52 @@],"essentials_category": "Image Tools"},+ "LoadMoGeModel": {+ "input": {+ "required": {+ "model_name": [+ "COMBO",+ {+ "multiselect": false,+ "options": []+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model_name"+ ]+ },+ "is_input_list": false,+ "output": [+ "MOGE_MODEL"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "MOGE_MODEL"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "LoadMoGeModel",+ "display_name": "Load MoGe Model",+ "description": "",+ "python_module": "comfy_extras.nodes_moge",+ "category": "model/loaders",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },"LoadVideo": {"input": {"required": {@@ -9255,8 +9911,6 @@{"multiselect": false,"options": [- "fuobe_av_frame.mp4",- "fuobe_real.mp4","fuobe_validate.mp4"],"video_upload": true@@ -9994,88 +10648,354 @@"essentials_category": null,"has_intermediate_output": false},- "ModelPatchLoader": {+ "MoGeInference": {"input": {"required": {- "name": [- []+ "moge_model": [+ "MOGE_MODEL",+ {}+ ],+ "image": [+ "IMAGE",+ {}+ ],+ "resolution_level": [+ "INT",+ {+ "tooltip": "0 = fastest, 9 = most detail.",+ "default": 9,+ "min": 0,+ "max": 9+ }+ ],+ "fov_x_degrees": [+ "FLOAT",+ {+ "tooltip": "Horizontal field of view of the source camera. Sets the focal length used to unproject the depth map into 3D. 0 = auto-recover from the predicted points.",+ "advanced": true,+ "default": 0,+ "min": 0,+ "max": 170,+ "step": 0.1+ }+ ],+ "batch_size": [+ "INT",+ {+ "tooltip": "Images per inference call. Lower if you OOM on a long video / image set.",+ "default": 4,+ "min": 1,+ "max": 64+ }+ ],+ "force_projection": [+ "BOOLEAN",+ {+ "advanced": true,+ "default": true+ }+ ],+ "apply_mask": [+ "BOOLEAN",+ {+ "tooltip": "Set masked-out (sky / invalid) pixels to inf in points and depth so meshing culls them. Disable to keep the raw predicted geometry everywhere; the mask is still returned separately.",+ "advanced": true,+ "default": true+ }+ ],+ "refine_steps": [+ "INT",+ {+ "tooltip": "MoGe-3 only: sparse volumetric refinement passes over the predicted depth. More passes sharpen fine detail and edges at a roughly linear cost. 0 disables refinement. Ignored by MoGe-1 / MoGe-2.",+ "advanced": true,+ "default": 3,+ "min": 0,+ "max": 8+ }]}},"input_order": {"required": [- "name"+ "moge_model",+ "image",+ "resolution_level",+ "fov_x_degrees",+ "batch_size",+ "force_projection",+ "apply_mask",+ "refine_steps"]},"is_input_list": false,"output": [- "MODEL_PATCH"+ "MOGE_GEOMETRY"],"output_is_list": [false],"output_name": [- "MODEL_PATCH"+ "moge_geometry"],- "name": "ModelPatchLoader",- "display_name": "Load Model Patch",- "description": "",- "python_module": "comfy_extras.nodes_model_patch",- "category": "model/loaders",+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "MoGeInference",+ "display_name": "Run MoGe Inference",+ "description": "Run MoGe on a single image to estimate depth and geometry.",+ "python_module": "comfy_extras.nodes_moge",+ "category": "image/geometry estimation","output_node": false,- "has_intermediate_output": false,- "experimental": true,- "search_aliases": []+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "moge",+ "depth",+ "geometry",+ "depth estimation",+ "geometry estimation"+ ],+ "essentials_category": null,+ "has_intermediate_output": false},- "ModelSamplingAuraFlow": {+ "MoGePointMapToMesh": {"input": {"required": {- "model": [- "MODEL"+ "moge_geometry": [+ "MOGE_GEOMETRY",+ {}],- "shift": [+ "batch_index": [+ "INT",+ {+ "tooltip": "Which image of a batched MoGe geometry to mesh. Per-image vertex counts differ, so batches can't be stacked into a single MESH.",+ "default": 0,+ "min": 0,+ "max": 4096+ }+ ],+ "decimation": [+ "INT",+ {+ "tooltip": "Vertex stride; 1 = full resolution.",+ "default": 1,+ "min": 1,+ "max": 8+ }+ ],+ "discontinuity_threshold": ["FLOAT",{- "default": 1.73,+ "tooltip": "Drop pixels whose 3x3 depth span exceeds this fraction. 0 = off.",+ "default": 0.04,"min": 0,- "max": 100,+ "max": 1,"step": 0.01}- ]- },- "optional": {- "sampling": [- [- "flow",- "img_to_img_velocity"- ],+ ],+ "texture": [+ "BOOLEAN",{- "default": "flow",- "advanced": true+ "tooltip": "Carry the source image through as the baseColor texture.",+ "default": true}]}},"input_order": {"required": [- "model",- "shift"- ],- "optional": [- "sampling"+ "moge_geometry",+ "batch_index",+ "decimation",+ "discontinuity_threshold",+ "texture"]},"is_input_list": false,"output": [- "MODEL"+ "MESH"],"output_is_list": [false],"output_name": [- "MODEL"+ "MESH"],- "name": "ModelSamplingAuraFlow",+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "MoGePointMapToMesh",+ "display_name": "Convert MoGe Point Map to Mesh",+ "description": "Convert a MoGe point map into a 3D mesh.",+ "python_module": "comfy_extras.nodes_moge",+ "category": "image/geometry estimation",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "moge",+ "mesh",+ "geometry",+ "point map"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "MoGeRender": {+ "input": {+ "required": {+ "moge_geometry": [+ "MOGE_GEOMETRY",+ {}+ ],+ "output": [+ "COMBO",+ {+ "tooltip": "DirectX vs OpenGL controls the normal-map green-channel convention. DirectX: green = -Y down (Unreal). OpenGL: green = +Y up (Blender, Substance, Unity, glTF).",+ "default": "depth",+ "multiselect": false,+ "options": [+ "depth",+ "depth_colored",+ "normal_opengl",+ "normal_directx",+ "mask"+ ]+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "moge_geometry",+ "output"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "IMAGE"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "MoGeRender",+ "display_name": "Render MoGe Geometry",+ "description": "Render a depth map or normal map from geometry data",+ "python_module": "comfy_extras.nodes_moge",+ "category": "image/geometry estimation",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "moge",+ "render",+ "geometry",+ "depth",+ "normal"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "ModelPatchLoader": {+ "input": {+ "required": {+ "name": [+ []+ ]+ }+ },+ "input_order": {+ "required": [+ "name"+ ]+ },+ "is_input_list": false,+ "output": [+ "MODEL_PATCH"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "MODEL_PATCH"+ ],+ "name": "ModelPatchLoader",+ "display_name": "Load Model Patch",+ "description": "",+ "python_module": "comfy_extras.nodes_model_patch",+ "category": "model/loaders",+ "output_node": false,+ "has_intermediate_output": false,+ "experimental": true,+ "search_aliases": []+ },+ "ModelSamplingAuraFlow": {+ "input": {+ "required": {+ "model": [+ "MODEL"+ ],+ "shift": [+ "FLOAT",+ {+ "default": 1.73,+ "min": 0,+ "max": 100,+ "step": 0.01+ }+ ]+ },+ "optional": {+ "sampling": [+ [+ "flow",+ "img_to_img_velocity"+ ],+ {+ "default": "flow",+ "advanced": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model",+ "shift"+ ],+ "optional": [+ "sampling"+ ]+ },+ "is_input_list": false,+ "output": [+ "MODEL"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "MODEL"+ ],+ "name": "ModelSamplingAuraFlow","display_name": "ModelSamplingAuraFlow","description": "","python_module": "comfy_extras.nodes_model_advanced",@@ -10378,6 +11298,53 @@"has_intermediate_output": false,"search_aliases": []},+ "OpticalFlowLoader": {+ "input": {+ "required": {+ "model_name": [+ "COMBO",+ {+ "tooltip": "Optical flow model to load. Files must be placed in the 'optical_flow' folder. Today only torchvision's raft_large.pth is supported.",+ "multiselect": false,+ "options": []+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "model_name"+ ]+ },+ "is_input_list": false,+ "output": [+ "OPTICAL_FLOW"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "OPTICAL_FLOW"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "OpticalFlowLoader",+ "display_name": "Load Optical Flow Model",+ "description": "",+ "python_module": "comfy_extras.nodes_void",+ "category": "model/loaders",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },"PreviewAny": {"input": {"required": {@@ -11693,77 +12660,245 @@"essentials_category": null,"has_intermediate_output": false},- "RepeatImageBatch": {+ "RenderSplat": {"input": {"required": {- "image": [- "IMAGE",+ "splat": [+ "SPLAT",{}],- "amount": [+ "width": ["INT",{- "default": 1,- "min": 1,- "max": 4096+ "default": 1024,+ "min": 64,+ "max": 2048,+ "step": 8}- ]- }- },- "input_order": {- "required": [- "image",- "amount"- ]- },- "is_input_list": false,- "output": [- "IMAGE"- ],- "output_is_list": [- false- ],- "output_name": [- "IMAGE"- ],- "output_tooltips": [- null- ],- "output_matchtypes": null,- "name": "RepeatImageBatch",- "display_name": "Repeat Image Batch",- "description": "",- "python_module": "comfy_extras.nodes_images",- "category": "image/batch",- "output_node": false,- "deprecated": false,- "experimental": false,- "dev_only": false,- "api_node": false,- "price_badge": null,- "search_aliases": [- "duplicate image",- "clone image"- ],- "essentials_category": null,- "has_intermediate_output": false- },- "RescaleCFG": {- "input": {- "required": {- "model": [- "MODEL"],- "multiplier": [- "FLOAT",+ "height": [+ "INT",{- "default": 0.7,- "min": 0,- "max": 1,- "step": 0.01- }- ]- }+ "default": 1024,+ "min": 64,+ "max": 2048,+ "step": 8+ }+ ],+ "frames": [+ "INT",+ {+ "tooltip": "-1, 0, 1 = single still image; >1 = turntable, the camera orbits over a full 360 turn (works with any camera_info). Negative value orbits the other way.",+ "default": 1,+ "min": -240,+ "max": 240+ }+ ],+ "splat_scale": [+ "FLOAT",+ {+ "tooltip": "Multiplier on each splat's projected footprint (lower = crisper points, higher = softer/fuller surface).",+ "advanced": true,+ "default": 1,+ "min": 0.1,+ "max": 5,+ "step": 0.05+ }+ ],+ "sharpen": [+ "FLOAT",+ {+ "tooltip": "Sharpen overlapping splats: 1.0 = physically-correct blend; higher biases each pixel toward its dominant (nearest) splat for crisper texture, without shrinking splats or opening gaps. Non-physical above 1.",+ "default": 2,+ "min": 1,+ "max": 8,+ "step": 0.5+ }+ ],+ "headlight_shading": [+ "FLOAT",+ {+ "tooltip": "Diffuse shading from a light at the camera (headlight), using the splat surfel normals: darkens surfaces that turn away from view to reveal form/curvature. 0 = flat albedo, 1 = strongest shading.",+ "advanced": true,+ "default": 0,+ "min": 0,+ "max": 3,+ "step": 0.05+ }+ ],+ "opacity_threshold": [+ "FLOAT",+ {+ "tooltip": "Cull gaussians with opacity below this (removes faint floaters).",+ "advanced": true,+ "default": 0,+ "min": 0,+ "max": 1,+ "step": 0.01+ }+ ],+ "render_style": [+ "COMBO",+ {+ "tooltip": "What the image output shows: color, clay (neutral-albedo shaded), depth (near=bright), normal (OpenGL normal map).",+ "multiselect": false,+ "options": [+ "color",+ "clay",+ "depth",+ "normal"+ ]+ }+ ],+ "background": [+ "COLOR",+ {+ "default": "#000000",+ "socketless": true+ }+ ]+ },+ "optional": {+ "bg_image": [+ "IMAGE",+ {+ "tooltip": "Optional background plate composited behind the splat (overrides the solid background colour). Resized to the render size; a batch is used per frame, a single image for all. color/clay only."+ }+ ],+ "camera_info": [+ "LOAD3D_CAMERA",+ {+ "tooltip": "Camera to render from - a Load3D / Preview3D camera or a Create Camera Info node. If empty, the splat is auto-framed from a default 3/4 view."+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "splat",+ "width",+ "height",+ "frames",+ "splat_scale",+ "sharpen",+ "headlight_shading",+ "opacity_threshold",+ "render_style",+ "background"+ ],+ "optional": [+ "bg_image",+ "camera_info"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE",+ "MASK"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "image",+ "mask"+ ],+ "output_tooltips": [+ null,+ null+ ],+ "output_matchtypes": null,+ "name": "RenderSplat",+ "display_name": "Render Splat",+ "description": "Render a gaussian splat as an image with an anisotropic EWA rasterizer (oriented elliptical splats, antialiased, depth-sorted front-to-back). The camera comes from a camera_info input (Load / Preview 3D, or a Create Camera Info node); leave it empty to auto-frame the splat. Set frames greater than 1 for a turntable batch of images to feed a Video node.",+ "python_module": "comfy_extras.nodes_gaussian_splat",+ "category": "3d/splat",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "splat to image",+ "render splat",+ "gaussian turntable"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "RepeatImageBatch": {+ "input": {+ "required": {+ "image": [+ "IMAGE",+ {}+ ],+ "amount": [+ "INT",+ {+ "default": 1,+ "min": 1,+ "max": 4096+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image",+ "amount"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "IMAGE"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "RepeatImageBatch",+ "display_name": "Repeat Image Batch",+ "description": "",+ "python_module": "comfy_extras.nodes_images",+ "category": "image/batch",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "duplicate image",+ "clone image"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "RescaleCFG": {+ "input": {+ "required": {+ "model": [+ "MODEL"+ ],+ "multiplier": [+ "FLOAT",+ {+ "default": 0.7,+ "min": 0,+ "max": 1,+ "step": 0.01+ }+ ]+ }},"input_order": {"required": [@@ -12060,6 +13195,61 @@"essentials_category": null,"has_intermediate_output": false},+ "ResizeImagesByLongerEdge": {+ "input": {+ "required": {+ "images": [+ "IMAGE",+ {+ "tooltip": "Image to process."+ }+ ],+ "longer_edge": [+ "INT",+ {+ "tooltip": "Target dimension for the longer edge.",+ "default": 1024,+ "min": 1,+ "max": 8192+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "images",+ "longer_edge"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "images"+ ],+ "output_tooltips": [+ "Processed images"+ ],+ "output_matchtypes": null,+ "name": "ResizeImagesByLongerEdge",+ "display_name": "Resize Images by Longer Edge (DEPRECATED)",+ "description": "Resize images so that the longer edge matches the specified dimension while preserving aspect ratio.",+ "python_module": "comfy_extras.nodes_dataset",+ "category": "image/transform",+ "output_node": false,+ "deprecated": true,+ "experimental": true,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },"RotateMesh": {"input": {"required": {@@ -14253,50 +15443,159 @@"essentials_category": null,"has_intermediate_output": false},- "SplitSigmas": {+ "SplatToFile3D": {"input": {"required": {- "sigmas": [- "SIGMAS",+ "splat": [+ "SPLAT",{}],- "step": [- "INT",+ "format": [+ "COMBO",{- "default": 0,- "min": 0,- "max": 10000+ "tooltip": "ply: standard 3D Gaussian Splat with full spherical harmonics. ksplat: mkkellogg SplatBuffer (level 0, uncompressed), base color only spz: Niantic gzip-compressed (~10x smaller), base color only ",+ "multiselect": false,+ "options": [+ "ply",+ "ksplat",+ "spz"+ ]}]}},"input_order": {"required": [- "sigmas",- "step"+ "splat",+ "format"]},"is_input_list": false,"output": [- "SIGMAS",- "SIGMAS"+ "FILE_3D_SPLAT_ANY"],"output_is_list": [- false,false],"output_name": [- "high_sigmas",- "low_sigmas"+ "model_3d"],"output_tooltips": [- null,null],"output_matchtypes": null,- "name": "SplitSigmas",- "display_name": null,- "description": "",+ "name": "SplatToFile3D",+ "display_name": "Create 3D File (from Splat)",+ "description": "Serialize a gaussian splat to a File3D object for Save / Preview 3D nodes. Supports one item per batch only.",+ "python_module": "comfy_extras.nodes_gaussian_splat",+ "category": "3d/splat",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "gaussian to ply",+ "splat to file",+ "export gaussian"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "SplitAudioChannels": {+ "input": {+ "required": {+ "audio": [+ "AUDIO",+ {}+ ]+ }+ },+ "input_order": {+ "required": [+ "audio"+ ]+ },+ "is_input_list": false,+ "output": [+ "AUDIO",+ "AUDIO"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "left",+ "right"+ ],+ "output_tooltips": [+ null,+ null+ ],+ "output_matchtypes": null,+ "name": "SplitAudioChannels",+ "display_name": "Split Audio Channels",+ "description": "Separates the audio into left and right channels.",+ "python_module": "comfy_extras.nodes_audio",+ "category": "audio",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "stereo to mono"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "SplitSigmas": {+ "input": {+ "required": {+ "sigmas": [+ "SIGMAS",+ {}+ ],+ "step": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 10000+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "sigmas",+ "step"+ ]+ },+ "is_input_list": false,+ "output": [+ "SIGMAS",+ "SIGMAS"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "high_sigmas",+ "low_sigmas"+ ],+ "output_tooltips": [+ null,+ null+ ],+ "output_matchtypes": null,+ "name": "SplitSigmas",+ "display_name": null,+ "description": "","python_module": "comfy_extras.nodes_custom_sampler","category": "model/sampling/sigmas","output_node": false,@@ -14557,6 +15856,100 @@"essentials_category": null,"has_intermediate_output": false},+ "StringFormat": {+ "input": {+ "required": {+ "values": [+ "COMFY_AUTOGROW_V3",+ {+ "template": {+ "input": {+ "required": {+ "value": [+ "*",+ {}+ ]+ }+ },+ "names": [+ "a",+ "b",+ "c",+ "d",+ "e",+ "f",+ "g",+ "h",+ "i",+ "j",+ "k",+ "l",+ "m",+ "n",+ "o",+ "p",+ "q",+ "r",+ "s",+ "t",+ "u",+ "v",+ "w",+ "x",+ "y",+ "z"+ ],+ "min": 0+ }+ }+ ],+ "f_string": [+ "STRING",+ {+ "default": "{a}",+ "multiline": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "values",+ "f_string"+ ]+ },+ "is_input_list": false,+ "output": [+ "STRING"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "STRING"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "StringFormat",+ "display_name": "Format Text",+ "description": "Same as Python's string format method. Supports all of Python's format options and features.",+ "python_module": "comfy_extras.nodes_string",+ "category": "text",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": [+ "string",+ "format"+ ],+ "essentials_category": null,+ "has_intermediate_output": false+ },"TextEncodeAceStepAudio1.5": {"input": {"required": {@@ -15853,67 +17246,201 @@"essentials_category": null,"has_intermediate_output": false},- "UNETLoader": {+ "TripoSplatConditioning": {"input": {"required": {- "unet_name": [- []+ "clip_vision": [+ "CLIP_VISION",+ {+ "tooltip": "DINOv3 ViT-H/16+ image encoder"+ }],- "weight_dtype": [- [- "default",- "fp8_e4m3fn",- "fp8_e4m3fn_fast",- "fp8_e5m2"- ],+ "vae": [+ "VAE",{- "advanced": true+ "tooltip": "Flux2 VAE"}+ ],+ "image": [+ "IMAGE",+ {}]}},"input_order": {"required": [- "unet_name",- "weight_dtype"+ "clip_vision",+ "vae",+ "image"]},"is_input_list": false,"output": [- "MODEL"+ "CONDITIONING",+ "CONDITIONING",+ "LATENT"],"output_is_list": [+ false,+ false,false],"output_name": [- "MODEL"+ "positive",+ "negative",+ "latent"],- "name": "UNETLoader",- "display_name": "Load Diffusion Model",- "description": "",- "python_module": "nodes",- "category": "model/loaders",+ "output_tooltips": [+ null,+ null,+ "The fixed size noise target (latent +camera)."+ ],+ "output_matchtypes": null,+ "name": "TripoSplatConditioning",+ "display_name": "TripoSplat Conditioning",+ "description": "Encode the image with DINOv3 and the Flux2 VAE into TripoSplat positive/negative conditioning, and create the fixed size noise target (latent + camera) for the KSampler",+ "python_module": "comfy_extras.nodes_triposplat",+ "category": "model/conditioning/triposplat","output_node": false,- "has_intermediate_output": false,- "search_aliases": []+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false},- "USOStyleReference": {+ "TripoSplatPreprocessImage": {"input": {"required": {- "model": [- "MODEL"+ "image": [+ "IMAGE",+ {}],- "model_patch": [- "MODEL_PATCH"+ "mask": [+ "MASK",+ {}],- "clip_vision_output": [- "CLIP_VISION_OUTPUT"- ]- }- },- "input_order": {- "required": [- "model",+ "erode_radius": [+ "INT",+ {+ "tooltip": "Erode the alpha matte by this pixel radius before cropping (avoids border bleed).",+ "default": 1,+ "min": 0,+ "max": 16+ }+ ],+ "size": [+ "INT",+ {+ "tooltip": "Square image size. The model is trained at 1024; other sizes run but are off-distribution.",+ "default": 1024,+ "min": 256,+ "max": 4096,+ "step": 16+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "image",+ "mask",+ "erode_radius",+ "size"+ ]+ },+ "is_input_list": false,+ "output": [+ "IMAGE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "image"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "TripoSplatPreprocessImage",+ "display_name": "TripoSplat Preprocess Image",+ "description": "Crop center each image to a square canvas on a black background and add padding.",+ "python_module": "comfy_extras.nodes_triposplat",+ "category": "model/conditioning/triposplat",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "UNETLoader": {+ "input": {+ "required": {+ "unet_name": [+ []+ ],+ "weight_dtype": [+ [+ "default",+ "fp8_e4m3fn",+ "fp8_e4m3fn_fast",+ "fp8_e5m2"+ ],+ {+ "advanced": true+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "unet_name",+ "weight_dtype"+ ]+ },+ "is_input_list": false,+ "output": [+ "MODEL"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "MODEL"+ ],+ "name": "UNETLoader",+ "display_name": "Load Diffusion Model",+ "description": "",+ "python_module": "nodes",+ "category": "model/loaders",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },+ "USOStyleReference": {+ "input": {+ "required": {+ "model": [+ "MODEL"+ ],+ "model_patch": [+ "MODEL_PATCH"+ ],+ "clip_vision_output": [+ "CLIP_VISION_OUTPUT"+ ]+ }+ },+ "input_order": {+ "required": [+ "model","model_patch","clip_vision_output"]@@ -16330,6 +17857,77 @@"has_intermediate_output": false,"search_aliases": []},+ "VAEDecodeTripoSplat": {+ "input": {+ "required": {+ "samples": [+ "LATENT",+ {}+ ],+ "vae": [+ "VAE",+ {+ "tooltip": "TripoSplat VAE decoder"+ }+ ],+ "num_gaussians": [+ "INT",+ {+ "tooltip": "Number of gaussians to produce (rounded to a multiple of 32). 262144 matches the octree's point density; higher oversamples the same points (denser, but no new detail) and costs proportionally more VRAM/time.",+ "default": 262144,+ "min": 32768,+ "max": 1048576,+ "step": 32+ }+ ],+ "seed": [+ "INT",+ {+ "tooltip": "Seeds the octree point sampler (global RNG) for deterministic decodes.",+ "default": 0,+ "min": 0,+ "max": 18446744073709552000+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "samples",+ "vae",+ "num_gaussians",+ "seed"+ ]+ },+ "is_input_list": false,+ "output": [+ "SPLAT"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "splat"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "VAEDecodeTripoSplat",+ "display_name": "TripoSplat Decode",+ "description": "Decode the sampled TripoSplat latent into a 3D gaussian splat. Modify the number of gaussians to vary the density.",+ "python_module": "comfy_extras.nodes_triposplat",+ "category": "model/latent/triposplat",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },"VAEEncode": {"input": {"required": {@@ -16532,13 +18130,75 @@"has_intermediate_output": false,"search_aliases": []},+ "VHS_LoadAudioUpload": {+ "input": {+ "required": {+ "audio": [+ [+ "fuobe_validate.mp4",+ "fuobe_validate.wav"+ ]+ ]+ },+ "optional": {+ "start_time": [+ "FLOAT",+ {+ "default": 0,+ "min": 0,+ "max": 10000000,+ "step": 0.01,+ "widgetType": "VHSTIMESTAMP"+ }+ ],+ "duration": [+ "FLOAT",+ {+ "default": 0,+ "min": 0,+ "max": 10000000,+ "step": 0.01,+ "widgetType": "VHSTIMESTAMP"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "audio"+ ],+ "optional": [+ "start_time",+ "duration"+ ]+ },+ "is_input_list": false,+ "output": [+ "AUDIO",+ "FLOAT"+ ],+ "output_is_list": [+ false,+ false+ ],+ "output_name": [+ "audio",+ "duration"+ ],+ "name": "VHS_LoadAudioUpload",+ "display_name": "Load Audio (Upload)🎥🅥🅗🅢",+ "description": "Load Audio (Upload) 🎥🅥🅗🅢<div style=\"font-size: 0.8em\"><div id=VHS_shortdesc>Loads an audio file from the input directory</div></div><div style=\"font-size: 0.8em\">Very similar in functionality to the built-in LoadAudio. It was originally added before VHS swapped to use Comfy's internal AUDIO format, but provides the additional options for start time and duration</div><div style=\"font-size: 0.8em\"><div vhs_title=\"Outputs\" style=\"display: flex; font-size: 0.8em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">Outputs: <div vhs_title=\"audio\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">audio: The loaded audio</div></div></div></div><div vhs_title=\"Widgets\" style=\"display: flex; font-size: 0.8em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">Widgets: <div vhs_title=\"audio\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">audio: The audio file to be loaded.</div></div><div vhs_title=\"start_time\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">start_time: An offset from the start of the sound file that the audio should start from</div></div><div vhs_title=\"duration\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">duration: A maximum limit for the audio. Disabled if 0</div></div><div vhs_title=\"choose audio to upload\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">choose audio to upload: An upload button is provided to upload an audio file to the input folder</div></div></div></div></div>",+ "python_module": "custom_nodes.ComfyUI-VideoHelperSuite",+ "category": "Video Helper Suite 🎥🅥🅗🅢/audio",+ "output_node": false,+ "has_intermediate_output": false,+ "search_aliases": []+ },"VHS_LoadVideo": {"input": {"required": {"video": [[- "fuobe_av_frame.mp4",- "fuobe_real.mp4","fuobe_validate.mp4"]],@@ -17373,6 +19033,294 @@"has_intermediate_output": false,"search_aliases": []},+ "VOIDInpaintConditioning": {+ "input": {+ "required": {+ "positive": [+ "CONDITIONING",+ {}+ ],+ "negative": [+ "CONDITIONING",+ {}+ ],+ "vae": [+ "VAE",+ {}+ ],+ "video": [+ "IMAGE",+ {+ "tooltip": "Source video frames [T, H, W, 3]"+ }+ ],+ "quadmask": [+ "MASK",+ {+ "tooltip": "Preprocessed quadmask from VOIDQuadmaskPreprocess [T, H, W]"+ }+ ],+ "width": [+ "INT",+ {+ "default": 672,+ "min": 16,+ "max": 16384,+ "step": 8+ }+ ],+ "height": [+ "INT",+ {+ "default": 384,+ "min": 16,+ "max": 16384,+ "step": 8+ }+ ],+ "length": [+ "INT",+ {+ "tooltip": "Number of pixel frames to process. For CogVideoX-Fun-V1.5 (patch_size_t=2), latent_t must be even — lengths that produce odd latent_t are rounded down (e.g. 49 → 45).",+ "default": 45,+ "min": 1,+ "max": 16384,+ "step": 1+ }+ ],+ "batch_size": [+ "INT",+ {+ "default": 1,+ "min": 1,+ "max": 64+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "positive",+ "negative",+ "vae",+ "video",+ "quadmask",+ "width",+ "height",+ "length",+ "batch_size"+ ]+ },+ "is_input_list": false,+ "output": [+ "CONDITIONING",+ "CONDITIONING",+ "LATENT"+ ],+ "output_is_list": [+ false,+ false,+ false+ ],+ "output_name": [+ "positive",+ "negative",+ "latent"+ ],+ "output_tooltips": [+ null,+ null,+ null+ ],+ "output_matchtypes": null,+ "name": "VOIDInpaintConditioning",+ "display_name": null,+ "description": "",+ "python_module": "comfy_extras.nodes_void",+ "category": "model/conditioning/void",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "VOIDSampler": {+ "input": {+ "required": {}+ },+ "input_order": {+ "required": []+ },+ "is_input_list": false,+ "output": [+ "SAMPLER"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "SAMPLER"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "VOIDSampler",+ "display_name": null,+ "description": "",+ "python_module": "comfy_extras.nodes_void",+ "category": "model/sampling/samplers",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "VOIDWarpedNoise": {+ "input": {+ "required": {+ "optical_flow": [+ "OPTICAL_FLOW",+ {+ "tooltip": "Optical flow model from OpticalFlowLoader (RAFT-large)."+ }+ ],+ "video": [+ "IMAGE",+ {+ "tooltip": "Pass 1 output video frames [T, H, W, 3]"+ }+ ],+ "width": [+ "INT",+ {+ "default": 672,+ "min": 16,+ "max": 16384,+ "step": 8+ }+ ],+ "height": [+ "INT",+ {+ "default": 384,+ "min": 16,+ "max": 16384,+ "step": 8+ }+ ],+ "length": [+ "INT",+ {+ "tooltip": "Number of pixel frames. Rounded down to make latent_t even (patch_size_t=2 requirement), e.g. 49 → 45.",+ "default": 45,+ "min": 1,+ "max": 16384,+ "step": 1+ }+ ],+ "batch_size": [+ "INT",+ {+ "default": 1,+ "min": 1,+ "max": 64+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "optical_flow",+ "video",+ "width",+ "height",+ "length",+ "batch_size"+ ]+ },+ "is_input_list": false,+ "output": [+ "LATENT"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "warped_noise"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "VOIDWarpedNoise",+ "display_name": null,+ "description": "",+ "python_module": "comfy_extras.nodes_void",+ "category": "model/latent/void",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },+ "VOIDWarpedNoiseSource": {+ "input": {+ "required": {+ "warped_noise": [+ "LATENT",+ {+ "tooltip": "Warped noise latent from VOIDWarpedNoise"+ }+ ]+ }+ },+ "input_order": {+ "required": [+ "warped_noise"+ ]+ },+ "is_input_list": false,+ "output": [+ "NOISE"+ ],+ "output_is_list": [+ false+ ],+ "output_name": [+ "NOISE"+ ],+ "output_tooltips": [+ null+ ],+ "output_matchtypes": null,+ "name": "VOIDWarpedNoiseSource",+ "display_name": null,+ "description": "",+ "python_module": "comfy_extras.nodes_void",+ "category": "model/latent/void",+ "output_node": false,+ "deprecated": false,+ "experimental": false,+ "dev_only": false,+ "api_node": false,+ "price_badge": null,+ "search_aliases": null,+ "essentials_category": null,+ "has_intermediate_output": false+ },"VaeDecodeShapeTrellis": {"input": {"required": {diff --git a/workflows/comfyui/ocr-lines-qwen35.json b/workflows/comfyui/ocr-lines-qwen35.jsonnew file mode 100644index 00000000..b5582195--- /dev/null+++ b/workflows/comfyui/ocr-lines-qwen35.json@@ -0,0 +1,112 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "poster.png"+ },+ "_meta": {+ "title": "Image to read (image)"+ }+ },+ "2": {+ "class_type": "ImageScaleToMaxDimension",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "area",+ "largest_size": 1280+ },+ "_meta": {+ "title": "Longest side the model sees (maxSize; 1280 keeps small print legible)"+ }+ },+ "3": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "ovisocr3_0.8b_bf16.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "OCR model (checkpoint: ovisocr3_0.8b_bf16 default, or qwen3.5_0.8b / 2b / 4b_bf16)"+ }+ },+ "4": {+ "class_type": "TextGenerate",+ "inputs": {+ "clip": [+ "3",+ 0+ ],+ "prompt": "Locate and transcribe every readable line of text in the image. Return a single JSON array in natural reading order.\n\nEach element follows this schema:\n`{\"bbox\": [x_min, y_min, x_max, y_max], \"text\": \"string\"}`\n\nRules:\n1. Use line-level annotations. Each element must represent exactly one visible line of text; keep the words of one line together and do not merge separate lines.\n2. The bbox coordinates are integers scaled to [0, 1000).\n3. Each bbox must tightly enclose its line.\n4. Preserve the original text exactly without translation, paraphrasing, correction, or completion.\n5. Output strictly valid JSON only. Do not output Markdown, explanations, or code fences.",+ "image": [+ "2",+ 0+ ],+ "max_length": 2048,+ "sampling_mode": "off",+ "thinking": false,+ "use_default_template": true+ },+ "_meta": {+ "title": "Read every text line with its box (instruction)"+ }+ },+ "5": {+ "class_type": "SaveText",+ "inputs": {+ "text": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/ocr-lines-qwen35",+ "format": "json"+ },+ "_meta": {+ "title": "Lines + boxes as JSON text: [{\"bbox\":[x0,y0,x1,y1] in 0-1000, \"text\":\"...\"}]"+ }+ },+ "6": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Size the model saw"+ }+ },+ "7": {+ "class_type": "StringFormat",+ "inputs": {+ "values.a": [+ "6",+ 0+ ],+ "values.b": [+ "6",+ 1+ ],+ "f_string": "{{\"width\": {a}, \"height\": {b}, \"coords\": \"relative-1000\"}}"+ },+ "_meta": {+ "title": "Frame of reference"+ }+ },+ "8": {+ "class_type": "PreviewAny",+ "inputs": {+ "source": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Size (text)"+ }+ }+}diff --git a/workflows/comfyui/reference-brief-gemma4.json b/workflows/comfyui/reference-brief-gemma4.jsonnew file mode 100644index 00000000..7e405b8f--- /dev/null+++ b/workflows/comfyui/reference-brief-gemma4.json@@ -0,0 +1,76 @@+{+ "1": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "reference.mp4",+ "force_rate": 24,+ "custom_width": 384,+ "custom_height": 0,+ "frame_load_cap": 720,+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "None"+ },+ "_meta": {+ "title": "Reference clip at 24 fps (video; frames = frame cap, startFrame, frameWidth px wide)"+ }+ },+ "2": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "gemma4_e4b_it_fp8_scaled.safetensors",+ "type": "stable_diffusion",+ "device": "default"+ },+ "_meta": {+ "title": "Gemma 4 E4B (checkpoint)"+ }+ },+ "3": {+ "class_type": "TextGenerate",+ "inputs": {+ "prompt": "You are given a short-form reference video (frames at 1 fps plus its soundtrack). Write a reusable style brief for a new faceless video in the same style. Return strict JSON with keys: format (e.g. 'what if' explainer), hook (first 3 s), pacing (average shot length in seconds), shots (list of {seconds, visual, camera, on_screen_text}), visual_style (medium, palette, lighting, texture), animation_style (one of 'Fully animated', 'Frame by frame', 'Scene by scene video', 'Seamless motion video'), narration (voice, tone, words per minute, language), music (genre, energy), captions (style, position), and topic_ideas (5). Describe style only; never copy the reference's people, logos or exact words.",+ "max_length": 2048,+ "sampling_mode": "on",+ "sampling_mode.temperature": 0.3,+ "sampling_mode.top_k": 64,+ "sampling_mode.top_p": 0.95,+ "sampling_mode.min_p": 0.05,+ "sampling_mode.repetition_penalty": 1.05,+ "sampling_mode.seed": 0,+ "sampling_mode.presence_penalty": 0,+ "thinking": false,+ "use_default_template": true,+ "mtp": "auto",+ "clip": [+ "2",+ 0+ ],+ "audio": [+ "1",+ 2+ ],+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Style brief as JSON (instruction, maxTokens)"+ }+ },+ "4": {+ "class_type": "SaveText",+ "inputs": {+ "text": [+ "3",+ 0+ ],+ "filename_prefix": "fuobe/reference-brief-gemma4",+ "format": "txt"+ },+ "_meta": {+ "title": "Save the brief"+ }+ }+}diff --git a/workflows/comfyui/scene-mesh-moge.json b/workflows/comfyui/scene-mesh-moge.jsonnew file mode 100644index 00000000..aed6f67e--- /dev/null+++ b/workflows/comfyui/scene-mesh-moge.json@@ -0,0 +1,155 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "scene.png"+ },+ "_meta": {+ "title": "Photo of the scene (image)"+ }+ },+ "2": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Its size"+ }+ },+ "3": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a > 2048",+ "values.a": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Longer than 2048 px?"+ }+ },+ "4": {+ "class_type": "ResizeImagesByLongerEdge",+ "inputs": {+ "longer_edge": 2048,+ "images": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Longer edge to 2048"+ }+ },+ "5": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "3",+ 2+ ],+ "on_false": [+ "1",+ 0+ ],+ "on_true": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Resized only when needed"+ }+ },+ "6": {+ "class_type": "LoadMoGeModel",+ "inputs": {+ "model_name": "moge_2_vitl_normal_fp16.safetensors"+ },+ "_meta": {+ "title": "MoGe model (checkpoint)"+ }+ },+ "7": {+ "class_type": "MoGeInference",+ "inputs": {+ "resolution_level": 9,+ "fov_x_degrees": 0,+ "batch_size": 4,+ "force_projection": true,+ "apply_mask": true,+ "refine_steps": 3,+ "moge_model": [+ "6",+ 0+ ],+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Point map, depth, camera (resolutionLevel, fovX: 0 = estimate)"+ }+ },+ "8": {+ "class_type": "MoGePointMapToMesh",+ "inputs": {+ "batch_index": 0,+ "decimation": 1,+ "discontinuity_threshold": 0.04,+ "texture": true,+ "moge_geometry": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Textured mesh of the whole frame (decimation)"+ }+ },+ "9": {+ "class_type": "SaveGLB",+ "inputs": {+ "filename_prefix": "fuobe/scene-mesh-moge",+ "mesh": [+ "8",+ 0+ ]+ },+ "_meta": {+ "title": "Scene GLB"+ }+ },+ "10": {+ "class_type": "MoGeRender",+ "inputs": {+ "output": "depth",+ "moge_geometry": [+ "7",+ 0+ ]+ },+ "_meta": {+ "title": "Depth render"+ }+ },+ "11": {+ "class_type": "SaveImage",+ "inputs": {+ "filename_prefix": "fuobe/scene-mesh-moge",+ "images": [+ "10",+ 0+ ]+ },+ "_meta": {+ "title": "Depth PNG"+ }+ }+}diff --git a/workflows/comfyui/still-to-clip.json b/workflows/comfyui/still-to-clip.jsonnew file mode 100644index 00000000..a965aab4--- /dev/null+++ b/workflows/comfyui/still-to-clip.json@@ -0,0 +1,131 @@+{+ "1": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "card.png"+ },+ "_meta": {+ "title": "Still or end card (image)"+ }+ },+ "2": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 1280,+ "height": 720,+ "crop": "center"+ },+ "_meta": {+ "title": "To the clip size (width, height; centre crop)"+ }+ },+ "3": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 3+ },+ "_meta": {+ "title": "Seconds (duration)"+ }+ },+ "4": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Frames per second (fps)"+ }+ },+ "5": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 1)",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Frame count"+ }+ },+ "6": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "amount": [+ "5",+ 1+ ]+ },+ "_meta": {+ "title": "Hold the still"+ }+ },+ "7": {+ "class_type": "EmptyAudio",+ "inputs": {+ "duration": [+ "3",+ 0+ ],+ "sample_rate": 44100,+ "channels": 2+ },+ "_meta": {+ "title": "Silent soundtrack (so joins and players see an audio track)"+ }+ },+ "8": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "fps": [+ "4",+ 0+ ],+ "audio": [+ "7",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Clip (encoded right away)"+ }+ },+ "9": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "8",+ 0+ ],+ "filename_prefix": "fuobe/still-to-clip",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ }+}diff --git a/workflows/comfyui/video-append-endcard.json b/workflows/comfyui/video-append-endcard.jsonnew file mode 100644index 00000000..2d1bc66c--- /dev/null+++ b/workflows/comfyui/video-append-endcard.json@@ -0,0 +1,207 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "clip.mp4"+ },+ "_meta": {+ "title": "The ad (video; its picture is copied, not re-encoded, when compatible)"+ }+ },+ "2": {+ "class_type": "LoadAudio",+ "inputs": {+ "audio": "clip.mp4"+ },+ "_meta": {+ "title": "Its soundtrack (the same upload; drop for silent clips)"+ }+ },+ "3": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "card.png"+ },+ "_meta": {+ "title": "End card, e.g. the logo on the brand colour (image)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 1280+ },+ "_meta": {+ "title": "Clip width (width; from the clip's header)"+ }+ },+ "5": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 720+ },+ "_meta": {+ "title": "Clip height (height)"+ }+ },+ "6": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "Clip frame rate (fps)"+ }+ },+ "7": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 2+ },+ "_meta": {+ "title": "End card seconds (duration)"+ }+ },+ "8": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "3",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "4",+ 0+ ],+ "height": [+ "5",+ 0+ ],+ "crop": "center"+ },+ "_meta": {+ "title": "Card at the clip's size"+ }+ },+ "9": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "max(round(a * b), 1)",+ "values.a": [+ "7",+ 0+ ],+ "values.b": [+ "6",+ 0+ ]+ },+ "_meta": {+ "title": "Card frames"+ }+ },+ "10": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "8",+ 0+ ],+ "amount": [+ "9",+ 1+ ]+ },+ "_meta": {+ "title": "Hold the card"+ }+ },+ "11": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "10",+ 0+ ],+ "fps": [+ "6",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "h264"+ },+ "_meta": {+ "title": "Card clip (H.264, like the ad)"+ }+ },+ "12": {+ "class_type": "EmptyAudio",+ "inputs": {+ "duration": [+ "7",+ 0+ ],+ "sample_rate": 44100,+ "channels": 2+ },+ "_meta": {+ "title": "Silence under the card"+ }+ },+ "13": {+ "class_type": "AudioConcat",+ "inputs": {+ "audio1": [+ "2",+ 0+ ],+ "audio2": [+ "12",+ 0+ ],+ "direction": "after"+ },+ "_meta": {+ "title": "Ad sound, then silence"+ }+ },+ "14": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "1",+ 0+ ],+ "videos.video1": [+ "11",+ 0+ ],+ "codec": "auto",+ "complete_audio": [+ "13",+ 0+ ]+ },+ "_meta": {+ "title": "Ad + end card with the ad's sound"+ }+ },+ "15": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "14",+ 0+ ],+ "filename_prefix": "fuobe/video-append-endcard",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ }+}diff --git a/workflows/comfyui/video-erase-void.json b/workflows/comfyui/video-erase-void.jsonnew file mode 100644index 00000000..868be735--- /dev/null+++ b/workflows/comfyui/video-erase-void.json@@ -0,0 +1,599 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 45+ },+ "_meta": {+ "title": "Frames to process (frames; rounded down so (frames-1)/4+1 is even, e.g. 45, 53, 61 ... 197)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 672,+ "height": 384,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; VOID trained at 672x384, multiples of 8)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the person",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 8,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask (maskGrow, px)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "t5xxl_fp16.safetensors",+ "type": "cogvideox",+ "device": "default"+ },+ "_meta": {+ "title": "T5-XXL"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty snowy mountain slope under a clear sky.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after removal (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "cogvideox_vae.safetensors"+ },+ "_meta": {+ "title": "CogVideoX VAE"+ }+ },+ "19": {+ "class_type": "VOIDInpaintConditioning",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "video": [+ "6",+ 0+ ],+ "quadmask": [+ "11",+ 0+ ],+ "width": 672,+ "height": 384,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1+ },+ "_meta": {+ "title": "VOID conditioning (mask 1 = remove)"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "void_pass1.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "VOID pass 1"+ }+ },+ "21": {+ "class_type": "CFGGuider",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "cfg": 6+ },+ "_meta": {+ "title": "Guidance (cfg)"+ }+ },+ "22": {+ "class_type": "BasicScheduler",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "scheduler": "simple",+ "steps": 30,+ "denoise": 1+ },+ "_meta": {+ "title": "Steps (steps)"+ }+ },+ "23": {+ "class_type": "VOIDSampler",+ "inputs": {},+ "_meta": {+ "title": "VOID DDIM"+ }+ },+ "24": {+ "class_type": "RandomNoise",+ "inputs": {+ "noise_seed": 0+ },+ "_meta": {+ "title": "Seed (seed)"+ }+ },+ "25": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "24",+ 0+ ],+ "guider": [+ "21",+ 0+ ],+ "sampler": [+ "23",+ 0+ ],+ "sigmas": [+ "22",+ 0+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Pass 1"+ }+ },+ "26": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "25",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 1 frames"+ }+ },+ "40": {+ "class_type": "OpticalFlowLoader",+ "inputs": {+ "model_name": "raft_large_C_T_SKHT_V2-ff5fadd5.safetensors"+ },+ "_meta": {+ "title": "RAFT optical flow"+ }+ },+ "41": {+ "class_type": "VOIDWarpedNoise",+ "inputs": {+ "optical_flow": [+ "40",+ 0+ ],+ "video": [+ "26",+ 0+ ],+ "width": 672,+ "height": 384,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1+ },+ "_meta": {+ "title": "Noise warped along pass 1's motion"+ }+ },+ "42": {+ "class_type": "VOIDWarpedNoiseSource",+ "inputs": {+ "warped_noise": [+ "41",+ 0+ ]+ },+ "_meta": {+ "title": "Warped noise"+ }+ },+ "43": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "void_pass2.safetensors",+ "weight_dtype": "default"+ },+ "_meta": {+ "title": "VOID pass 2"+ }+ },+ "44": {+ "class_type": "CFGGuider",+ "inputs": {+ "model": [+ "43",+ 0+ ],+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "cfg": 6+ },+ "_meta": {+ "title": "Pass 2 guidance"+ }+ },+ "45": {+ "class_type": "BasicScheduler",+ "inputs": {+ "model": [+ "43",+ 0+ ],+ "scheduler": "simple",+ "steps": 30,+ "denoise": 1+ },+ "_meta": {+ "title": "Pass 2 steps"+ }+ },+ "46": {+ "class_type": "VOIDSampler",+ "inputs": {},+ "_meta": {+ "title": "VOID DDIM"+ }+ },+ "47": {+ "class_type": "SamplerCustomAdvanced",+ "inputs": {+ "noise": [+ "42",+ 0+ ],+ "guider": [+ "44",+ 0+ ],+ "sampler": [+ "46",+ 0+ ],+ "sigmas": [+ "45",+ 0+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Pass 2 (temporal refinement)"+ }+ },+ "48": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "47",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 2 frames"+ }+ },+ "49": {+ "class_type": "PrimitiveBoolean",+ "inputs": {+ "value": false+ },+ "_meta": {+ "title": "Skip pass 2 (skipPass2: halves the time; pass 1 suffices for most clips)"+ }+ },+ "50": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "49",+ 0+ ],+ "on_true": [+ "26",+ 0+ ],+ "on_false": [+ "48",+ 0+ ]+ },+ "_meta": {+ "title": "Pass 1 or pass 2"+ }+ },+ "51": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "50",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "52": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "51",+ 0+ ],+ "filename_prefix": "fuobe/video-erase-void",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/workflows/comfyui/video-export-exr.json b/workflows/comfyui/video-export-exr.jsonnew file mode 100644index 00000000..256ca1b7--- /dev/null+++ b/workflows/comfyui/video-export-exr.json@@ -0,0 +1,39 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames"+ }+ },+ "3": {+ "class_type": "SaveImageAdvanced",+ "inputs": {+ "images": [+ "2",+ 0+ ],+ "filename_prefix": "fuobe/video-export-exr",+ "format": "exr",+ "format.bit_depth": "16-bit float",+ "format.input_color_space": "sRGB"+ },+ "_meta": {+ "title": "OpenEXR frames (scene-linear, half float)"+ }+ }+}diff --git a/workflows/comfyui/video-export-pro.json b/workflows/comfyui/video-export-pro.jsonnew file mode 100644index 00000000..685bbc40--- /dev/null+++ b/workflows/comfyui/video-export-pro.json@@ -0,0 +1,49 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "2",+ 0+ ],+ "audio": [+ "2",+ 1+ ],+ "frame_rate": [+ "2",+ 2+ ],+ "loop_count": 0,+ "filename_prefix": "fuobe/video-export-pro",+ "format": "video/ProRes",+ "profile": "hq",+ "pingpong": false,+ "save_output": true+ },+ "_meta": {+ "title": "Pro codec (format: video/ProRes | video/h265-mp4 | video/ffv1-mkv | video/16bit-png; profile for ProRes)"+ }+ }+}diff --git a/workflows/comfyui/video-inpaint-wan-vace-painted.json b/workflows/comfyui/video-inpaint-wan-vace-painted.jsonnew file mode 100644index 00000000..f42982f5--- /dev/null+++ b/workflows/comfyui/video-inpaint-wan-vace-painted.json@@ -0,0 +1,632 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "initial_mask": [+ "73",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track the painted object"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty street with parked cars and trees, natural daylight.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-inpaint-wan-vace-painted",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ },+ "70": {+ "class_type": "LoadImageMask",+ "inputs": {+ "image": "mask.png",+ "channel": "red"+ },+ "_meta": {+ "title": "Mask painted on the first frame (mask; white = the object, black = keep)"+ }+ },+ "71": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "70",+ 0+ ]+ },+ "_meta": {+ "title": "Mask as image"+ }+ },+ "72": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "71",+ 0+ ],+ "upscale_method": "bilinear",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "At the work size"+ }+ },+ "73": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "72",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "First-frame mask"+ }+ }+}diff --git a/workflows/comfyui/video-inpaint-wan-vace.json b/workflows/comfyui/video-inpaint-wan-vace.jsonnew file mode 100644index 00000000..9eac2fb4--- /dev/null+++ b/workflows/comfyui/video-inpaint-wan-vace.json@@ -0,0 +1,594 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the person walking on the left",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "An empty street with parked cars and trees, natural daylight.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-inpaint-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/workflows/comfyui/video-insert-wan-vace.json b/workflows/comfyui/video-insert-wan-vace.jsonnew file mode 100644index 00000000..8b9c88a6--- /dev/null+++ b/workflows/comfyui/video-insert-wan-vace.json@@ -0,0 +1,616 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "10": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "74",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Per-frame masks"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "The red sports car from the reference drives down the street.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ],+ "reference_image": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-insert-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "reference.png"+ },+ "_meta": {+ "title": "What to put in (image: object, product or character on a plain background)"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ },+ "70": {+ "class_type": "LoadImageMask",+ "inputs": {+ "image": "mask.png",+ "channel": "red"+ },+ "_meta": {+ "title": "Region to fill (mask; white = where the object goes, black = keep)"+ }+ },+ "71": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "70",+ 0+ ]+ },+ "_meta": {+ "title": "Mask as image"+ }+ },+ "72": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "71",+ 0+ ],+ "upscale_method": "bilinear",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "At the work size"+ }+ },+ "74": {+ "class_type": "RepeatImageBatch",+ "inputs": {+ "image": [+ "72",+ 0+ ],+ "amount": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "Same region in every frame"+ }+ }+}diff --git a/workflows/comfyui/video-sdr-to-hdr.json b/workflows/comfyui/video-sdr-to-hdr.jsonnew file mode 100644index 00000000..7ad61797--- /dev/null+++ b/workflows/comfyui/video-sdr-to-hdr.json@@ -0,0 +1,76 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "SDR video (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "ImageSDRToHDR",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "algorithm": "lottes",+ "algorithm.target_luminance": 650+ },+ "_meta": {+ "title": "Expand to Rec.2020 HLG (strength: target peak nits)"+ }+ },+ "4": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "3",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "2",+ 1+ ],+ "bit_depth": 10,+ "color_space": "HDR",+ "codec": "h264"+ },+ "_meta": {+ "title": "10-bit HLG"+ }+ },+ "5": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/video-sdr-to-hdr",+ "format": "mp4",+ "format.codec": "h264",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save HDR MP4"+ }+ }+}diff --git a/workflows/comfyui/video-swap-wan-vace.json b/workflows/comfyui/video-swap-wan-vace.jsonnew file mode 100644index 00000000..4d660931--- /dev/null+++ b/workflows/comfyui/video-swap-wan-vace.json@@ -0,0 +1,607 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Source clip (video)"+ }+ },+ "2": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "1",+ 0+ ]+ },+ "_meta": {+ "title": "Frames, sound, fps"+ }+ },+ "3": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "First frame of the window (startFrame)"+ }+ },+ "4": {+ "class_type": "PrimitiveInt",+ "inputs": {+ "value": 81+ },+ "_meta": {+ "title": "Frames to process, 4n+1 (frames)"+ }+ },+ "5": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "2",+ 0+ ],+ "batch_index": [+ "3",+ 0+ ],+ "length": [+ "4",+ 0+ ]+ },+ "_meta": {+ "title": "The window"+ }+ },+ "6": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "5",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 832,+ "height": 480,+ "crop": "center"+ },+ "_meta": {+ "title": "Work size (width, height; multiples of 16)"+ }+ },+ "7": {+ "class_type": "CheckpointLoaderSimple",+ "inputs": {+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"+ },+ "_meta": {+ "title": "SAM 3.1"+ }+ },+ "8": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "the car",+ "clip": [+ "7",+ 1+ ]+ },+ "_meta": {+ "title": "What to select (maskPrompt)"+ }+ },+ "9": {+ "class_type": "SAM3_VideoTrack",+ "inputs": {+ "images": [+ "6",+ 0+ ],+ "model": [+ "7",+ 0+ ],+ "conditioning": [+ "8",+ 0+ ],+ "detection_threshold": 0.5,+ "max_objects": 4,+ "detect_interval": 1+ },+ "_meta": {+ "title": "Track it through the window"+ }+ },+ "10": {+ "class_type": "SAM3_TrackToMask",+ "inputs": {+ "track_data": [+ "9",+ 0+ ],+ "object_indices": ""+ },+ "_meta": {+ "title": "Per-frame masks (object_indices: which tracked objects)"+ }+ },+ "11": {+ "class_type": "GrowMask",+ "inputs": {+ "mask": [+ "10",+ 0+ ],+ "expand": 16,+ "tapered_corners": true+ },+ "_meta": {+ "title": "Grow the mask to cover edges and shadows (maskGrow, px)"+ }+ },+ "12": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Inverted mask"+ }+ },+ "13": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "12",+ 0+ ]+ },+ "_meta": {+ "title": "Black where the mask is"+ }+ },+ "14": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "6",+ 0+ ],+ "source": [+ "13",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "11",+ 0+ ]+ },+ "_meta": {+ "title": "Control video: the clip with the masked area blanked (as the official VACE inpainting template)"+ }+ },+ "15": {+ "class_type": "CLIPLoader",+ "inputs": {+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",+ "type": "wan",+ "device": "default"+ },+ "_meta": {+ "title": "umT5"+ }+ },+ "16": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "The red sports car from the reference drives down the street.",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "The scene after the change (prompt)"+ }+ },+ "17": {+ "class_type": "CLIPTextEncode",+ "inputs": {+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",+ "clip": [+ "15",+ 0+ ]+ },+ "_meta": {+ "title": "Negative prompt (negativePrompt)"+ }+ },+ "18": {+ "class_type": "VAELoader",+ "inputs": {+ "vae_name": "wan_2.1_vae.safetensors"+ },+ "_meta": {+ "title": "Wan VAE"+ }+ },+ "19": {+ "class_type": "WanVaceToVideo",+ "inputs": {+ "positive": [+ "16",+ 0+ ],+ "negative": [+ "17",+ 0+ ],+ "vae": [+ "18",+ 0+ ],+ "width": 832,+ "height": 480,+ "length": [+ "4",+ 0+ ],+ "batch_size": 1,+ "strength": 1,+ "control_video": [+ "14",+ 0+ ],+ "control_masks": [+ "11",+ 0+ ],+ "reference_image": [+ "40",+ 0+ ]+ },+ "_meta": {+ "title": "VACE: mask 1 = regenerate, 0 = keep"+ }+ },+ "20": {+ "class_type": "UNETLoader",+ "inputs": {+ "unet_name": "wan2.1_vace_14B_fp16.safetensors",+ "weight_dtype": "fp8_e4m3fn_fast"+ },+ "_meta": {+ "title": "Wan 2.1 VACE 14B (cast to fp8 on load)"+ }+ },+ "21": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "20",+ 0+ ],+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "lightx2v 4-step LoRA, Apache-2.0 (loraStrength 0 + steps 20 + cfg 6 = full quality)"+ }+ },+ "22": {+ "class_type": "ModelSamplingSD3",+ "inputs": {+ "model": [+ "21",+ 0+ ],+ "shift": 5+ },+ "_meta": {+ "title": "Shift (shift)"+ }+ },+ "23": {+ "class_type": "KSampler",+ "inputs": {+ "model": [+ "22",+ 0+ ],+ "seed": 0,+ "steps": 4,+ "cfg": 1,+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "positive": [+ "19",+ 0+ ],+ "negative": [+ "19",+ 1+ ],+ "latent_image": [+ "19",+ 2+ ]+ },+ "_meta": {+ "title": "Sample (seed, steps, cfg)"+ }+ },+ "24": {+ "class_type": "TrimVideoLatent",+ "inputs": {+ "samples": [+ "23",+ 0+ ],+ "trim_amount": [+ "19",+ 3+ ]+ },+ "_meta": {+ "title": "Drop the reference latent"+ }+ },+ "25": {+ "class_type": "VAEDecode",+ "inputs": {+ "samples": [+ "24",+ 0+ ],+ "vae": [+ "18",+ 0+ ]+ },+ "_meta": {+ "title": "Decode"+ }+ },+ "30": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Source size"+ }+ },+ "31": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "25",+ 0+ ],+ "upscale_method": "lanczos",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Result at the source size"+ }+ },+ "32": {+ "class_type": "GrowMaskWithBlur",+ "inputs": {+ "mask": [+ "11",+ 0+ ],+ "expand": 4,+ "incremental_expandrate": 0,+ "tapered_corners": true,+ "flip_input": false,+ "blur_radius": 6,+ "lerp_alpha": 1,+ "decay_factor": 1,+ "fill_holes": false+ },+ "_meta": {+ "title": "Soft paste edge"+ }+ },+ "33": {+ "class_type": "MaskToImage",+ "inputs": {+ "mask": [+ "32",+ 0+ ]+ },+ "_meta": {+ "title": "Paste mask as image"+ }+ },+ "34": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "33",+ 0+ ],+ "upscale_method": "bilinear",+ "width": [+ "30",+ 0+ ],+ "height": [+ "30",+ 1+ ],+ "crop": "disabled"+ },+ "_meta": {+ "title": "Paste mask at the source size"+ }+ },+ "35": {+ "class_type": "ImageToMask",+ "inputs": {+ "image": [+ "34",+ 0+ ],+ "channel": "red"+ },+ "_meta": {+ "title": "Paste mask"+ }+ },+ "36": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "5",+ 0+ ],+ "source": [+ "31",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "35",+ 0+ ]+ },+ "_meta": {+ "title": "Only the masked area changes"+ }+ },+ "37": {+ "class_type": "CreateVideo",+ "inputs": {+ "images": [+ "36",+ 0+ ],+ "fps": [+ "2",+ 2+ ],+ "audio": [+ "62",+ 0+ ],+ "bit_depth": "auto",+ "color_space": "sRGB",+ "codec": "none"+ },+ "_meta": {+ "title": "Clip with the window's sound"+ }+ },+ "38": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "37",+ 0+ ],+ "filename_prefix": "fuobe/video-swap-wan-vace",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "40": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "reference.png"+ },+ "_meta": {+ "title": "What to put in (image: object, product or character on a plain background)"+ }+ },+ "60": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "3",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window start in seconds"+ }+ },+ "61": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "a / b",+ "values.a": [+ "4",+ 0+ ],+ "values.b": [+ "2",+ 2+ ]+ },+ "_meta": {+ "title": "Window length in seconds"+ }+ },+ "62": {+ "class_type": "TrimAudioDuration",+ "inputs": {+ "audio": [+ "2",+ 1+ ],+ "start_index": [+ "60",+ 0+ ],+ "duration": [+ "61",+ 0+ ]+ },+ "_meta": {+ "title": "The window's sound (none for silent clips)"+ }+ }+}diff --git a/workflows/comfyui/wan21-vace-14b-ref2v.json b/workflows/comfyui/wan21-vace-14b-ref2v.jsonindex 5a6046a5..5c0cfa2b 100644--- a/workflows/comfyui/wan21-vace-14b-ref2v.json+++ b/workflows/comfyui/wan21-vace-14b-ref2v.json@@ -71,7 +71,7 @@"seed": 552837504311715,"steps": 4,"cfg": 1,- "sampler_name": "uni_pc",+ "sampler_name": "euler","scheduler": "simple","denoise": 1,"model": [@@ -127,7 +127,7 @@},"110": {"inputs": {- "shift": 8.000000000000002,+ "shift": 5,"model": ["115",0@@ -159,9 +159,9 @@},"115": {"inputs": {- "lora_name": "Wan21_CausVid_14B_T2V_lora_rank32.safetensors",- "strength_model": 0.30000000000000004,- "strength_clip": 1,+ "lora_name": "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",+ "strength_model": 1,+ "strength_clip": 0,"model": ["113",0