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.

Apps: Video Background Remover mattes the whole video (BiRefNet video on both engines)

Claude74694e23d6ba
diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.ts
index b7cb9336..7fe1c1a5 100644
--- a/src/lib/catalog/apps.ts
+++ b/src/lib/catalog/apps.ts
@@ -1623,14 +1623,14 @@ export const APPS: Preset[] = [
app({
name: "Video Background Remover",
category: "Utility",
- description: "Cut out the subject of a video frame",
+ description: "Cut the subject out of a whole video",
icon: "SquareDashed",
hue: 175,
- inputs: [{ key: "image", label: "Frame", hint: "A still frame from your video", accept: "image", required: true }],
+ inputs: [{ key: "video", label: "Video", hint: "The clip to cut out, every frame", accept: "video", required: true }],
prompt: "Remove the background",
- cloud: BG_CLOUD,
- open: BG_OPEN,
- parity: "Approximation: Higgsfield mattes whole videos (SAM 3); Fuobe has no video matting model yet and cuts out a single frame",
+ cloud: { modelId: "birefnet-video", op: "bg-remove-video" },
+ open: { modelId: "oss-video-matte-birefnet", op: "bg-remove-video" },
+ parity: "BiRefNet mattes every frame into a transparent video; to keep one object you name (Higgsfield uses SAM 3), use Video tools → Remove background with SAM 3",
}),
app({
name: "Object Remover",
diff --git a/tests/av-tools.test.ts b/tests/av-tools.test.ts
index fbfc6215..ff188ca2 100644
--- a/tests/av-tools.test.ts
+++ b/tests/av-tools.test.ts
@@ -189,6 +189,17 @@ describe("apps on the new models", () => {
expect(open.loras[0]?.file).toMatch(/multiple-angles/);
});
+ it("Video Background Remover mattes the whole clip with BiRefNet on both engines (no more single frame)", () => {
+ const preset = getPreset("app-video-background-remover")!;
+ expect(preset.inputs).toEqual([expect.objectContaining({ key: "video", accept: "video", required: true })]);
+ for (const [engine, model] of [["cloud", "birefnet-video"], ["open", "oss-video-matte-birefnet"]] as const) {
+ const route = engine === "cloud" ? preset.cloud! : preset.open!;
+ const p = planGeneration({ feature: `app:${preset.id}`, presetId: preset.id, modelId: route.modelId, inputs: { video: "/api/files/in.mp4" } }, getModel, getPreset);
+ expect([p.model.id, p.op]).toEqual([model, "bg-remove-video"]);
+ }
+ expect(preset.parity).not.toMatch(/no video matting|single frame/);
+ });
+
it("Product Shot sends a scene description only (Bria takes a description or a reference photo, never both)", () => {
expect(plan("app-product-shot", "cloud", { scene: "beach" }).prompt).toMatch(/^The product on warm sand at the beach/);
expect(getPreset("app-product-shot")!.inputs!.some((s) => s.key === "image2")).toBe(false);