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
Originals O13: Fuobe Evolution's GPU graph loads any clip at 16 fps and starts each intensity at its own noise level
Claude9576d975df85
diff --git a/docs/research/fuobe-originals-recipes-5.json b/docs/research/fuobe-originals-recipes-5.jsonindex cbf6ed54..06c273ed 100644--- a/docs/research/fuobe-originals-recipes-5.json+++ b/docs/research/fuobe-originals-recipes-5.json@@ -17813,14 +17813,14 @@"references": "the endpoint takes no images: references shape the direction only (unverified whether fal-ai/ltx-2.3-22b/reference-video-to-video/lora's IC-LoRA could carry one)"},"open": {- "segments": "≤81 frames (4n+1) at 16 fps, back to back (video-segment-resample), 480p or 720p",+ "segments": "≤81 frames (4n+1) at 16 fps, back to back (video-segment-resample), 480p or 720p; the graph itself also loads any clip at 16 fps (VHS_LoadVideo, at most `frames` frames, cut to 4n+1) and runs as many frames as it loaded, so a whole clip sent from Edit video is neither slow motion nor a shape error","directionFrame": "qwen-image-edit-2511 on the segment's first frame with the direction, up to 2 references as images 2–3",- "video": "video-evolution-wan22-fun-vace: reference latent + VAE-encoded segment, noised to the intensity's denoise the way KSampler does it (a schedule of floor(4 / denoise) steps, the last 4 run, Lightx2v 4-step), the high-noise expert for the first half; Depth Anything 3 depth on every frame",+ "video": "video-evolution-wan22-fun-vace: reference latent + VAE-encoded segment, noised to denoise = the noise level it starts from (flow matching: (1 − denoise) × clip + denoise × noise). The simple scheduler with shift 5 reaches that level N − 4 steps into a schedule of N = round(4 × (5 − 4 × denoise) / denoise) steps, and the last 4 run (Lightx2v 4-step): low 0.45 → N 28 (starts at σ 0.455), medium 0.65 → N 15 (0.645), high 0.85 → N 8 (0.833). Wan 2.2's high-noise expert takes only the steps at or above its switch point (σ 0.875), so all three intensities run on the low-noise expert; full denoise is the restyle graph's 2 + 2. Depth Anything 3 depth on every frame. (Corrected 2026-10-29: the first version noised the way KSampler does, floor(4 / denoise) steps, which with 4 steps and shift 5 started every intensity at σ 0.83–1 and made high the same as full noise.)","join": "video-concat-N, then the clip's own sound (video-mux-audio)"},"unverified": ["nothing rendered: the denoise values, LTX-2.3's video_strength at these values, and whether fal resamples a 30 fps input to the fixed 24 fps",- "the high-noise expert at low denoise (Wan 2.2's experts split by noise level; at 0.45 the first steps start below the usual switch point)"+ "Lightx2v's 4-step LoRA at these start levels (it was distilled on the full-noise schedule, σ 1 → 0.94 → 0.83 → 0.63), and whether low (σ 0.45) changes enough to be seen"]}},diff --git a/docs/research/fuobe-originals-recipes-5.md b/docs/research/fuobe-originals-recipes-5.mdindex 50f3c6c2..4503a5bb 100644--- a/docs/research/fuobe-originals-recipes-5.md+++ b/docs/research/fuobe-originals-recipes-5.md@@ -715,10 +715,10 @@ Also new and worth a later look: Lightricks LTX-2.5 **Cinemagraph** (2026-09-10,*Added 2026-10-29 for O13 (JSON: `studios[evolution]`). Fuobe's own recipe, unmeasured until the evaluation harness runs the `evolution` suite.*- **Change intensity:** denoise 0.45 / 0.65 / 0.85 (build plan O13); in the cloud LTX-2.3's `video_strength` = 1 − denoise (0.55 / 0.35 / 0.15; the field's description: lower values give the model more freedom to change the video; fal's default 0.01 all but re-renders it).-- **Open (ComfyUI):** Fuobe `video-evolution-wan22-fun-vace`: per ≤81-frame segment at 16 fps (video-segment-resample), Qwen-Image-Edit 2511 takes the segment's first frame toward the direction (images 2–3 = the first two references), then Wan 2.2 Fun VACE re-renders the segment from the segment itself: reference latent + VAE-encoded frames, noised to the intensity's denoise the way KSampler does it (a schedule of floor(4 / denoise) steps, the last 4 run, Lightx2v 4-step), the high-noise expert for the first half, Depth Anything 3 depth on every frame, the direction frame as the VACE reference. Then video-concat-N and the clip's own sound. Same weights as the restyle graph (24 GB).+- **Open (ComfyUI):** Fuobe `video-evolution-wan22-fun-vace`: per ≤81-frame segment at 16 fps (video-segment-resample), Qwen-Image-Edit 2511 takes the segment's first frame toward the direction (images 2–3 = the first two references), then Wan 2.2 Fun VACE re-renders the segment from the segment itself: reference latent + VAE-encoded frames, noised to denoise = the noise level it starts from ((1 − denoise) × clip + denoise × noise). The simple scheduler with shift 5 reaches that level N − 4 steps into a schedule of N = round(4 × (5 − 4 × denoise) / denoise) steps and the last 4 run (Lightx2v 4-step): low starts at σ 0.455, medium 0.645, high 0.833. Wan 2.2's high-noise expert takes only steps at or above its switch point (σ 0.875), so the three intensities run on the low-noise expert; full denoise is the restyle graph's 2 + 2. Depth Anything 3 depth on every frame, the direction frame as the VACE reference. The graph loads any clip at 16 fps (VHS_LoadVideo, at most `frames` frames, 4n+1) and runs as many frames as it loaded, so a whole clip from Edit video is neither slow motion nor a shape error. Then video-concat-N and the clip's own sound. Same weights as the restyle graph (24 GB). *(Corrected 2026-10-29: the first version noised the way KSampler does, floor(4 / denoise) steps, which with 4 steps and shift 5 started every intensity at σ 0.83–1 and made high the same as full noise.)*- **Hosted:** `fal-ai/ltx-2.3-22b/video-to-video` (`/lora` when a LoRA rides along), the direction as the scene, prompt expansion off, `generate_audio` off (the clip's sound goes back on), `match_video_length` and `match_input_fps` off, 24 fps, at most 481 frames a call (a clip over 20 s runs as equal pieces, joined), the tier's size for the clip's nearest shape from Fuobe Cinema's table; $0.001605 per megapixel of video. The endpoint takes no images, so in the cloud the references shape the direction only.- **Direction:** an LLM writes it from the references and the user's few words (Claude in the cloud, Ollama with a vision model on the GPU; up to 8 / 4 references and a frame of the clip are sent), as a description of the finished video; without one (no key, Ollama not running, demo mode, the text model switched off) Fuobe's offline writer builds it from the intensity, the words and the number of references.-- **Unverified:** nothing rendered; the denoise values and `video_strength` at them; whether fal resamples a 30 fps input to the fixed 24 fps; the high-noise expert at low denoise (Wan 2.2's experts split by noise level, and at 0.45 the first steps start below the usual switch point).+- **Unverified:** nothing rendered; the denoise values and `video_strength` at them; whether fal resamples a 30 fps input to the fixed 24 fps; Lightx2v's 4-step LoRA at these start levels (it was distilled on the full-noise schedule, σ 1 → 0.94 → 0.83 → 0.63), and whether low (σ 0.45) changes enough to be seen.- **Licences:** Wan 2.2 Fun VACE, lightx2v, Qwen-Image-Edit 2511 Apache-2.0; LTX-2.x Community License (free under US$10M annual revenue)---diff --git a/scripts/comfy/hand-built/video-evolution-wan22-fun-vace.json b/scripts/comfy/hand-built/video-evolution-wan22-fun-vace.jsonindex eedebb40..2babb716 100644--- a/scripts/comfy/hand-built/video-evolution-wan22-fun-vace.json+++ b/scripts/comfy/hand-built/video-evolution-wan22-fun-vace.json@@ -1,30 +1,28 @@{"1": {- "class_type": "LoadVideo",+ "class_type": "VHS_LoadVideo","inputs": {- "file": "segment.mp4"- },- "_meta": {- "title": "source segment (<=81 frames @16 fps)"- }- },- "2": {- "class_type": "GetVideoComponents",- "inputs": {- "video": [- "1",+ "video": "segment.mp4",+ "force_rate": 16,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": [+ "30",0- ]+ ],+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "Wan"},"_meta": {- "title": "GetVideoComponents"+ "title": "the clip resampled to 16 fps, at most `frames` frames, cut to 4n+1 (VHS Wan format)"}},"3": {"class_type": "ImageScale","inputs": {"image": [- "2",+ "1",0],"upscale_method": "lanczos",@@ -185,13 +183,13 @@"width": 832,"height": 480,"length": [- "30",- 0+ "1",+ 1],"batch_size": 1,"strength": 1.0,"control_video": [- "32",+ "9",0],"reference_image": [@@ -258,7 +256,10 @@"18",0],- "shift": 5.0+ "shift": [+ "50",+ 0+ ]},"_meta": {"title": "ModelSamplingSD3"@@ -271,7 +272,10 @@"19",0],- "shift": 5.0+ "shift": [+ "50",+ 0+ ]},"_meta": {"title": "ModelSamplingSD3"@@ -281,7 +285,7 @@"class_type": "KSamplerAdvanced","inputs": {"model": [- "20",+ "52",0],"add_noise": "enable",@@ -399,8 +403,8 @@],"fps": 16.0,"audio": [- "2",- 1+ "1",+ 2],"bit_depth": "auto","color_space": "sRGB",@@ -432,48 +436,14 @@"value": 81},"_meta": {- "title": "frames (4n+1, <= source frames)"- }- },- "32": {- "class_type": "ImageFromBatch",- "inputs": {- "image": [- "9",- 0- ],- "batch_index": 0,- "length": [- "30",- 0- ]- },- "_meta": {- "title": "depth control for every frame"- }- },- "41": {- "class_type": "ImageFromBatch",- "inputs": {- "image": [- "3",- 0- ],- "batch_index": 0,- "length": [- "30",- 0- ]- },- "_meta": {- "title": "source frames (frames)"+ "title": "frames asked for (4n+1): the loader's cap; the graph runs as many as the clip has"}},"42": {"class_type": "VAEEncode","inputs": {"pixels": [- "41",+ "3",0],"vae": [@@ -524,7 +494,7 @@"value": 0.65},"_meta": {- "title": "denoise (change intensity: low 0.45, medium 0.65, high 0.85)"+ "title": "denoise = the noise level the segment starts from (change intensity: low 0.45, medium 0.65, high 0.85)"}},"46": {@@ -539,7 +509,7 @@"47": {"class_type": "ComfyMathExpression","inputs": {- "expression": "max(a, floor(a / max(b, 0.05)))",+ "expression": "max(a, round(a * (c - (c - 1) * min(b, 1)) / max(b, 0.02)))","values.a": ["46",0@@ -547,10 +517,14 @@"values.b": ["45",0+ ],+ "values.c": [+ "50",+ 0]},"_meta": {- "title": "schedule length = floor(steps / denoise)"+ "title": "schedule length N: the simple scheduler's sigma is the denoise `steps` steps before its end (shift c)"}},"48": {@@ -567,13 +541,72 @@]},"_meta": {- "title": "first step run"+ "title": "first step run (N - steps)"}},"49": {"class_type": "ComfyMathExpression","inputs": {- "expression": "b - a + max(1, floor(a / 2))",+ "expression": "b - a + max(1, c)",+ "values.a": [+ "46",+ 0+ ],+ "values.b": [+ "47",+ 1+ ],+ "values.c": [+ "53",+ 1+ ]+ },+ "_meta": {+ "title": "first step of the low-noise expert"+ }+ },+ "50": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 5.0+ },+ "_meta": {+ "title": "shift (ModelSamplingSD3, both experts)"+ }+ },+ "51": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.875+ },+ "_meta": {+ "title": "Wan 2.2 A14B's expert switch point (sigma 0.875: the high-noise expert at or above it)"+ }+ },+ "52": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "53",+ 2+ ],+ "on_false": [+ "21",+ 0+ ],+ "on_true": [+ "20",+ 0+ ]+ },+ "_meta": {+ "title": "the first sampler's expert: high-noise only when the run starts at or above the switch point"+ }+ },+ "53": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a - 1, max(0, floor(b * (1 - d / (c - (c - 1) * d))) - (b - a) + 1))","values.a": ["46",0@@ -581,10 +614,18 @@"values.b": ["47",1+ ],+ "values.c": [+ "50",+ 0+ ],+ "values.d": [+ "51",+ 0]},"_meta": {- "title": "high-noise expert hands over to the low-noise one"+ "title": "steps at or above the switch point (the high-noise expert's; at least one step is left to the low-noise one)"}}}diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex cdb2cc3c..6694059f 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -2145,11 +2145,11 @@ export const SPEC = [capability: 'v2v',handBuilt: 'hand-built/video-evolution-wan22-fun-vace.json',bindings: {- video: [b('1', 'file')], image: [b('4', 'image')], prompt: [b('12', 'text')], negativePrompt: [b('13', 'text')],+ video: [b('1', 'video')], image: [b('4', 'image')], prompt: [b('12', 'text')], negativePrompt: [b('13', 'text')],width: [b('3', 'width'), b('5', 'width'), b('9', 'width'), b('15', 'width')],height: [b('3', 'height'), b('5', 'height'), b('9', 'height'), b('15', 'height')],- frames: [b('30', 'value')], fps: [b('26', 'fps')], seed: [b('22', 'noise_seed'), b('23', 'noise_seed')], steps: [b('46', 'value')],- cfg: [b('22', 'cfg'), b('23', 'cfg')], shift: [b('20', 'shift'), b('21', 'shift')], controlStrength: [b('15', 'strength')],+ frames: [b('30', 'value')], fps: [b('1', 'force_rate'), b('26', 'fps')], seed: [b('22', 'noise_seed'), b('23', 'noise_seed')], steps: [b('46', 'value')],+ cfg: [b('22', 'cfg'), b('23', 'cfg')], shift: [b('50', 'value')], controlStrength: [b('15', 'strength')],denoise: [b('45', 'value')],},outputs: [{ node: '27', kind: 'video' }],@@ -2158,8 +2158,11 @@ export const SPEC = [license: 'Apache-2.0 (Wan 2.2 Fun VACE, lightx2v, Depth Anything 3 mono-large)',notes:'Fuobe Evolution (build plan O13) on the GPU: video-segment-resample (<=81 frames @16 fps + first frame) -> qwen-image-edit-2511 takes the first frame toward the creative direction (images 2-3 = references) -> this graph -> video-concat-N -> the clip\'s sound. ' +- 'Unlike video-restyle-wan22-fun-vace the sampler starts from the segment itself: reference latent + VAE-encoded frames (LatentConcat on t, the shape WanVaceToVideo makes), noised to denoise (low 0.45, medium 0.65, high 0.85) the way KSampler does it: a schedule of floor(steps / denoise) steps of which the last `steps` run (ComfyMathExpression), the high-noise expert for the first half. ' +- 'Control: Depth Anything 3 depth on every frame (no kept frame, no masks); the direction frame is the VACE reference. frames must be 4n+1 and equal the segment\'s frame count (the source latent and the VACE latent must line up). Same weights as the restyle graph.',+ 'Any clip loads: VHS_LoadVideo resamples it to fps (16), keeps at most `frames` frames and cuts them to 4n+1 (Wan format), and every length in the graph is the loaded count, so a short or 30 fps clip is neither a shape error nor slow motion (Edit video sends whole clips). ' ++ 'Unlike video-restyle-wan22-fun-vace the sampler starts from the segment itself: reference latent + VAE-encoded frames (LatentConcat on t, the shape WanVaceToVideo makes), noised to denoise = the noise level it starts from (flow matching: (1 - denoise) x clip + denoise x noise; low 0.45, medium 0.65, high 0.85). ' ++ 'The simple scheduler with shift s reaches sigma = denoise N - steps steps into a schedule of N = round(steps x (s - (s - 1) x denoise) / denoise) steps, and the last `steps` run (Lightx2v 4-step), so the run starts within a few hundredths of any denoise from 0.02 to 1 (KSampler\'s floor(steps / denoise) could only make 1, 0.8, 0.67, 0.57 or 0.5 with 4 steps). ' ++ 'Wan 2.2\'s high-noise expert takes only the steps at or above its switch point (sigma 0.875; ComfySwitchNode gives the first sampler the low-noise expert when the run starts below it, as all three intensities do). ' ++ 'Control: Depth Anything 3 depth on every frame (no kept frame, no masks); the direction frame is the VACE reference. Same weights as the restyle graph.',},{id: 'mixed-media-zimage-frames',diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex 7cfc51bb..75675263 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -672,10 +672,10 @@"at": "2026-10-23T04:45:42.666Z"},"video-evolution-wan22-fun-vace": {- "sha256": "3816ef71bdbfcfae9836928ca99d25cb066386029d3b809ce76edbdb4b5df934",+ "sha256": "76e8fc309eb111c08658fd04fa99e36d61608ec62d1ab535e80cba57db1e08ae","validated": true,"error": null,- "at": "2026-10-29T00:50:59.498Z"+ "at": "2026-10-29T02:04:05.351Z"},"video-export-exr": {"sha256": "76efcb75b5995707dc326254ae73cdc806f12714c7543f70511f74f62fd8ca49",diff --git a/src/lib/catalog/evolution.ts b/src/lib/catalog/evolution.tsindex c32f7f33..baeaa51c 100644--- a/src/lib/catalog/evolution.ts+++ b/src/lib/catalog/evolution.ts@@ -6,7 +6,8 @@** - On your GPU: per ≤81-frame segment at 16 fps, Qwen-Image-Edit takes the segment's first frame toward the direction* (the first references as images 2–3), then Wan 2.2 Fun VACE re-renders the segment from the segment itself, noised- * to the intensity's denoise, with depth control and that frame as its reference (video-evolution-wan22-fun-vace).+ * to the intensity's denoise, with depth control and that frame as its reference (video-evolution-wan22-fun-vace, which+ * also loads a whole clip at 16 fps when Edit video sends one).* - In the cloud: LTX-2.3 22B video to video on fal, video_strength = 1 − denoise, the direction as the scene; a clip* over 20 s runs as equal pieces. The endpoint takes no images: there the references shape the direction only.* - Then the pieces are joined and the clip's own sound put back.@@ -43,7 +44,8 @@ export const EVOLUTION = {export type Intensity = "low" | "medium" | "high";/**- * Build plan O13's change intensity: the denoise the open graph starts from (the share of each frame redrawn), and in the+ * Build plan O13's change intensity: the denoise the open graph starts from (the noise level it takes the clip to:+ * (1 − denoise) × clip + denoise × noise, then 4 Lightx2v steps back), and in the* cloud LTX-2.3's video_strength = 1 − denoise (lower gives the model more freedom). The same numbers are in the research* (studios[evolution].original.intensity); tests/evolution.test.ts holds them together.*/diff --git a/tests/evolution-comfy.test.ts b/tests/evolution-comfy.test.tsindex 5227f1df..a1d0ee54 100644--- a/tests/evolution-comfy.test.ts+++ b/tests/evolution-comfy.test.ts@@ -2,7 +2,7 @@ import fs from "node:fs";import os from "node:os";import path from "node:path";import { afterAll, describe, expect, it } from "vitest";-import { planEvolution } from "@/lib/catalog/evolution";+import { INTENSITIES, planEvolution } from "@/lib/catalog/evolution";import type { GenInput } from "@/lib/catalog/types";import type { MediaInfo } from "@/lib/media-probe";@@ -36,16 +36,101 @@ describe("Fuobe Evolution's GPU graph through the provider", () => {{ generationId: "g1", op: "v2v", upload: async (_d, _t, name) => `up_${name}`, media: (n) => (n === "seg.mp4" ? seg : undefined) },);expect(at(wf, "12", "text")).toBe("A lantern-lit night market in the rain.");- expect(at(wf, "1", "file")).toBe("seg.mp4");+ expect(at(wf, "1", "video")).toBe("seg.mp4");+ expect(at(wf, "1", "force_rate")).toBe(16);expect(at(wf, "4", "image")).toBe("frame.png");expect(at(wf, "45", "value")).toBe(0.45);expect(at(wf, "22", "noise_seed")).toBe(9);// The segment's own frame count (4n + 1), so the source latent lines up with VACE's.expect(at(wf, "30", "value")).toBe(Math.round(req.params!.duration! * 16));expect((at(wf, "30", "value") as number) % 4).toBe(1);- // The schedule is computed in the graph: steps 4, the high-noise expert first.+ // The schedule is computed in the graph: 4 steps run, the first sampler's expert picked by the switch point.expect(at(wf, "46", "value")).toBe(4);expect(at(wf, "22", "start_at_step")).toEqual(["48", 1]);expect(at(wf, "23", "start_at_step")).toEqual(["49", 1]);+ expect(at(wf, "22", "model")).toEqual(["52", 0]);+ });++ it("a whole clip from Edit video (24 fps, shorter than asked): loaded at 16 fps, every length is the loaded count", async () => {+ // 2 s at 24 fps with duration 5 asked for: 81 frames at most, the loader keeps what the clip has (29 at 16 fps).+ const clip: MediaInfo = { container: "mp4", hasVideo: true, hasAudio: true, duration: 2, videoDuration: 2, width: 1280, height: 720, fps: 24, frames: 48 };+ const { workflow: wf } = await prepareWorkflow(+ "video-evolution-wan22-fun-vace",+ { prompt: "A night market", video: "clip.mp4", images: ["frame.png"], aspectRatio: "auto", resolution: "480p", duration: 5, extra: { denoise: 0.85 } } as GenInput,+ { generationId: "g2", op: "v2v", upload: async (_d, _t, name) => `up_${name}`, media: (n) => (n === "clip.mp4" ? clip : undefined) },+ );+ expect(at(wf, "1", "video")).toBe("clip.mp4");+ expect(wf["1"].class_type).toBe("VHS_LoadVideo");+ expect(at(wf, "1", "force_rate")).toBe(16);+ expect(at(wf, "1", "format")).toBe("Wan");+ expect(at(wf, "30", "value")).toBe(81);+ expect(at(wf, "1", "frame_load_cap")).toEqual(["30", 0]);+ // VACE's length, the depth control and the source latent all come from the frames loaded, never from `frames`.+ expect(at(wf, "15", "length")).toEqual(["1", 1]);+ expect(at(wf, "15", "control_video")).toEqual(["9", 0]);+ expect(at(wf, "42", "pixels")).toEqual(["3", 0]);+ expect(at(wf, "3", "image")).toEqual(["1", 0]);+ expect(at(wf, "26", "fps")).toBe(16);+ expect(at(wf, "26", "audio")).toEqual(["1", 2]);+ const linksTo30 = Object.entries(wf).flatMap(([id, n]) => Object.entries(n.inputs).filter(([, v]) => Array.isArray(v) && v[0] === "30").map(([k]) => `${id}.${k}`));+ expect(linksTo30).toEqual(["1.frame_load_cap"]);+ expect(at(wf, "45", "value")).toBe(0.85);+ });+});++// ComfyUI's simple scheduler on a flow model with shift s: step k of n is at t = (1000 - floor(k * 1000 / n)) / 1000.+const sigmaAt = (k: number, n: number, s: number) => {+ const t = (1000 - Math.floor((k * 1000) / n)) / 1000;+ return (s * t) / (1 + (s - 1) * t);+};++describe("Fuobe Evolution's schedule (the graph's own expressions)", () => {+ const graph = JSON.parse(fs.readFileSync(path.join(process.cwd(), "workflows/comfyui/video-evolution-wan22-fun-vace.json"), "utf8")) as Record<string, { class_type: string; inputs: Record<string, unknown> }>;+ // simpleeval's functions, as ComfyMathExpression offers them.+ const evalNode = (id: string, values: Record<string, number>) => {+ const expr = String(graph[id].inputs.expression);+ const names = Object.keys(values);+ return Math.trunc(new Function("min", "max", "round", "floor", ...names, `return (${expr});`)(Math.min, Math.max, Math.round, Math.floor, ...names.map((n) => values[n])));+ };+ const schedule = (denoise: number) => {+ const steps = Number(graph["46"].inputs.value);+ const shift = Number(graph["50"].inputs.value);+ const sw = Number(graph["51"].inputs.value);+ const n = evalNode("47", { a: steps, b: denoise, c: shift });+ const start = evalNode("48", { a: steps, b: n });+ const high = evalNode("53", { a: steps, b: n, c: shift, d: sw });+ const handover = evalNode("49", { a: steps, b: n, c: high });+ return { n, start, high, handover, sigma: sigmaAt(start, n, shift), shift, sw, steps };+ };++ it("each intensity starts within a few hundredths of its denoise, and they differ (high is not full noise)", () => {+ const sigmas = INTENSITIES.map((i) => {+ const s = schedule(i.denoise);+ expect(s.n - s.start).toBe(s.steps);+ expect(Math.abs(s.sigma - i.denoise)).toBeLessThan(0.03);+ return s.sigma;+ });+ expect(new Set(sigmas.map((x) => x.toFixed(3))).size).toBe(3);+ expect(sigmas[2]).toBeLessThan(0.9);+ // Full denoise is the restyle graph's schedule: 4 steps, 2 on each expert.+ expect(schedule(1)).toMatchObject({ n: 4, start: 0, high: 2, handover: 2 });+ });++ it("tunable between 0.8 and 1: 0.9 and 0.95 start where they say", () => {+ for (const d of [0.9, 0.95]) expect(Math.abs(schedule(d).sigma - d)).toBeLessThan(0.03);+ });++ it("the high-noise expert only takes steps at or above Wan 2.2's switch point", () => {+ for (const d of [0.3, 0.45, 0.65, 0.85, 0.9, 0.95, 1]) {+ const s = schedule(d);+ for (let k = s.start; k < s.n; k++) {+ const onHigh = s.high > 0 && k < s.handover;+ expect(onHigh, `denoise ${d}, step ${k}`).toBe(sigmaAt(k, s.n, s.shift) >= s.sw);+ }+ // The switch hands the first sampler the low-noise expert when no step is the high one's.+ expect(s.high > 0).toBe(s.sigma >= s.sw);+ expect(s.handover).toBeGreaterThan(s.start);+ }+ expect(graph["52"]).toMatchObject({ class_type: "ComfySwitchNode", inputs: { switch: ["53", 2], on_true: ["20", 0], on_false: ["21", 0] } });});});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 55f3defa..a99a8f09 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -1,6 +1,6 @@{"version": 1,- "generatedAt": "2026-10-29T00:50:38.204Z",+ "generatedAt": "2026-10-29T02:03:47.224Z","comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597","comfyuiVersion": "0.41.0","workflowTemplatesVersion": "0.11.86",@@ -9623,7 +9623,7 @@"video": [{"node": "1",- "input": "file"+ "input": "video"}],"image": [@@ -9687,6 +9687,10 @@}],"fps": [+ {+ "node": "1",+ "input": "force_rate"+ },{"node": "26","input": "fps"@@ -9720,12 +9724,8 @@],"shift": [{- "node": "20",- "input": "shift"- },- {- "node": "21",- "input": "shift"+ "node": "50",+ "input": "value"}],"controlStrength": [@@ -9815,11 +9815,16 @@"sizeGb": 1.23}],- "customNodes": [],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],"vramGb": 24,"license": "Apache-2.0 (Wan 2.2 Fun VACE, lightx2v, Depth Anything 3 mono-large)","validated": true,- "notes": "Fuobe Evolution (build plan O13) on the GPU: video-segment-resample (<=81 frames @16 fps + first frame) -> qwen-image-edit-2511 takes the first frame toward the creative direction (images 2-3 = references) -> this graph -> video-concat-N -> the clip's sound. Unlike video-restyle-wan22-fun-vace the sampler starts from the segment itself: reference latent + VAE-encoded frames (LatentConcat on t, the shape WanVaceToVideo makes), noised to denoise (low 0.45, medium 0.65, high 0.85) the way KSampler does it: a schedule of floor(steps / denoise) steps of which the last `steps` run (ComfyMathExpression), the high-noise expert for the first half. Control: Depth Anything 3 depth on every frame (no kept frame, no masks); the direction frame is the VACE reference. frames must be 4n+1 and equal the segment's frame count (the source latent and the VACE latent must line up). Same weights as the restyle graph."+ "notes": "Fuobe Evolution (build plan O13) on the GPU: video-segment-resample (<=81 frames @16 fps + first frame) -> qwen-image-edit-2511 takes the first frame toward the creative direction (images 2-3 = references) -> this graph -> video-concat-N -> the clip's sound. Any clip loads: VHS_LoadVideo resamples it to fps (16), keeps at most `frames` frames and cuts them to 4n+1 (Wan format), and every length in the graph is the loaded count, so a short or 30 fps clip is neither a shape error nor slow motion (Edit video sends whole clips). Unlike video-restyle-wan22-fun-vace the sampler starts from the segment itself: reference latent + VAE-encoded frames (LatentConcat on t, the shape WanVaceToVideo makes), noised to denoise = the noise level it starts from (flow matching: (1 - denoise) x clip + denoise x noise; low 0.45, medium 0.65, high 0.85). The simple scheduler with shift s reaches sigma = denoise N - steps steps into a schedule of N = round(steps x (s - (s - 1) x denoise) / denoise) steps, and the last `steps` run (Lightx2v 4-step), so the run starts within a few hundredths of any denoise from 0.02 to 1 (KSampler's floor(steps / denoise) could only make 1, 0.8, 0.67, 0.57 or 0.5 with 4 steps). Wan 2.2's high-noise expert takes only the steps at or above its switch point (sigma 0.875; ComfySwitchNode gives the first sampler the low-noise expert when the run starts below it, as all three intensities do). Control: Depth Anything 3 depth on every frame (no kept frame, no masks); the direction frame is the VACE reference. Same weights as the restyle graph."},{"id": "mixed-media-zimage-frames",diff --git a/workflows/comfyui/video-evolution-wan22-fun-vace.json b/workflows/comfyui/video-evolution-wan22-fun-vace.jsonindex 1844c83e..b904ec56 100644--- a/workflows/comfyui/video-evolution-wan22-fun-vace.json+++ b/workflows/comfyui/video-evolution-wan22-fun-vace.json@@ -1,30 +1,28 @@{"1": {- "class_type": "LoadVideo",+ "class_type": "VHS_LoadVideo","inputs": {- "file": "segment.mp4"- },- "_meta": {- "title": "source segment (<=81 frames @16 fps)"- }- },- "2": {- "class_type": "GetVideoComponents",- "inputs": {- "video": [- "1",+ "video": "segment.mp4",+ "force_rate": 16,+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": [+ "30",0- ]+ ],+ "skip_first_frames": 0,+ "select_every_nth": 1,+ "format": "Wan"},"_meta": {- "title": "GetVideoComponents"+ "title": "the clip resampled to 16 fps, at most `frames` frames, cut to 4n+1 (VHS Wan format)"}},"3": {"class_type": "ImageScale","inputs": {"image": [- "2",+ "1",0],"upscale_method": "lanczos",@@ -185,13 +183,13 @@"width": 832,"height": 480,"length": [- "30",- 0+ "1",+ 1],"batch_size": 1,"strength": 1,"control_video": [- "32",+ "9",0],"reference_image": [@@ -258,7 +256,10 @@"18",0],- "shift": 5+ "shift": [+ "50",+ 0+ ]},"_meta": {"title": "ModelSamplingSD3"@@ -271,7 +272,10 @@"19",0],- "shift": 5+ "shift": [+ "50",+ 0+ ]},"_meta": {"title": "ModelSamplingSD3"@@ -281,7 +285,7 @@"class_type": "KSamplerAdvanced","inputs": {"model": [- "20",+ "52",0],"add_noise": "enable",@@ -399,8 +403,8 @@],"fps": 16,"audio": [- "2",- 1+ "1",+ 2],"bit_depth": "auto","color_space": "sRGB",@@ -432,48 +436,14 @@"value": 81},"_meta": {- "title": "frames (4n+1, <= source frames)"- }- },- "32": {- "class_type": "ImageFromBatch",- "inputs": {- "image": [- "9",- 0- ],- "batch_index": 0,- "length": [- "30",- 0- ]- },- "_meta": {- "title": "depth control for every frame"- }- },- "41": {- "class_type": "ImageFromBatch",- "inputs": {- "image": [- "3",- 0- ],- "batch_index": 0,- "length": [- "30",- 0- ]- },- "_meta": {- "title": "source frames (frames)"+ "title": "frames asked for (4n+1): the loader's cap; the graph runs as many as the clip has"}},"42": {"class_type": "VAEEncode","inputs": {"pixels": [- "41",+ "3",0],"vae": [@@ -524,7 +494,7 @@"value": 0.65},"_meta": {- "title": "denoise (change intensity: low 0.45, medium 0.65, high 0.85)"+ "title": "denoise = the noise level the segment starts from (change intensity: low 0.45, medium 0.65, high 0.85)"}},"46": {@@ -539,7 +509,7 @@"47": {"class_type": "ComfyMathExpression","inputs": {- "expression": "max(a, floor(a / max(b, 0.05)))",+ "expression": "max(a, round(a * (c - (c - 1) * min(b, 1)) / max(b, 0.02)))","values.a": ["46",0@@ -547,10 +517,14 @@"values.b": ["45",0+ ],+ "values.c": [+ "50",+ 0]},"_meta": {- "title": "schedule length = floor(steps / denoise)"+ "title": "schedule length N: the simple scheduler's sigma is the denoise `steps` steps before its end (shift c)"}},"48": {@@ -567,13 +541,72 @@]},"_meta": {- "title": "first step run"+ "title": "first step run (N - steps)"}},"49": {"class_type": "ComfyMathExpression","inputs": {- "expression": "b - a + max(1, floor(a / 2))",+ "expression": "b - a + max(1, c)",+ "values.a": [+ "46",+ 0+ ],+ "values.b": [+ "47",+ 1+ ],+ "values.c": [+ "53",+ 1+ ]+ },+ "_meta": {+ "title": "first step of the low-noise expert"+ }+ },+ "50": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 5+ },+ "_meta": {+ "title": "shift (ModelSamplingSD3, both experts)"+ }+ },+ "51": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0.875+ },+ "_meta": {+ "title": "Wan 2.2 A14B's expert switch point (sigma 0.875: the high-noise expert at or above it)"+ }+ },+ "52": {+ "class_type": "ComfySwitchNode",+ "inputs": {+ "switch": [+ "53",+ 2+ ],+ "on_false": [+ "21",+ 0+ ],+ "on_true": [+ "20",+ 0+ ]+ },+ "_meta": {+ "title": "the first sampler's expert: high-noise only when the run starts at or above the switch point"+ }+ },+ "53": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "min(a - 1, max(0, floor(b * (1 - d / (c - (c - 1) * d))) - (b - a) + 1))","values.a": ["46",0@@ -581,10 +614,18 @@"values.b": ["47",1+ ],+ "values.c": [+ "50",+ 0+ ],+ "values.d": [+ "51",+ 0]},"_meta": {- "title": "high-noise expert hands over to the low-noise one"+ "title": "steps at or above the switch point (the high-noise expert's; at least one step is left to the low-noise one)"}}}