Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Merge branch 'claude/fuobe-parity-4' into o/n7-1-moss-image

Claude7f32f0e7cb10
diff --cc scripts/comfy/README.md
index d22637f0,49903236..161bd9ce
--- a/scripts/comfy/README.md
+++ b/scripts/comfy/README.md
@@@ -351,30 -351,31 +351,55 @@@ COMFYUI_URL=http://127.0.0.1:<port> COM
scrambled stereo three times as long), so a file with more than 2 channels is split in `mono` and its background is the
music and effects stems added up (the provider rewires node 4 to `AudioMerge` add).
+ ## Fly path (N7-5)
+
+ One hand-built graph films a still along a camera path keyframed in Cinema's 3D scene, on core nodes only
+ (docs/research/new-models-7.md §3.6):
+
+ ```bash
+ npm run build -- wan21-i2v-uni3c-path
+ node validate-workflows.mjs wan21-i2v-uni3c-path --shared
+ ```
+
+ | id | capability | what | validated here |
+ |---|---|---|---|
+ | `wan21-i2v-uni3c-path` | camera-path | `UNETLoader` (Wan 2.1 I2V 14B 720P fp8; `checkpoint` swaps in the 480P fp8 file) → `ModelSamplingSD3` (`shift`) → `ModelPatchLoader` (Uni3C) + `WanUni3CControlnetApply` (`strength`, 0–1) on the browser's render of the path (`video`: `LoadVideo` → `GetVideoComponents`; the node pads or cuts it to the latent's frames and centre-crops it to the size) → umt5 / CLIP vision H / Wan VAE → `WanImageToVideo` (the still as `image`, 81 frames) → `KSampler` (`steps` 30, `cfg` 5, uni_pc; a guess to tune on a GPU) → `VAEDecode` → `CreateVideo` (16 fps) → `SaveVideo` | `/prompt` only (no GPU here); a model-free `LoadVideo` run read the browser's render as 81 frames |
+
+ - **Weights**, pinned in `library.spec.mjs`: Kijai/WanVideo_comfy `Wan21_Uni3C_controlnet_fp16.safetensors` @ `8260d429`
+ (1,997,314,376 B, in `models/model_patches`) and Comfy-Org/Wan-2.1 `wan2.1_i2v_720p_14B_fp8_scaled.safetensors` @
+ `123acf1c` (16,401,356,938 B); optional: Kijai/WanVideo_comfy_fp8_scaled's 480P fp8 file @ `4d02bd37` (16,643,349,018 B).
+ The 480P Q8 GGUF Fuobe pins for InfiniteTalk can't load here: core `UNETLoader` reads no GGUF (that needs city96's
+ ComfyUI-GGUF pack). Loading Kijai's file through core `ModelPatchLoader` is inferred from its header keys, not run.
+ - **The render** comes from the browser (`src/components/cinema/scene-engine.ts` `recordPath`): 81 frames at 16 fps, black
+ where nothing was seen, VP8 in WebM at exact frame times. Its hole mask is made only when asked for (core's Uni3C node
+ has no mask input; WorldCast, N7-9, will ask).
+ - **Licences, as information**: Apache-2.0 (Wan 2.1; Uni3C, whose Kijai repack carries no licence field).
+ - **GPU**: Uni3C's own figures are 46–51 GB with offload; Fuobe's older 24 GB note is unverified.
+
+## MOSS-Image (N7-1)
+
+One hand-built graph on core nodes (MOSS-Image is native in the pinned ComfyUI; docs/research/new-models-7.md §4.6):
+
+```bash
+npm run build -- moss-image-t2i
+node validate-workflows.mjs moss-image-t2i --shared
+```
+
+| id | capability | what | validated here |
+|---|---|---|---|
+| `moss-image-t2i` | t2i | `UNETLoader` (SFT int8; `unet`) → `CLIPLoader` qwen3.5-9b w4a8, type `moss_image` → `VAELoader` FLUX.2 small → `CLIPTextEncode` ×2 (the prompt: plain words or a compiled layout, verbatim) → `EmptyFlux2LatentImage` (`width` / `height`: the layout's canvas) → `SkipLayerGuidanceDiTSimple` (layer 22, first half) → `KSampler` (`steps`, `cfg`, `sampler`, `scheduler`) → `VAEDecode` → `SaveImage` | `/prompt` only (CPU, zero-byte model stand-ins): no render here |
+
+- **Weights** (13 GB): Comfy-Org/MOSS-Image at `530a4c94f92c35ef6818b1b035a983fe9dcf5f54` (diffusion model 5.41 GB, text encoder
+ 7.34 GB, small VAE 0.25 GB), and, for the Fast setting only, Spectrallic's SFT with the 8-step DMD LoRA merged in (5.41 GB,
+ `optionalModels`). All Apache-2.0. The Workflows page's install commands fetch them; nothing is downloaded at build time.
+- **Settings**: Standard is the Comfy template's (25 steps, CFG 2.5, er_sde / simple), Best OpenMOSS's guide (50, 3, euler),
+ Fast the DMD file at 8 steps and CFG 1 (`ModelOptions.controls[].sets` on `oss-moss-image` writes them).
+- **Not installed on purpose**: LinXce's Comfyui-Moss-LayoutPrompt (its `MOSSImageLayoutPrompt` id collides with core's) and
+ OpenMOSS's loader pack (core's native path is what its own README recommends). Fuobe compiles layouts itself
+ (`src/lib/layout-prompt.ts`).
+- **GPU**: no official VRAM figure (16 GB is a guess with ComfyUI's offloading). comfy-kitchen's int8 / w4a8 kernels need a
+ PyTorch built for CUDA 13 (cu130); otherwise `comfy/quant_ops.py` turns them off with a warning.
+
## Adding a workflow
1. Find the template name in `$COMFYUI_DIR/.venv/lib/python3.*/site-packages/comfyui_workflow_templates_json/templates/index.json`
diff --cc src/lib/catalog/payload.ts
index c4ce64ea,a7de0216..8726545d
--- a/src/lib/catalog/payload.ts
+++ b/src/lib/catalog/payload.ts
@@@ -1,6 -1,6 +1,7 @@@
import { readTimeline, timelineTracks } from "@/lib/av/timeline";
+ import { toH3MaxTrajectory, type CameraKey } from "@/lib/camera-path";
import { upscaleFactorFor } from "@/lib/av/upscale";
+import { carriesLayout, LAYOUT_PARAM } from "@/lib/layout-prompt";
import { loraFields } from "./loras";
import { OPERATION_OUTPUT, type DurationField, type EnumField, type FieldMap, type GenInput, type MatteOutput, type MediaKind, type Operation, type PixelPoint } from "./types";
diff --cc src/lib/catalog/types.ts
index 4d65417a,89062397..f2b30b04
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@@ -454,11 -456,12 +459,17 @@@ export interface FieldMap
ranges?: Record<string, { min?: number; max?: number; integer?: boolean }>;
/** The most images this route's image list takes, when fewer than the model's options.maxImages (another route takes more). */
maxImages?: number;
+ /**
+ * The API's own prompt expansion switch (fal's enable_prompt_expansion): sent false whenever the request carries a
+ * layout (params.extra.layout), which expansion would rewrite; a plain prompt leaves the API's default.
+ */
+ promptExpansion?: string;
+ /**
+ * A camera path (params.cameraPath, build plan N7-5) as the API's keyframes [{time, azimuth, elevation, distance}]:
+ * `min`–`max` of them, the height kept inside `elevation`, at most `maxTurns` turns of travel. `free`: the API's fixed
+ * moves (H3 Max's free_camera_preset), which a pure slide (Truck left / right) is sent as instead of the keyframes.
+ */
+ cameraPath?: { key: string; min: number; max: number; elevation: [number, number]; maxTurns: number; free?: { key: string; values: string[] } };
/** An empty prompt is left out rather than sent as "" (APIs that read a missing prompt as "no words": Bria Expand). */
omitEmptyPrompt?: boolean;
/** params.extra keys this route has no field for (a model-wide control only its other routes read): left out. */