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 'o/dop' into claude/fuobe-parity-4

Claudebeda27ac8fe2
diff --cc scripts/comfy/validation-state.json
index 98446178,256103aa..efa61314
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@@ -263,6 -257,24 +263,24 @@@
"error": null,
"at": "2026-10-16T20:57:26.268Z"
},
+ "ltx23-flf2v-lora": {
+ "sha256": "7cdc4e07f2560d71f104a40aff59b99577e8d86691d3daaca4e2ce12f227d91c",
+ "validated": true,
+ "error": null,
- "at": "2026-10-26T01:09:39.203Z"
++ "at": "2026-10-26T08:23:53.847Z"
+ },
+ "ltx23-i2v-lora": {
+ "sha256": "34dcdf439d9f5fccfc48d5376bae9ec8abf1abd69a21ec426442ab52e71c4070",
+ "validated": true,
+ "error": null,
- "at": "2026-10-26T01:09:37.955Z"
++ "at": "2026-10-26T08:23:50.752Z"
+ },
+ "ltx23-t2v-lora": {
+ "sha256": "1ea883fdcbd76611ab7da834e1d9cf19ef4e3eb940d44f4c0203ef485ee371d4",
+ "validated": true,
+ "error": null,
- "at": "2026-10-26T01:09:39.294Z"
++ "at": "2026-10-26T08:23:53.900Z"
+ },
"ltx25-i2v": {
"sha256": "7a9a34d0b7571d6a44cfd7b7cdb98a2896023700b7a0beba452f15f45d91130a",
"validated": true,
diff --cc src/server/chains.ts
index 38ac0f06,be3fce44..2e7a854a
--- a/src/server/chains.ts
+++ b/src/server/chains.ts
@@@ -1,10 -1,9 +1,10 @@@
import "server-only";
import { nanoid } from "nanoid";
import { getModel, supportsOp } from "@/lib/catalog";
+import { MODEL3D_STEP_FEATURE, stillPromptFor3d } from "@/lib/av/model3d";
import { chainTiming, frameTimes, planKeyframeClips, spread } from "@/lib/catalog/keyframes";
import { routesFor } from "@/lib/catalog/plan";
- import type { ChainSlot, Engine, Generation, GenerationRequest, ModelDef, ModelRoute, Operation } from "@/lib/catalog/types";
+ import type { ChainSlot, Engine, Generation, GenerationRequest, LoraRef, ModelDef, ModelRoute, Operation } from "@/lib/catalog/types";
import { db } from "./db";
import { cancelGeneration, chooseRoute, createGenerations, getGeneration, previewChained, previewGeneration } from "./generations";
import { provider } from "./providers";
@@@ -276,59 -275,44 +276,97 @@@ export function createExtendChain(origi
return [film, clip, frame];
}
+/** The still the open text-to-3D route draws first. */
+const STILL_MODEL = "oss-z-image-turbo";
+/** The image-to-3D model that runs a text-to-3D route's workflow. */
+const BUILDERS_3D: Record<string, string> = { "image-to-3d-trellis2": "oss-trellis2" };
+
+/**
+ * Text to 3D on the open engine (a text-to-3d route marked `chained`): Z-Image Turbo draws the object whole on a
+ * plain background (a helper step), then the route's workflow (TRELLIS.2) builds the model from that still.
+ */
+export function createStillTo3d(original: GenerationRequest, model: ModelDef, route: ModelRoute): Generation[] {
+ const prompt = original.prompt?.trim();
+ if (!prompt) throw new Error("Describe the object");
+ const builder = BUILDERS_3D[route.endpoint];
+ if (!builder) throw new Error(`${model.name} has no image-to-3D model for ${route.endpoint}`);
+ assertOneMode([
+ { label: "Drawing the object", modelId: STILL_MODEL, op: "t2i" },
+ { label: model.name, modelId: builder, op: "image-to-3d" },
+ ]);
+ const batchId = nanoid(10);
+ const seed = original.params?.seed;
+ const still = createGenerations(
+ {
+ feature: MODEL3D_STEP_FEATURE,
+ modelId: STILL_MODEL,
+ op: "t2i",
+ prompt: stillPromptFor3d(prompt),
+ params: { aspectRatio: "1:1", resolution: "1K", ...(seed !== undefined && { seed }) },
+ step: { label: "Still", index: 0, of: 2 },
+ },
+ { batchId },
+ )[0];
+ try {
+ // The model is built from the still alone (a photo sent with the words has no place in this route).
+ const inputs = { ...original.inputs };
+ delete inputs.images;
+ const built = createGenerations(
+ {
+ ...original,
+ modelId: builder,
+ op: "image-to-3d",
+ inputs: Object.keys(inputs).length ? inputs : undefined,
+ chain: [{ slot: "images", position: "first" }],
+ step: { label: "3D model", index: 1, of: 2 },
+ },
+ { batchId, dependsOn: still.id },
+ )[0];
+ return [built, still];
+ } catch (e) {
+ void cancelGeneration(still.id);
+ throw e;
+ }
+}
+
+ /**
+ * Fuobe DoP's relight effects (Silhouette, Window, Practicals…): the start frame is relit first (Qwen-Image-Edit 2509
+ * with its Relight LoRA, on the engine the clip runs on), then animated with the effect's words. One batch of two steps.
+ */
+ export function createRelitClip(original: GenerationRequest, relight: { engine: Engine; step: { modelId: string; op: Operation; prompt: string; loras?: LoraRef[] } }): Generation[] {
+ const [image, ...rest] = original.inputs?.images ?? [];
+ if (!image) throw new Error("Add a start frame to relight");
+ const { engine, step } = relight;
+ assertOneMode([
+ { label: "Relighting the start frame", modelId: step.modelId, op: step.op },
+ { label: getModel(original.modelId)?.name ?? original.modelId, modelId: original.modelId, op: original.op ?? "i2v" },
+ ]);
+ const batchId = nanoid(10);
+ const relit = createGenerations(
+ {
+ feature: original.feature,
+ modelId: step.modelId,
+ op: step.op,
+ prompt: step.prompt,
+ inputs: { images: [image] },
+ ...(step.loras?.length && { loras: step.loras }),
+ step: { label: "Relit start frame", index: 0, of: 2 },
+ },
+ { batchId },
+ )[0];
+ const clip = createGenerations(
+ {
+ ...original,
+ engine,
+ inputs: { ...original.inputs, images: rest.length ? rest : undefined },
+ chain: [{ slot: "images", position: "first" }],
+ step: { label: "Relit clip", index: 1, of: 2 },
+ },
+ { batchId, dependsOn: relit.id },
+ )[0];
+ return [clip, relit];
+ }
+
/** The model a storyboard film is animated with. */
export function filmModel(engine: Engine, modelId?: string): ModelDef {
const m = getModel(modelId ?? (engine === "open" ? "oss-wan22-14b-fast" : "seedance-2-5"));
diff --cc src/server/generations.ts
index 2e7cff9f,05d37512..ae4c29a0
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@@ -34,7 -38,7 +38,7 @@@ import
import { db } from "./db";
import { listElements } from "./elements";
import { pollTrainings } from "./training";
- import { createExtendChain, createKeyframeFilm, createShotFilm, createStillTo3d } from "./chains";
-import { createExtendChain, createKeyframeFilm, createRelitClip, createShotFilm } from "./chains";
++import { createExtendChain, createKeyframeFilm, createRelitClip, createShotFilm, createStillTo3d } from "./chains";
import { enhancePrompt, enhanceSoulWords } from "./enhance";
import { setResolver, watchGenerations, type LiveEvent } from "./live";
import { provider } from "./providers";
@@@ -545,10 -572,9 +572,13 @@@ export function createGenerations(origi
// Frames mode on an open model: one start/end-frame clip per pair of frames, then joined.
const filmRoute = shotModel && keyframeChain(shotModel);
if (!opts.dependsOn && filmRoute && inferOperation(shotModel, original) === "keyframes") return createKeyframeFilm(original, shotModel, filmRoute);
+ // Text to 3D on the open engine: a still first, then the 3D model of it. The operation is read as the planner
+ // reads it (Assist, MCP and API clients usually leave op out).
+ const stillTo3d = !opts.dependsOn && shotModel && inferOperation(shotModel, original) === "text-to-3d" ? routesFor(shotModel, "text-to-3d").find((r) => r.chained) : undefined;
+ if (shotModel && stillTo3d) return createStillTo3d(original, shotModel, stillTo3d);
+ // Fuobe DoP's relight effects: the start frame is relit first, then animated.
+ const relight = !opts.dependsOn && shotModel ? relightStep(original, shotModel) : undefined;
+ if (relight) return createRelitClip(original, relight);
const deps = opts.dependsOn === undefined ? [] : Array.isArray(opts.dependsOn) ? opts.dependsOn : [opts.dependsOn];
const waits = deps.length > 0;
// A dependent job can't be planned until its inputs exist; it's validated with placeholders, then launched by the runner.
diff --cc src/server/providers/comfyui.ts
index 414d0af5,29bf675a..71f8a302
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@@ -491,8 -478,11 +492,11 @@@ export function mediaInfoFor(name: unkn
return typeof name === "string" ? globalThis.__fuobeComfyMedia?.get(name) : undefined;
}
+ /** Image-to-video graphs whose camera moves Wan 2.2 Fun Camera makes natively: a request with a pose (params.extra.cameraMotion) runs there. */
+ const CAMERA_POSE_GRAPH: Record<string, string> = { "wan22-i2v-14b": "wan22-fun-camera-14b" };
+
/** Inputs a workflow handles its own way (the manifest doesn't say). */
-const SLOT_RULES: Record<string, { reuse?: boolean; required?: string[]; hints?: Record<string, string> }> = {
+const SLOT_RULES: Record<string, { reuse?: boolean; required?: string[]; hints?: Record<string, string>; views?: ViewSlots }> = {
// Edit graphs whose extra images feed TextEncodeQwenImageEditPlus: a repeated reference is harmless.
"qwen-image-edit-2511-multi": { reuse: true },
"storyboard-qwen-edit-2509-next-scene": { reuse: true },
diff --cc workflows/comfyui/manifest.json
index 863a127f,13a10bcf..83633a26
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@@ -1,6 -1,6 +1,6 @@@
{
"version": 1,
- "generatedAt": "2026-10-26T00:45:58.502Z",
- "generatedAt": "2026-10-26T01:09:26.190Z",
++ "generatedAt": "2026-10-26T08:23:46.732Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",