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.

Plan: captions need no prompt either

Claude3a6af7a9d1f6
diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.ts
index 2c86fca7..fbdb8556 100644
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@ -93,8 +93,8 @@ export interface Plan {
const PROMPTLESS = new Set<Operation>([
"concat", "frame", "color-match", "finalize", "reframe", "dialogue", "voice-change", "dub", "bg-remove-video", "depth-video", "upscale-image", "upscale-video", "bg-remove",
"interpolate", "v2a", "face-swap", "motion-transfer", "lipsync", "avatar",
- // round 3 (open engine): tools that work from their inputs; captions need the cue text as the prompt
- "trim", "transcribe", "mux", "separate-audio", "layers", "image-to-3d",
+ // round 3: tools that work from their inputs (open caption burn-in takes timed lines as its prompt and says so when they're missing)
+ "trim", "transcribe", "mux", "separate-audio", "layers", "image-to-3d", "captions",
]);
export function planGeneration(
diff --git a/tests/open-engine.test.ts b/tests/open-engine.test.ts
index 8221a5eb..f54baa82 100644
--- a/tests/open-engine.test.ts
+++ b/tests/open-engine.test.ts
@@ -133,6 +133,9 @@ describe("round-3 open models", () => {
expect(planGeneration({ feature: "image", modelId: "oss-qwen-layered", inputs: { images: ["/a.png"] }, params: { numLayers: 4 } }, getModel, getPreset).op).toBe("layers");
expect(planGeneration({ feature: "captions", modelId: "oss-qwen3-asr", inputs: { video: "/v.mp4" } }, getModel, getPreset).op).toBe("transcribe");
expect(() => planGeneration({ feature: "3d", modelId: "oss-trellis2" }, getModel, getPreset)).toThrow(/photo/);
+ // Whisper transcribes by itself; the burn-in's provider asks for timed lines when they're missing.
+ expect(planGeneration({ feature: "captions", modelId: "oss-captions-whisper", inputs: { video: "/v.mp4" } }, getModel, getPreset).op).toBe("captions");
+ expect(() => planGeneration({ feature: "captions", modelId: "oss-captions-burnin" }, getModel, getPreset)).toThrow(/video to caption/);
});
it("runs Virtual Try-On on the try-on LoRA on the open engine", () => {