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
Docs: round-4 ComfyUI workflows in the library guide and scripts/comfy README; research corrections
Claude81ac890da363
diff --git a/docs/research/comfyui-oss-4.json b/docs/research/comfyui-oss-4.jsonindex fafac6ec..da853a4a 100644--- a/docs/research/comfyui-oss-4.json+++ b/docs/research/comfyui-oss-4.json@@ -6568,7 +6568,7 @@"result": "FAILS in core v0.41: 'Video chunk 1 could not be encoded compatibly: extradata ... color space' (ConcatenateVideo cannot normalise clips from other encoders)"}],- "notes": "width/height/fps = the clip's (from its header). Works for clips Fuobe's open engine made (CreateVideo/SaveVideo, sRGB-tagged H.264). For clips from cloud models or uploads, fall back to still-to-clip + the existing video-concat-sound1-2 (decodes and re-encodes, holds every frame in RAM). The ad's sound is padded with card-length silence (AudioConcat) and passed as complete_audio. Silent clips: drop node 2 and use node 12 alone."+ "notes": "width/height/fps = the clip's (from its header). Works for clips Fuobe's open engine made (CreateVideo/SaveVideo, sRGB-tagged H.264). For clips from cloud models or uploads, fall back to still-to-clip + the existing video-concat-sound1-2 (decodes and re-encodes, holds every frame in RAM). The ad's sound is padded with card-length silence (AudioConcat) and passed as complete_audio. Silent clips: drop node 2 and use node 12 alone. Correction (comfy-graphs-4): drop nodes 2, 12 and 13 and node 14's complete_audio instead (no sound track); node 12 alone as complete_audio gives a sound track only the card's length (checked on CPU)."},{"id": "scene-mesh-moge",@@ -7253,7 +7253,7 @@"validated": true,"ranOnCpu": false,"cpuRuns": [],- "notes": "Added by the round-4 critic. The official template 3d_triposplat_image_to_gaussian_splat (2026-06-02), exported to API format, with the UI-only live-preview patch removed and an H.264 75-frame orbit (RenderSplat + CreateCameraInfo orbit yaw 35, pitch 30, distance 2.5). Core nodes only (no pack, no worker). Subject only: BiRefNet removes the background first (cutout=false uses the image's own alpha). Output is an .spz splat (ply / ksplat selectable). RenderSplat also takes a CreateCameraInfo look_at camera, so a chosen browser view can be rendered server-side. 3.97 GB of weights.",+ "notes": "Added by the round-4 critic. The official template 3d_triposplat_image_to_gaussian_splat (2026-06-02), exported to API format, with the UI-only live-preview patch removed and an H.264 75-frame orbit (RenderSplat + CreateCameraInfo orbit yaw 35, pitch 30, distance 2.5). Core nodes only (no pack, no worker). Subject only: BiRefNet removes the background first (cutout=false uses the image's own alpha). Output is an .spz splat (ply / ksplat selectable). RenderSplat also takes a CreateCameraInfo look_at camera, so a chosen browser view can be rendered server-side. 3.78 GB of weights.","addedBy": "round-4 critic (2026-10-22)"},{diff --git a/docs/research/comfyui-oss-4.md b/docs/research/comfyui-oss-4.mdindex 86f56cff..42479570 100644--- a/docs/research/comfyui-oss-4.md+++ b/docs/research/comfyui-oss-4.md@@ -284,7 +284,7 @@ StartLoop(simple, N, initial = head) → AudioConcat(current, repeat) → EndLoo* **Real run** on a ComfyUI-encoded 2 s clip + a 2 s card: 4.000 s and 100 frames. The ad's 50 frames decode **bit-identical** to the source (stream copy). silencedetect finds silence from exactly 2.00 s.* **Limit found: it fails for clips from other encoders.** An ffmpeg/libx264 clip, both untagged and bt709-tagged, failed in core v0.41 with "Video chunk 1 could not be encoded compatibly: extradata … color space". `ConcatenateVideo` cannot normalise foreign H.264 parameter sets.* So: use this graph for clips Fuobe's open engine made (all are ComfyUI-encoded, sRGB-tagged H.264). For cloud clips and uploads, fall back to `still-to-clip` + the existing `video-concat-sound1-2`, which decodes everything and keeps clip 1's sound.- * Silent ads: drop node 2.+ * Silent ads: drop node 2. _Correction (comfy-graphs-4): drop nodes 2, 12 and 13 and node 14's `complete_audio`; that output has no sound track. Dropping only node 2 leaves node 13 unlinked, and linking node 12 alone gives a sound track only as long as the card (checked on CPU)._---@@ -321,7 +321,7 @@ No round-4 file had an open graph for **Cinema Studio's "Create 3D scene"** (STA| Workflow id (new) | What it does | Nodes | Weights (licence) | `/prompt` | Ran on CPU ||---|---|---|---|---|---|| `scene-mesh-moge` | photo → textured GLB of the **whole scene** + depth PNG | core `LoadMoGeModel`, `MoGeInference`, `MoGePointMapToMesh`, `SaveGLB`, `MoGeRender` | MoGe 2 ViT-L 0.66 GB (MIT); MoGe 3 ViT-L 0.74 GB / ViT-G 2.50 GB optional | yes | **yes** |-| `image-to-splat-triposplat` | photo → Gaussian splat of the **subject** (`.spz`) + 3 s orbit MP4 | core `TripoSplatPreprocessImage`, `TripoSplatConditioning`, `KSampler`, `VAEDecodeTripoSplat`, `SplatToFile3D`, `RenderSplat`, `CreateCameraInfo`, BiRefNet `RemoveBackground` | 3.97 GB: TripoSplat (MIT), DINOv3 ViT-H (DINOv3 License: royalty-free, commercial use allowed, "Built with DINOv3" notice), FLUX.2 VAE (Apache-2.0), BiRefNet (MIT) | yes | no |+| `image-to-splat-triposplat` | photo → Gaussian splat of the **subject** (`.spz`) + 3 s orbit MP4 | core `TripoSplatPreprocessImage`, `TripoSplatConditioning`, `KSampler`, `VAEDecodeTripoSplat`, `SplatToFile3D`, `RenderSplat`, `CreateCameraInfo`, BiRefNet `RemoveBackground` | 3.78 GB: TripoSplat (MIT), DINOv3 ViT-H (DINOv3 License: royalty-free, commercial use allowed, "Built with DINOv3" notice), FLUX.2 VAE (Apache-2.0), BiRefNet (MIT) | yes | no || `reference-brief-gemma4` | reference clip (frames at 1 fps + its sound) → JSON style brief | `VHS_LoadVideo` (24 fps, ≤ 720 frames, 384 px wide) → core `TextGenerate` with `video` and `audio` → `SaveText` | Gemma 4 E4B fp8 9.06 GB, already in the library (Apache-2.0) | yes | no |**`scene-mesh-moge`** comes from the official template `3d_moge_perspective_to_mesh` (2026-05-15), exported with `scripts/comfy/export-templates.mjs`; the normal-map previews were dropped and a depth PNG added.@@ -392,7 +392,7 @@ This is not built or timed. RIFE runs once per in-between frame, so m 15 costs a* the `-audio.mov` of VHS ProRes* **Licence follow-up.** Mark `wan21-vace-14b-ref2v` as non-commercial (CausVid LoRA), or switch it to the lightx2v T2V LoRA as done here.* **For the §i additions (critic):**- * New `KNOWN_MODELS`: `moge_2_vitl_normal_fp16`, `moge_3_vitl_fp16` and `moge_3_vitg_fp16` (folder `geometry_estimation`); `triposplat_fp16` (`diffusion_models`); `triposplat_vae_decoder_fp16` and `flux2-vae` (`vae`); `dino_v3_vit_h` (`clip_vision`); `birefnet` (`background_removal`).+ * New `KNOWN_MODELS`: `moge_2_vitl_normal_fp16`, `moge_3_vitl_fp16` and `moge_3_vitg_fp16` (folder `geometry_estimation`); `triposplat_fp16` (`diffusion_models`); `triposplat_vae_decoder_fp16` (`vae`); `dino_v3_vit_h` (`clip_vision`). _Correction (comfy-graphs-4): `flux2-vae` and `birefnet` were already library entries; VAST-AI/TripoSplat's `flux2-vae.safetensors` is byte-identical to Comfy-Org/flux2-dev's (same sha256 etag)._* New binding keys: `resolutionLevel`, `fovX`, `decimation`, `cutout`, `numGaussians`, `splatFormat`, `orbitFrames`, `frameCap`, `skipFrames`.* New output roles: `scene` (GLB), `splat` (.spz), `turntable`, `brief`.* Attribution: TripoSplat's DINOv3 encoder needs a "Built with DINOv3" notice in the app's about or licences page.diff --git a/docs/research/comfyui-workflow-library.md b/docs/research/comfyui-workflow-library.mdindex 5ff5db0b..64b1bec4 100644--- a/docs/research/comfyui-workflow-library.md+++ b/docs/research/comfyui-workflow-library.md@@ -10,6 +10,7 @@ _Generated 2026-10-16 by the `scripts/comfy` pipeline. Machine-readable source o* Everything except 5 workflows runs on **core ComfyUI nodes only** — in 2026 core ComfyUI natively covers InfiniteTalk, SeedVR2, BiRefNet, RIFE/FILM, Wan Animate 2, LTX-2.x, so custom packs are only needed for: ReActor face swap, RMBG, MMAudio, the WanVideoWrapper InfiniteTalk variant, and the RIFE-VFI variant (plus VHS/KJNodes helpers).* 86 distinct model files, **740 GB** if you download everything. A sensible starter set (Z-Image Turbo, Qwen-Image-Edit 2509, Wan 2.2 5B, Wan 2.2 14B I2V lightx2v, BiRefNet, RealESRGAN, RIFE, ACE-Step) is ≈ 112 GB.* **2026-10-16 update: +20 workflows** from [`comfyui-oss-2.md`](comfyui-oss-2.md) (TTS / dialogue / voice change, video extend / reframe / relight, draw-to-video, multi-shot concat, storyboard, video alpha + depth, palette lock): **all 20 validated** on the same ComfyUI commit with three more packs. The manifest now has 73 entries (incl. the 2 self-test graphs), **73/73 validated**. Details, new binding keys and new capability values: [section 10](#10-comfyui-oss-2-additions-2026-10-16).+* **2026-10-22 update (round 4): +17 workflows** from [`comfyui-oss-4.md`](comfyui-oss-4.md) (OCR lines for Layers, object removal / swap / insert on Wan 2.1 VACE and VOID, Ken Burns, audio loop and join, pro codecs, SDR to HDR, EXR, still to clip, logo end card, whole-scene mesh, subject splat, reference-video brief), all hand-built and **17/17 validated**; the eight model-free ones also ran for real on CPU. With round 3's 42 the manifest has **132 entries, 132/132 validated**. `wan21-vace-14b-ref2v` no longer uses the non-commercial CausVid LoRA. Details: [section 11](#11-comfyui-oss-4-additions-2026-10-22).* Validation used zero-byte placeholder model files and tiny uploaded fixtures; **no model was executed** (CPU-only box, no weights). Validation proves graph structure, node/input names, types, ranges, combo values and file references — not output quality.## 2. The library@@ -396,3 +397,119 @@ New optional manifest field: **`license`** (string) on these 20 entries.| LTX-2.x extend / outpaint IC-LoRA | Revenue-gated licence and extra packs (LTXVideo, VHS, ComfyMath). || Core `TrainLoraNode` character LoRA | Does not fit the manifest model: `SaveLoRA` reports no UI output (nothing to fetch from `/history`), the result is a `.safetensors` (not image/video/audio), the dataset must be a folder in ComfyUI's `input/` (not an upload), and a run holds the GPU for 20-90 min. Use the ai-toolkit worker from comfyui-oss-2 §8 instead. || HoloCine multi-shot | CC-BY-NC-SA, no ComfyUI node. |++## 11. comfyui-oss-4 additions (2026-10-22)++Seventeen workflows from [`comfyui-oss-4.md`](comfyui-oss-4.md) / [`comfyui-oss-4.json`](comfyui-oss-4.json): the 14 researched graphs and the critic's 3 (§i). Round 3 (42 hand-built workflows, 73 → 115) is documented in `scripts/comfy/README.md` and [`comfyui-oss-3.md`](comfyui-oss-3.md); this section takes the manifest from 115 to **132 entries**. All 17 are **hand-built** (`scripts/comfy/hand-built/<id>.json`, the researcher's validated API graphs with the changes listed below), declared in the "comfyui-oss-4" section of `library.spec.mjs`, built and validated by the normal pipeline.++**Validation:** the same ComfyUI `fc04da91` (v0.41.0-7, CPU, 14 packs), shared with other agents, so always with `--shared`. **17/17 accepted** (HTTP 200, `prompt_id`, no `node_errors`) with zero-byte placeholder weights and the fixtures; the switches `skipPass2` and `cutout` were fed their non-default value. A sample of 10 older workflows (FLUX.1 [dev], Wan 2.2 I2V lightx2v, RIFE, a sound-keeping join, Qwen3.5 / Gemma 4 `TextGenerate`, Fun VACE restyle, TRELLIS.2, FLUX.2 [klein] style reference, caption burn-in) re-validated unchanged: **132/132 validated**. No new node pack and no isolated worker: core nodes, KJNodes' `GrowMaskWithBlur` and VHS's `VHS_LoadAudioUpload` / `VHS_VideoCombine` / `VHS_LoadVideo`.++**Real CPU runs (no weights needed):** the eight model-free graphs ran on tiny inputs, in two sessions, every output checked with ffprobe (plus framemd5, silencedetect or numpy where it matters). Timings are in each entry's `notes`. The model graphs (OCR, VACE, VOID, MoGe, TripoSplat, Gemma 4 brief) are `/prompt`-validated only here; the research ran OCR and MoGe on CPU with real weights.++### 11.1 Workflows++| id | capability (round-4 op) | what it does | bindings | outputs | models GB (new) | VRAM | ran here |+|---|---|---|---|---|---|---|---|+| `ocr-lines-qwen35` | ocr | text lines + boxes for Layers (OvisOCR3 0.8B through core `TextGenerate`) | image, maxSize, checkpoint, instruction, maxTokens | 5: text `lines` (.json), 8: text `frame` | 1.71 (1.71) | 3 | research only (161–194 s per poster) |+| `video-inpaint-wan-vace` | remove-object | SAM 3.1 tracks `maskPrompt`, Wan 2.1 VACE 14B + lightx2v regenerates it, pasted into the original frames | video, startFrame, frames, width, height, maskPrompt, maskGrow, prompt, negativePrompt, checkpoint, loraStrength, shift, seed, steps, cfg | 38: video | 44.05 (0) | 24 | window + sound part only |+| `video-inpaint-wan-vace-painted` | remove-object | same, the object painted on the window's first frame | as above with `mask` instead of `maskPrompt` | 38: video | 44.05 (0) | 24 | no |+| `video-erase-void` | remove-object | Netflix VOID: removes the object and what it causes (shadows, reflections), 2 passes | video, startFrame, frames, width, height, maskPrompt, maskGrow, prompt, negativePrompt, cfg, steps, seed, skipPass2 | 52: video | 34.27 (22.73) | 40 (unverified) | no |+| `video-swap-wan-vace` | video-swap | the tracked object replaced by a reference `image` | the inpaint keys + image | 38: video | 44.05 (0) | 24 | no |+| `video-insert-wan-vace` | video-insert | a reference `image` placed in a painted region held for the window | the painted keys + image | 38: video | 42.30 (0) | 24 | no |+| `kenburns-still` | still-motion | pan + zoom over a still, core loops, chunk-encoded | image, supersample, width, height, duration, fps, zoomStart, zoomEnd, panStartX, panStartY, panEndX, panEndY, easeInOut, chunkFrames | 32: video | 0 | 0 (CPU) | yes |+| `audio-loop-crossfade` | audio-loop | a bed of any length: loop with equal-power seams, fade-out | audio, fadeCurve, crossfade, duration, headroomDb | 29: audio (FLAC) | 0 | 0 (CPU) | yes |+| `audio-join-crossfade` | audio-join | two clips overlapped by `crossfade` seconds | audio, audio2, fadeCurve, crossfade | 17: audio (FLAC) | 0 | 0 (CPU) | yes |+| `video-export-pro` | export-video | ProRes 422 HQ / 4444, H.265 10-bit, FFV1, H.264 (VHS) | video, format, profile | 3: video | 0 | 0 (CPU) | yes, all five formats |+| `video-sdr-to-hdr` | sdr-to-hdr | core `ImageSDRToHDR` → BT.2020 HLG 10-bit H.264 | video, peakNits | 5: video | 0 | 0 (CPU) | yes |+| `video-export-exr` | export-video | half-float scene-linear EXR per frame | video | 3: image `frames` | 0 | 0 (CPU) | yes |+| `still-to-clip` | still-motion | a still held N s with a silent stereo track | image, width, height, duration, fps | 9: video | 0 | 0 (CPU) | yes |+| `video-append-endcard` | concat | ad + end card; the ad's picture stream-copied and its sound kept | video, image, width, height, fps, duration | 15: video | 0 | 0 (CPU) | yes |+| `scene-mesh-moge` | scene-3d | textured GLB of the whole scene + a depth PNG (MoGe 2) | image, checkpoint, resolutionLevel, fovX, decimation | 9: model3d `scene`, 11: image `depth` | 0.66 (0.66) | 4 | research only (42 s) |+| `image-to-splat-triposplat` | splat | Gaussian splat of the subject (`.spz`) + a 3 s orbit | image, cutout, numGaussians, steps, cfg, seed, splatFormat, orbitFrames | 51: model3d `splat`, 42: video `turntable` | 3.78 (3.00) | 8 (unverified) | no |+| `reference-brief-gemma4` | write | a reference clip's frames and sound → JSON style brief (Gemma 4 E4B) | video, frames, startFrame, frameWidth, checkpoint, instruction, seed, maxTokens | 4: text `brief` | 9.06 (0) | 12 | no |++Every entry also binds `filenamePrefix`. "new" = files no older workflow uses: **28.1 GB** in all (VOID 22.73, TripoSplat 3.00, OvisOCR3 1.71, MoGe 2 0.66). The VACE graphs reuse the library's Wan 2.1 VACE 14B, SAM 3.1, umT5, Wan VAE and lightx2v files; VOID's `t5xxl_fp16` and TripoSplat's `flux2-vae` are byte-identical to the FLUX files already listed (same sha256), so their download URLs differ but one file serves both.++**Licences.** Apache-2.0 for OvisOCR3 / Qwen3.5, Wan 2.1 VACE and the lightx2v LoRA, Gemma 4; MIT for MoGe and TripoSplat. Three need a notice in the app:+* **VOID** weights are Apache-2.0 but fine-tuned from CogVideoX-Fun-V1.5-5b-InP, whose transformer is under the **CogVideoX License**: commercial use only after registering for its basic commercial licence, and at most 1 million service visits a month without a further licence.+* **TripoSplat** uses the DINOv3 ViT-H encoder under the **DINOv3 License** (royalty-free, commercial use allowed, trade-control limits): show "Built with DINOv3".+* **KJNodes** (`GrowMaskWithBlur` in the four VACE graphs) and VideoHelperSuite are GPL-3.0 code; SAM 3.1 is under Meta's SAM License.++### 11.2 Capability values++The 17 use the round-4 operations of the shared contract (`src/lib/catalog/types.ts`, owned by the catalog-4 package): `ocr`, `remove-object`, `video-swap`, `video-insert`, `still-motion`, `audio-loop`, `audio-join`, `export-video`, `sdr-to-hdr`, `scene-3d`, `splat`. Two reuse older ones: `video-append-endcard` is a `concat`, and `reference-brief-gemma4` a `write`. `export-video` has two graphs: `video-export-pro` for every codec and `video-export-exr` for `params.format` `exr`. `still-motion` has two: `kenburns-still` for a camera move and `still-to-clip` for a held still. FPS boost stays on the existing `interpolate-rife` (`interpolate`); the research's target-fps table (multiplier m, keep every n-th frame) is not built.++### 11.3 New binding keys++Keys marked * are filled by the provider from the canonical request (`params.*`); the rest are sliders or controls (`params.extra[key]`). All are in `BINDING_KEYS` (`build-library.mjs`).++| key | type | meaning | default |+|---|---|---|---|+| `maskPrompt`* | string | SAM 3.1 text prompt: what to remove / replace | — |+| `maskGrow` | int px | the tracked mask grows by this much (edges, contact shadows) | 16 (VOID 8) |+| `skipPass2` | bool | VOID pass 1 only (half the time) | false |+| `zoomStart`*, `zoomEnd`* | float | Ken Burns zoom (`params.zoomFrom` / `zoomTo`), 1 = the widest crop in the output's shape | 1, 1.25 |+| `panStartX`*, `panStartY`*, `panEndX`*, `panEndY`* | float 0–1 | the crop centre (`params.panFrom` / `panTo` {x, y}), clamped inside the still | 0.5, 0.5, 0.6, 0.45 |+| `easeInOut`* | 0 / 1 | `params.easing`: 1 = ease-in-out, 0 = linear | 1 |+| `supersample`, `chunkFrames` | float, int | the still upscaled once before cropping; frames per encoded chunk | 2, 30 |+| `crossfade`* | float s | seconds at each seam (`params.crossfade`) | 1 |+| `fadeCurve`* | upload | the crossfade curve WAV the provider writes (11.5) | — |+| `headroomDb` | int dB | taken off before the loop's seams are summed | −3 |+| `format`*, `profile`* | string | VHS format and ProRes profile, from `params.format` | `video/ProRes`, `hq` |+| `peakNits` | float | SDR to HDR target peak white (0 = the calibrated curve) | 650 |+| `resolutionLevel`, `fovX`, `decimation` | int, float, int | MoGe detail 0–9; horizontal field of view in degrees (0 = estimate); mesh decimation | 9, 0, 1 |+| `cutout`, `numGaussians`, `splatFormat`, `orbitFrames` | bool, int, string, int | TripoSplat: BiRefNet cut-out (false = the image's alpha); Gaussians (≤ 1,048,576); `spz` / `ply` / `ksplat`; orbit length | true, 262144, `spz`, 75 |+| `frameWidth` | int px | the brief's frame width (a canonical `width` would be resized by the provider) | 384 |++Reused keys with a workflow-specific meaning: in the VACE / VOID graphs `startFrame` and `frames` count **source** frames (the graphs run at the clip's own fps), `width` × `height` is the work size and `prompt` describes the scene without the object (remove) or the result (swap / insert); `image` is the reference (swap / insert), the end card, the still or the subject; `mask` is a first-frame PNG read from its **red** channel, white = erase / the region; in the brief `frames` / `startFrame` count frames at the fixed 24 fps; `checkpoint` picks OvisOCR3 or a Qwen3.5 fallback, VACE 14B or 1.3B, MoGe 2 or 3; `instruction` defaults to the graph's own prompt (`defaults.instruction`).++The research named some keys differently; the library uses canonical keys instead: the brief's `frameCap` / `skipFrames` / `width` are `frames` / `startFrame` / `frameWidth`, and the audio graphs' curve upload is `fadeCurve` rather than `audio2` / `audio3` (which the provider fills with user audio). New manifest output roles: `lines`, `frame`, `frames`, `scene`, `depth`, `splat`, `brief` (typed in `src/lib/comfy.ts`; `turntable` already existed).++### 11.4 Models++| file | folder | GB | new? | used by |+|---|---|---|---|---|+| [`ovisocr3_0.8b_bf16.safetensors`](https://huggingface.co/ATH-MaaS/OvisOCR3/resolve/main/model.safetensors) (upstream `model.safetensors`, save it under this name) | text_encoders | 1.71 | new | ocr-lines-qwen35 |+| `qwen3.5_0.8b_bf16` / `qwen3.5_2b_bf16` / `qwen3.5_4b_bf16` (optional `checkpoint`) | text_encoders | 1.75 / 4.55 / 9.32 | optional (4B shared) | ocr-lines-qwen35 |+| `wan2.1_vace_14B_fp16`, `umt5_xxl_fp8_e4m3fn_scaled`, `wan_2.1_vae`, `lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16`, `sam3.1_multiplex_fp16` | … | 34.68 / 6.74 / 0.25 / 0.63 / 1.75 | shared | the four VACE graphs (SAM not in insert) |+| `wan2.1_vace_1.3B_fp16` (optional `checkpoint`, 8 GB cards) | diffusion_models | 4.31 | optional | VACE graphs |+| [`void_pass1` / `void_pass2`](https://huggingface.co/Comfy-Org/void-model) | diffusion_models | 2 × 11.14 | new | video-erase-void |+| `cogvideox_vae`, `raft_large_C_T_SKHT_V2-ff5fadd5` | vae / optical_flow | 0.43 / 0.02 | new | video-erase-void |+| `t5xxl_fp16` | text_encoders | 9.79 | shared (FLUX) | video-erase-void |+| [`moge_2_vitl_normal_fp16`](https://huggingface.co/Comfy-Org/MoGe) (`moge_3_vitl_fp16` 0.74, `moge_3_vitg_fp16` 2.50 optional) | geometry_estimation | 0.66 | new | scene-mesh-moge |+| [`triposplat_fp16`, `triposplat_vae_decoder_fp16`, `dino_v3_vit_h`](https://huggingface.co/VAST-AI/TripoSplat) | diffusion_models / vae / clip_vision | 0.74 / 0.58 / 1.68 | new | image-to-splat-triposplat |+| `flux2-vae`, `birefnet` | vae / background_removal | 0.34 / 0.44 | shared | image-to-splat-triposplat |+| `gemma4_e4b_it_fp8_scaled` | text_encoders | 9.06 | shared | reference-brief-gemma4 |++`build-library.mjs` knows two more loaders: `OpticalFlowLoader` (`optical_flow`) and `LoadMoGeModel` (`geometry_estimation`).++### 11.5 Quirks the app must handle++* **OCR output.** Role `lines` is a JSON array in reading order, `[{"bbox":[x0,y0,x1,y1],"text":…}]`, corners as integers **relative 0–1000** (checked against rendered ground truth in the research). Strip Markdown code fences, accept `bbox`/`text` and `bbox_2d`/`text_content` (the Qwen3.5 fallbacks answer that way), divide by 1000 and fill `OutputFile.meta.lines [{text, bbox:[x, y, w, h]}]` (normalised) and `OutputFile.text` (the lines joined by newlines). Role `frame` is `{"width","height","coords":"relative-1000"}`, the size the model saw. Greedy decoding: no seed.+* **VACE / VOID windows.** One window per job: `frames` (VACE 4n+1 ≤ 81; VOID rounds down to 8n+5, ≤ 197) from `startFrame`, both in source frames, computed with the fps of the clip's header (the provider's 16 fps default is wrong here). Longer clips: one job per window, joined with `video-concat-N` (seams untested). Give `width` × `height` the clip's shape: the window is centre-cropped to it and scaled back uncropped. The VACE result is pasted into the **original** frames through a 6 px soft mask, so nothing outside the mask changes; VOID re-renders the whole frame at its work size (672×384 by default). The window's sound is kept and a silent clip works (both checked on CPU with the VACE graph's own window nodes).+* **Painted masks** (`-painted`, insert): a PNG of the window's first frame in the clip's shape, read from the red channel (white = erase / the region). For a later window, paint on (or track to) that window's first frame. Insert holds the region for every frame, so it suits a static or slow camera.+* **Crossfade curve.** Core has no gain-ramp node, so the provider writes `fadeCurve`: a stereo 16-bit WAV exactly `crossfade` seconds long at 8 kHz, left = sin(π/2·t) (fade-in), right = cos(π/2·t) (fade-out), t = 0…1. 8 kHz makes `AudioMerge` upsample the curve, never resample the music. Equal power bumps a pure tone by ~3 dB at the seam (+2.1 dB RMS over the seam measured here); a linear curve avoids it for near-identical material. The loop needs a clip longer than 2 × `crossfade`; each loop pass stays cached (memory O(repeats² × clip)), so prefer clips ≥ 60 s. More than two clips: fold `audio-join-crossfade`.+* **Ken Burns.** ≤ 10 s per job (RAM grows by about one output frame per frame until ComfyUI's RAM-pressure cache evicts chunks); split longer scenes. Crops are whole pixels: keep `supersample` 2 and stills larger than the output.+* **Exports.** `params.format` → `video-export-pro` `format` + `profile`: `prores_422_hq` = `video/ProRes` + `hq`, `prores_4444` = + `4444`, `h265_10bit` = `video/h265-mp4`, `ffv1` = `video/ffv1-mkv`, `h264` = `video/h264-mp4`; `exr` → `video-export-exr`. VHS lists only `<prefix>_00001-audio.<ext>` (under `gifs`) when the clip has sound, and leaves a silent copy and a first-frame PNG next to it. The EXR output is one image per frame (role `frames`): zip it. All three decode the whole clip.+* **End card.** Only for clips the open engine made: a clip from another encoder fails in v0.41 with "Video chunk 1 could not be encoded compatibly: extradata … color space" (reproduced here). For those, use `still-to-clip` + `video-concat-sound1-2`. For a silent ad, drop nodes 2, 12 and 13 and node 14's `complete_audio` (`LoadAudio` stops with "No audio stream found in the file"). `width`, `height` and `fps` must be the clip's own.+* **Splat output.** `SaveGLB` writes the splat under its format's extension (`.spz` by default); set `meta.format` from it. `seed` drives the sampler and the decoder.+* **Brief.** `VHS_LoadVideo` forces 24 fps because Gemma 4 keeps every 24th frame (1 fps, ≤ 70 soft tokens each); 720 frames = the first 30 s. Strip fences before parsing. Whether E4B takes 30 s of audio in one call is unverified.++### 11.6 R4-15: CausVid licence fix++`wan21-vace-14b-ref2v` shipped the official template's `Wan21_CausVid_14B_T2V_lora_rank32` at 0.3, which is **CC-BY-NC-4.0** (tianweiy/CausVid). Its spec entry now swaps it (transforms on nodes 115, 108, 110) for the Apache-2.0 `lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16` at 1.0 (clip strength 0) with the round-4 VACE settings: 4 steps, cfg 1, `euler` (was `uni_pc`), shift 5 (was 8). It binds `loraStrength` (0 + steps 20 + cfg 6 = the slow full-quality path) and carries a `license`. Rebuilt and re-validated; the lightx2v + VACE 14B pairing is inferred, not GPU-tested.++### 11.7 Considered but not added++| option | why not |+|---|---|+| Florence-2 `OCR_WITH_REGION` | needs a pack (kijai/ComfyUI-Florence2), weaker on stylised text (inferred) |+| PaddleOCR-VL, DeepSeek-OCR, GOT-OCR 2.0 | custom packs only; document-oriented, 4× larger, or no line detection |+| MiniMax-Remover | CC-BY-NC-4.0 |+| DiffuEraser | relies on ProPainter priors (S-Lab licence, non-commercial, unverified) and SD 1.5 |+| MiniMax H3 Person-Remover / Character-Swap LoRAs | a 40–66 GB base + a 51.5 GB encoder; persons only; need a core change after v0.42 |+| SCAIL-2 Character Replacement | template exported by the research, not built (94 nodes); the recommended next step for whole-person swaps |+| A painted-mask or point-prompted swap | not researched; `video-swap-wan-vace` tracks a text prompt only |+| GIMM-VFI | slower than RIFE, licence unconfirmed ("other") |+| FPS boost to exact targets (`VHS_SelectEveryNthImage` after `FrameInterpolate`) | researched as a table, not built or timed |+| LTX-2.5 SDR-To-HDR / Alpha-Gen IC-LoRAs | revenue-gated LTX licence; a later round |diff --git a/docs/research/higgsfield-delta-4.json b/docs/research/higgsfield-delta-4.jsonindex 35ae88d8..4f5531d2 100644--- a/docs/research/higgsfield-delta-4.json+++ b/docs/research/higgsfield-delta-4.json@@ -598,7 +598,7 @@"priority": "P1","effort": "L","cloudRoute": "Whole scene: fal-ai/marigold-v2 depth ($0.03) -> browser point cloud with WASD -> capture -> fal-ai/qwen-image-edit-2511-multiple-angles or Nano Banana Pro edit with the original + the rough view; a real explorable world: World Labs Marble (marble/v1/worlds:generate, $0.184 draft / $1.264 marble-1.1, separate key, needs a new provider). Subject only: tripo3d/triposplat (removes the background first, per its output schema) or fal-ai/sam-3/3d-objects (objects with camera pose, no background). Video: capture 2-10 camera keyframes -> blackforestlabs/flux-3-max/keyframes-to-video or Seedance 2.5 start/end, draft at 480p first.",- "openRoute": "Whole scene: scene-mesh-moge (core LoadMoGeModel -> MoGeInference -> MoGePointMapToMesh -> SaveGLB, MoGe 2 ViT-L 0.66 GB, MIT; ran on CPU: 768x768 room photo -> textured GLB in 42 s, 556k vertices) -> browser viewer (Fuobe already loads GLB) -> capture -> Qwen-Image-Edit 2511 (+ Multiple-Angles LoRA) re-render. Subject: image-to-splat-triposplat (core TripoSplat nodes + RenderSplat orbit; 3.97 GB; validated). apple/Sharp is research-only.",+ "openRoute": "Whole scene: scene-mesh-moge (core LoadMoGeModel -> MoGeInference -> MoGePointMapToMesh -> SaveGLB, MoGe 2 ViT-L 0.66 GB, MIT; ran on CPU: 768x768 room photo -> textured GLB in 42 s, 556k vertices) -> browser viewer (Fuobe already loads GLB) -> capture -> Qwen-Image-Edit 2511 (+ Multiple-Angles LoRA) re-render. Subject: image-to-splat-triposplat (core TripoSplat nodes + RenderSplat orbit; 3.78 GB; validated). apple/Sharp is research-only.","sources": ["https://assets.higgsfield.ai/tanstack/assets/1a2c0e3d-Bh59qW_F0DwHRugi.js","https://assets.higgsfield.ai/tanstack/assets/1a2c0e3d-s7Pc_VTly7scVxim.js",diff --git a/docs/research/higgsfield-delta-4.md b/docs/research/higgsfield-delta-4.mdindex 180f5532..11aaae3a 100644--- a/docs/research/higgsfield-delta-4.md+++ b/docs/research/higgsfield-delta-4.md@@ -277,7 +277,7 @@ Video mode: record two to ten camera keyframes, render each as a capture, re-ren**Critic corrections (2026-10-22).**- **TripoSplat rebuilds the subject, not the scene.** fal's output schema describes `preprocessed_image` as "The background-removed RGB composite the model actually saw, rendered on a black background". The official ComfyUI template also runs BiRefNet background removal first. Use it for subjects (characters, products), not for "Create 3D scene" on a whole frame.-- **TripoSplat has native ComfyUI core nodes; no worker is needed.** ComfyUI v0.41 ships `TripoSplatPreprocessImage`, `TripoSplatConditioning`, `VAEDecodeTripoSplat` and `TripoSplatSamplingPreview`, plus splat tools (`RenderSplat`, `TransformSplat`, `SplatToFile3D` ply/ksplat/spz, `SaveGaussianSplat`, `CreateCameraInfo`) and the template `3d_triposplat_image_to_gaussian_splat` (2026-06-02). Weights: 3.97 GB in all (TripoSplat MIT; DINOv3 ViT-H under the DINOv3 License, which allows commercial use with a "Built with DINOv3" notice; FLUX.2 VAE Apache-2.0).+- **TripoSplat has native ComfyUI core nodes; no worker is needed.** ComfyUI v0.41 ships `TripoSplatPreprocessImage`, `TripoSplatConditioning`, `VAEDecodeTripoSplat` and `TripoSplatSamplingPreview`, plus splat tools (`RenderSplat`, `TransformSplat`, `SplatToFile3D` ply/ksplat/spz, `SaveGaussianSplat`, `CreateCameraInfo`) and the template `3d_triposplat_image_to_gaussian_splat` (2026-06-02). Weights: 3.78 GB in all (TripoSplat MIT; DINOv3 ViT-H under the DINOv3 License, which allows commercial use with a "Built with DINOv3" notice; FLUX.2 VAE Apache-2.0).- **For the whole scene, use MoGe.** Core `MoGeInference` → `MoGePointMapToMesh` → `SaveGLB` (template `3d_moge_perspective_to_mesh`, 2026-05-15; MoGe 2 ViT-L 0.66 GB, MIT). It ran here on CPU: a 768×768 room photo became a textured GLB of the whole room in 42 s (556k vertices, 1.08M triangles, depth 0.35–6.58 m). See [`comfyui-oss-4.md`](comfyui-oss-4.md) §i.### 4.5 G06 · AI Influencer Studio game-style builderdiff --git a/scripts/comfy/README.md b/scripts/comfy/README.mdindex 36b2044d..456098e7 100644--- a/scripts/comfy/README.md+++ b/scripts/comfy/README.md@@ -130,6 +130,66 @@ node validate-workflows.mjs video-trim # then once on the main server, so ob`validate-workflows.mjs` keeps the subset definitions of classes the current server lacks, so validating on eitherserver never drops the other's classes.+## Round-4 workflows (comfyui-oss-4, 2026-10-22)++17 hand-built entries from `docs/research/comfyui-oss-4.json` (the 14 researched graphs and the critic's 3), in the+"comfyui-oss-4" section of `library.spec.mjs`, all `validated: true` (132/132 in the manifest). No new node pack and no+worker: core nodes plus KJNodes' `GrowMaskWithBlur` and VHS's audio loader / `VHS_VideoCombine` / `VHS_LoadVideo`.+`capability` is the round-4 operation each one serves.++```bash+npm run build -- <the 17 ids> # hand-built: no export needed+node export-templates.mjs video_wan_vace_14B_ref2v && npm run build -- wan21-vace-14b-ref2v+node validate-workflows.mjs <ids> wan21-vace-14b-ref2v --shared+```++| id | capability | what | ran for real here |+|---|---|---|---|+| `ocr-lines-qwen35` | ocr | text lines + boxes (OvisOCR3 0.8B, core `TextGenerate`) | research only (161-194 s per poster on CPU) |+| `video-inpaint-wan-vace` | remove-object | SAM 3.1 tracks `maskPrompt`, Wan 2.1 VACE 14B + lightx2v fills, pasted into the original frames | window + sound sub-path only |+| `video-inpaint-wan-vace-painted` | remove-object | same, the object painted on the first frame (`mask`) | no (GPU) |+| `video-erase-void` | remove-object | Netflix VOID, removes the object's shadows / reflections too (CogVideoX licence) | no (GPU) |+| `video-swap-wan-vace` | video-swap | tracked object replaced by a reference `image` | no (GPU) |+| `video-insert-wan-vace` | video-insert | reference `image` placed in a painted region (`mask`) | no (GPU) |+| `kenburns-still` | still-motion | pan + zoom over a still, core loops, chunk-encoded | yes: 2 s 320x180 25 fps in 7.6-11.2 s |+| `audio-loop-crossfade` | audio-loop | loop a bed to `duration` with equal-power seams | yes: 3 s → 10 s FLAC in 1.1-2.5 s, seams click-free |+| `audio-join-crossfade` | audio-join | two clips, `crossfade` seconds of overlap | yes: 3 s + 2 s → 4.5 s in 0.2-2.1 s |+| `video-export-pro` | export-video | ProRes HQ / 4444, H.265 10-bit, FFV1, H.264 (VHS) | yes: all five formats, ffprobe-checked |+| `video-sdr-to-hdr` | sdr-to-hdr | core `ImageSDRToHDR` → BT.2020 HLG 10-bit H.264 | yes: High 10, arib-std-b67 |+| `video-export-exr` | export-video | half-float scene-linear EXR per frame | yes: 16 frames → 16 `.exr` |+| `still-to-clip` | still-motion | a still held N s with a silent track | yes: 50 frames + AAC silence |+| `video-append-endcard` | concat | ad + end card, ad picture stream-copied, ad sound kept | yes: bit-identical ad frames, silence from 2.00 s; foreign H.264 fails (known limit) |+| `scene-mesh-moge` | scene-3d | whole-scene textured GLB + depth PNG (MoGe 2) | research only (42 s on CPU) |+| `image-to-splat-triposplat` | splat | subject Gaussian splat (`.spz`) + orbit MP4 (TripoSplat) | no |+| `reference-brief-gemma4` | write | reference clip's frames + sound → JSON style brief (Gemma 4 E4B) | no |++- **Changes from the research graphs** (each also in the entry's notes): the painted / insert masks are read from the+ **red channel** (white = erase / the region, Fuobe's mask convention since `flux1-fill-inpaint`), not alpha; Ken Burns+ gained `easeInOut` (1 = the research's ease in-out, 0 = linear) for `params.easing`; both audio graphs name the+ crossfade curve upload `fadeCurve` (the research used `audio2` / `audio3`, which the provider fills with user audio);+ the brief binds `frames` / `startFrame` (canonical keys) and `frameWidth` (a canonical `width` would be resized by the+ provider) plus `seed`; TripoSplat's `seed` drives both the sampler and the decoder; outputs use kind `model3d`.+- **What the provider has to do** (feature packages): write the crossfade curve (a stereo WAV exactly `crossfade` seconds+ long, left = sin(π/2·t), right = cos(π/2·t), 8 kHz) and upload it as `fadeCurve`; parse the OCR JSON (strip fences,+ `bbox`/`text` or `bbox_2d`/`text_content`, boxes relative 0–1000); run VACE / VOID windows of ≤ 81 / ≤ 197 source frames+ (`startFrame`, `frames` counted at the clip's own fps) and join them; map Ken Burns and export params; for a silent ad+ drop nodes 2, 12 and 13 of the end card and node 14's `complete_audio` (`LoadAudio` stops on a clip with no sound),+ and fall back to `still-to-clip` + `video-concat-sound1-2` for clips other encoders made.+- **Build**: `OpticalFlowLoader` (folder `optical_flow`) and `LoadMoGeModel` (`geometry_estimation`) are known loaders;+ `KNOWN_MODELS` has the OvisOCR3, VACE, VOID, MoGe and TripoSplat files and the alternative checkpoints (Qwen3.5 0.8B / 2B,+ VACE 1.3B, MoGe 3). OvisOCR3 (`model.safetensors`) and Qwen3.5 0.8B (`model.safetensors-00001-of-00001.safetensors`) are+ single files upstream: save them under the manifest names. VOID's `t5xxl_fp16` and TripoSplat's `flux2-vae` are+ byte-identical to the library's FLUX files (same sha256). New output roles: `lines`, `frame`, `frames`, `scene`, `depth`, `splat`, `brief` (typed in `src/lib/comfy.ts`).+- **Licence fix (R4-15)**: `wan21-vace-14b-ref2v` shipped the template's CausVid LoRA, which is CC-BY-NC-4.0. Its spec+ entry now swaps it (transforms on nodes 115 / 108 / 110) for the Apache-2.0 `lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64`+ at 1.0 with the round-4 VACE settings (4 steps, cfg 1, euler, shift 5; clip strength 0) and binds `loraStrength`+ (0 + steps 20 + cfg 6 = full quality). Re-validated; the pairing is inferred, not GPU-tested.+- **Real runs** used the fixtures plus tiny generated tones / noise, on the shared CPU server (own prompt ids only; the+ test inputs and outputs were deleted afterwards), in two sessions; every output was checked with ffprobe (and+ framemd5, silencedetect or numpy where it matters). Timings are in each entry's notes. The VACE graphs' window-and-sound+ part (`ImageFromBatch` + `TrimAudioDuration` at the clip's fps → `CreateVideo`, nodes taken from the built graph) ran on+ a clip with sound (the window's 0.84 s kept) and a silent one (no sound track, no error).+## Adding a workflow1. Find the template name in `$COMFYUI_DIR/.venv/lib/python3.*/site-packages/comfyui_workflow_templates_json/templates/index.json`