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/nm10-hosted-catchup' into claude/fuobe-parity-4

Claude8bc88c7a2d4b
diff --cc src/components/studio/composer.tsx
index e2458760,5b24c314..88bcf3fe
--- a/src/components/studio/composer.tsx
+++ b/src/components/studio/composer.tsx
@@@ -1105,7 -1114,9 +1120,9 @@@ export function Composer({ docked }: {
onStrength={(v) => setDraft({ presetStrength: v })}
/>
)}
- {opts.controls && <ControlsChip controls={opts.controls} values={p.extra ?? {}} onChange={setExtra} title={config.controlsTitle} op={effectiveOp} />}
+ {shownControls.length > 0 && <ControlsChip controls={shownControls} values={p.extra ?? {}} onChange={setExtra} title={config.controlsTitle} op={effectiveOp} />}
+ {opts.lightSphere && <LightSphereChip value={draft.slots.image} onChange={setLight} />}
+ {effectiveOp === "insert-moment" && <InsertRangeChip clip={facts?.duration} start={p.startTime} resume={p.endTime} onChange={setInsertRange} />}
</>
);
const hasSecondary =
diff --cc src/lib/catalog/canvas.ts
index 69a0b9b7,232a65d6..88413966
--- a/src/lib/catalog/canvas.ts
+++ b/src/lib/catalog/canvas.ts
@@@ -355,12 -347,16 +355,16 @@@ export function nodeLabel(n: Pick<Canva
/**
* Ops the canvas can't feed (masks, browser-only tools, multi-speaker scripts, draft finishing, and
- * inputs it has no port for: a 3D model to rig, a list of audio clips to join).
+ * inputs it has no port for: a 3D model to rig or retexture, a list of audio clips to join, the two points of an
+ * inserted moment).
*/
- const UNSUPPORTED_OPS = new Set<Operation>(["grade", "inpaint", "finalize", "dialogue", "rig-3d", "audio-join", "composite"]);
-const UNSUPPORTED_OPS = new Set<Operation>(["grade", "inpaint", "finalize", "dialogue", "rig-3d", "retexture-3d", "audio-join", "insert-moment"]);
++const UNSUPPORTED_OPS = new Set<Operation>(["grade", "inpaint", "finalize", "dialogue", "rig-3d", "retexture-3d", "audio-join", "composite", "insert-moment"]);
- /** Models that only run on a painted mask or clicked points (VACE inpaint, Bria's point eraser): the canvas has neither. */
- const needsMarks = (m: ModelDef) => !!(m.options.requires?.mask || m.options.requires?.points);
+ /**
+ * Models that only run on a painted mask or clicked points (VACE inpaint, Bria's point eraser), or on a light picked on a
+ * sphere (H3 Max relight): the canvas has none of these.
+ */
+ const needsMarks = (m: ModelDef) => !!(m.options.requires?.mask || m.options.requires?.points || m.options.lightSphere);
/** Preferred defaults; anything missing falls back to the first catalog model for that op and engine. */
const PREFERRED: Partial<Record<Operation, Partial<Record<Engine, string>>>> = {
diff --cc src/lib/catalog/plan.ts
index 7caa9eef,62469fac..a59510fd
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@@ -882,9 -934,7 +940,9 @@@ function missingImages(model: ModelDef
* price counts the clip's seconds (params.sourceDuration) when the caller knows them, and slow motion bills
* the whole stretched result.
*/
- const CLIP_LENGTH_OPS = new Set<Operation>(["upscale-video", "interpolate", "sdr-to-hdr", "export-video", "restore-video"]);
+ const CLIP_LENGTH_OPS = new Set<Operation>(["upscale-video", "interpolate", "sdr-to-hdr", "export-video", "restore-video", "relight-video"]);
+/** Sound tools billed on the recording's length (per second or per minute of audio). */
+const AUDIO_LENGTH_OPS = new Set<Operation>(["enhance-voice"]);
/**
* The seconds a clip edit that keeps the clip's length is billed for (Happy Horse, Runway Aleph, Lucy Edit, Kling O3 4K
@@@ -1067,14 -1115,10 +1125,16 @@@ export function estimateCost(model: Mod
const mp = p.videoMegapixel ? videoMegapixels(model, params, seconds) : undefined;
const rate = p.videoMegapixel && (withLoras && p.videoMegapixel.withLoras !== undefined ? p.videoMegapixel.withLoras : p.videoMegapixel.usd);
per = mp !== undefined && rate ? Math.ceil(mp - 1e-9) * rate : usd * seconds;
+ // A long result billed at a higher rate throughout (fal's H3 Max lip sync: 1.2× over 15 s).
+ if (p.longFactor && seconds > p.longFactor.over + 1e-9) per *= p.longFactor.factor;
}
- if (p.unit === "minute") per = (usd * (voice ?? params.duration ?? 60)) / 60;
+ if (p.unit === "minute") {
+ // A sound tool (Clean up dialogue's VEED, a voice split) bills the clip's length when the caller knows it.
+ const heard = (op === "separate-audio" || audioClip) && params.sourceDuration && params.sourceDuration > 0 ? params.sourceDuration : undefined;
+ const minutes = (voice ?? params.duration ?? heard ?? 60) / 60;
+ // Whole minutes of input, at least one (VEED Clean Audio: whole seconds, then up to the next full minute).
+ per = usd * (p.roundUp ? Math.max(1, Math.ceil(Math.round(minutes * 60) / 60 - 1e-9)) : minutes);
+ }
// Settings that change the price (60 fps, a Pro tier, a cheaper model).
for (const f of p.factors ?? []) {
const v = f.param === "targetFps" ? (params.targetFps ?? model.defaults?.targetFps) : (params.extra?.[f.param] ?? model.options.controls?.find((c) => c.param === f.param)?.default);
diff --cc src/lib/catalog/types.ts
index 3f425eff,7f2c3fcf..06f1d0f4
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@@ -161,8 -163,9 +164,10 @@@ export const OPERATION_LABELS: Record<O
overlay: "Overlay image",
"face-mosaic": "Pixelate faces",
"camera-path": "Fly path",
+ composite: "Character over the footage",
"restore-video": "Restore & colourise",
+ "insert-moment": "Insert a moment",
+ "retexture-3d": "Retexture",
};
export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
@@@ -235,8 -238,9 +240,10 @@@
overlay: "image",
"face-mosaic": "image",
"camera-path": "video",
+ composite: "video",
"restore-video": "video",
+ "insert-moment": "video",
+ "retexture-3d": "model3d",
};
/**