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.

Originals O6: a browser check of Fuobe Cinema, and Seedance's tagline without Higgsfield

Claudead4fdafb8f83
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index 761f1d26..45ac3e1e 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -311,7 +311,7 @@ model("bria-extract-object", "Bria Extract Object", "Bria", "bria", "image",
# ----- Video
model("seedance-2-5", "Seedance 2.5", "ByteDance", "seedance", "video",
- "Higgsfield's default — multi-shot cinema with native audio, up to 30s",
+ "ByteDance's cinema model — multi-shot with native audio, up to 30s",
[("t2v", "bytedance/seedance-2.5/text-to-video"), ("i2v", "bytedance/seedance-2.5/image-to-video", "fal", "+flf2v"),
("ref2v", "bytedance/seedance-2.5/reference-to-video"),
("extend", "bytedance/seedance-2.5/reference-to-video", "fal", {"fixed": {"task": "extension"}, "videoArray": True}),
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 8c6bcd48..7640fa3d 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -3434,7 +3434,7 @@ export const CLOUD_MODELS: ModelDef[] = [
"family": "seedance",
"engine": "cloud",
"kind": "video",
- "tagline": "Higgsfield's default \u2014 multi-shot cinema with native audio, up to 30s",
+ "tagline": "ByteDance's cinema model \u2014 multi-shot with native audio, up to 30s",
"routes": [
{
"op": "t2v",
diff --git a/tests/e2e/cinema-original.mjs b/tests/e2e/cinema-original.mjs
new file mode 100644
index 00000000..ffd519e9
--- /dev/null
+++ b/tests/e2e/cinema-original.mjs
@@ -0,0 +1,179 @@
+// Fuobe Cinema browser check (build plan O6): the Cinema workspace runs on the Originals, with no Higgsfield anywhere.
+// At 1440 and 390 px, light and dark: the model menu lists Fuobe Cinema first with an "Original" badge and what runs on
+// each engine; a camera move says how the Original drives it (LTX-2.3's camera LoRA in the cloud); the price shows
+// before running ("Free" on the open engine); a take is made in demo mode; Soul Cast and Soul Location name Fuobe Soul
+// and their look; nothing scrolls sideways.
+// Usage: node tests/e2e/cinema-original.mjs [appUrl] [--shots <dir>] (app running in demo mode, ComfyUI unreachable).
+// Exits 1 on a failed check.
+import fs from "node:fs";
+import path from "node:path";
+import { createRequire } from "node:module";
+import { fileURLToPath } from "node:url";
+
+const argv = process.argv.slice(2);
+const app = (argv.find((a) => !a.startsWith("--") && argv[argv.indexOf(a) - 1] !== "--shots") ?? "http://localhost:3000").replace(/\/$/, "");
+const shots = argv.includes("--shots") ? argv[argv.indexOf("--shots") + 1] : undefined;
+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
+
+function loadPlaywright() {
+ for (const from of [path.join(root, "package.json"), "/opt/node22/lib/node_modules/", "/opt/node-tools/node_modules/"]) {
+ const req = createRequire(from);
+ for (const name of ["playwright", "playwright-core"]) {
+ try {
+ return req(name);
+ } catch {}
+ }
+ }
+ throw new Error("Playwright not found: install playwright-core or run where the global install exists");
+}
+
+function chromiumPath() {
+ if (process.env.CHROMIUM_PATH) return process.env.CHROMIUM_PATH;
+ const dir = "/opt/pw-browsers";
+ if (!fs.existsSync(dir)) return undefined;
+ const newest = fs
+ .readdirSync(dir)
+ .filter((d) => /^chromium-\d+$/.test(d))
+ .sort((a, b) => Number(b.split("-")[1]) - Number(a.split("-")[1]))[0];
+ const exe = newest && path.join(dir, newest, "chrome-linux/chrome");
+ return exe && fs.existsSync(exe) ? exe : undefined;
+}
+
+const { chromium } = loadPlaywright();
+const browser = await chromium.launch({ executablePath: chromiumPath() });
+const failures = [];
+const check = (label, ok, extra = "") => {
+ console.log(`${ok ? "ok " : "FAIL"} ${label.padEnd(64)}${extra ? ` ${extra}` : ""}`);
+ if (!ok) failures.push(label);
+};
+if (shots) fs.mkdirSync(shots, { recursive: true });
+
+async function session(width, height, scheme) {
+ const context = await browser.newContext({ viewport: { width, height }, colorScheme: scheme });
+ const page = await context.newPage();
+ const call = async (url, method = "GET", data) => {
+ const r = await page.request.fetch(app + url, { method, headers: { "Content-Type": "application/json" }, data: data === undefined ? undefined : JSON.stringify(data) });
+ return r.json();
+ };
+ const tag = `${width} ${scheme}`;
+ const shot = async (name) => shots && (await page.screenshot({ path: path.join(shots, `${name}-${width}-${scheme}.png`) }));
+ const sideways = () => page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);
+ const project = await call("/api/cinema/projects", "POST", { name: `Original check ${tag}` });
+ // The project page sends no Higgsfield flag.
+ const view = await call(`/api/cinema/projects/${project.id}`);
+ check(`${tag}: the project's context has no Higgsfield flag`, view.context && !("higgsfield" in view.context), JSON.stringify(view.context));
+
+ // Start on the cloud engine (the switch remembers it per browser).
+ await page.goto(`${app}/cinema/${project.id}`, { waitUntil: "load", timeout: 120_000 });
+ const prompt = page.getByPlaceholder(/Describe your scene/);
+ await prompt.waitFor({ timeout: 180_000 });
+ const engine = page.getByRole("radiogroup", { name: "Engine" });
+ // Pick an engine (a click that only closes a menu is tried again).
+ const pick = async (name) => {
+ const r = engine.getByRole("radio", { name });
+ for (let i = 0; i < 4 && (await r.count()) && (await r.getAttribute("aria-checked")) !== "true"; i++) {
+ await r.click();
+ await page.waitForTimeout(400);
+ }
+ check(`${tag}: the ${String(name).replace(/[/^]/g, "")} engine is picked`, (await r.getAttribute("aria-checked")) === "true");
+ };
+ await pick(/Cloud/);
+ check(`${tag}: no sideways scroll on the workspace`, (await sideways()) <= 1, `${await sideways()} px`);
+
+ // The model menu: Fuobe Cinema first, marked Original, with what runs in the cloud.
+ const modelChip = page.getByRole("button", { name: /^Model: / });
+ check(`${tag}: the default video model is Fuobe Cinema`, (await modelChip.getAttribute("aria-label")) === "Model: Fuobe Cinema", await modelChip.getAttribute("aria-label"));
+ await modelChip.click();
+ const menu = page.getByRole("menu");
+ await menu.waitFor();
+ const items = await menu.getByRole("menuitem").allInnerTexts();
+ check(`${tag}: the menu lists Fuobe Cinema first, as an Original`, /^Fuobe Cinema\s*Original/.test(items[0] ?? ""), JSON.stringify(items[0]));
+ check(`${tag}: it says LTX-2.3 runs in the cloud`, /LTX-2\.3 on fal/.test(items[0] ?? ""));
+ check(`${tag}: partner models stay pickable`, ["Seedance 2.5", "Kling 3.0", "Veo 3.1"].every((n) => items.some((t) => t.startsWith(n))), items.map((t) => t.split("\n")[0]).join(", "));
+ check(`${tag}: nothing in the menu mentions Higgsfield`, !/Higgsfield/i.test(items.join(" ")));
+ await shot("model-menu");
+ await page.keyboard.press("Escape");
+ await menu.waitFor({ state: "hidden" });
+
+ // A camera move: the picker says how the Original drives it, and the bar's notes say it again.
+ await prompt.fill("A violinist plays alone on an empty theatre stage");
+ await page.getByRole("button", { name: "Add a camera move" }).click();
+ const dolly = page.getByRole("option", { name: /Dolly In/ }).first();
+ await dolly.waitFor();
+ check(`${tag}: Dolly In shows "Camera LoRA" in the cloud`, /Camera LoRA/.test(await dolly.innerText()));
+ await shot("moves");
+ await dolly.click();
+ await page.waitForTimeout(500);
+ const body = await page.locator("body").innerText();
+ check(`${tag}: the bar says the move drives LTX-2.3's camera LoRA`, /Dolly In drives LTX-2\.3's dolly in camera LoRA/.test(body));
+ const generate = page.getByRole("button", { name: /^Generate/ }).first();
+ check(`${tag}: the price shows before running`, /Demo|≈ \$|Free/.test(body));
+ await shot("cloud-bar");
+ const before = (await call(`/api/cinema/projects/${project.id}/items`)).items.length;
+ await generate.click();
+ await page.waitForTimeout(2500);
+ const takes = (await call(`/api/cinema/projects/${project.id}/items`)).items;
+ check(`${tag}: Generate makes a Fuobe Cinema take (demo)`, takes.length === before + 1 && takes[0]?.modelId === "fuobe-cinema", takes.map((g) => g.modelId).join(","));
+ check(`${tag}: the take asked for the camera LoRA`, takes[0]?.request?.params?.extra?.camera_lora === "dolly_in");
+
+ // The open engine: free, Wan 2.2 Lightning, a Fun Camera badge for pans.
+ await pick(/Open source/);
+ const openBody = await page.locator("body").innerText();
+ check(`${tag}: the open engine says Free`, /\bFree\b/.test(openBody) || /Demo/.test(openBody));
+ await modelChip.click();
+ await menu.waitFor();
+ const openItems = await menu.getByRole("menuitem").allInnerTexts();
+ check(`${tag}: open menu: Fuobe Cinema on Wan 2.2 Lightning, then LTX-2.5 (sound)`, /Wan 2\.2 Lightning on your GPU/.test(openItems[0] ?? "") && /^LTX-2\.5/.test(openItems[1] ?? ""), openItems.map((t) => t.split("\n")[0]).join(", "));
+ await shot("open-menu");
+ await page.keyboard.press("Escape");
+ await menu.waitFor({ state: "hidden" });
+ await pick(/Cloud/);
+ check(`${tag}: no sideways scroll after the menus`, (await sideways()) <= 1);
+
+ // Soul Cast and Soul Location name Fuobe Soul and the look (on a phone they sit in the folded Director sheet).
+ const builder = async (name) => {
+ const visible = page.getByRole("button", { name }).locator("visible=true");
+ // A closing dialog keeps the page hidden from assistive tech for a moment: wait for the chip to come back.
+ await visible.first().waitFor({ timeout: 5000 }).catch(() => {});
+ if (!(await visible.count())) await page.getByRole("button", { name: /^Director/ }).locator("visible=true").first().click();
+ await visible.first().click();
+ const dialog = page.getByRole("dialog").filter({ hasText: /Build your cast|Create location/ });
+ await dialog.waitFor();
+ return dialog;
+ };
+ const cast = await builder("Soul Cast: build a character");
+ const castText = await cast.innerText();
+ check(`${tag}: Soul Cast runs on Fuobe Soul, Realistic look, in the cloud`, /Fuobe Soul · Realistic look/.test(castText) && !/on your GPU/.test(castText), castText.match(/Fuobe[^\n]*/)?.[0] ?? "");
+ check(`${tag}: Soul Cast shows a price before running`, /Demo · free|Free|≈ \$/.test(castText));
+ check(`${tag}: no sideways scroll in Soul Cast`, (await sideways()) <= 1);
+ await shot("soul-cast");
+ await page.keyboard.press("Escape");
+ await cast.waitFor({ state: "hidden" });
+ const loc = await builder("Soul Location: build a location");
+ await loc.getByRole("textbox").first().fill("an abandoned diner on Route 66 at dusk");
+ const locText = await loc.innerText();
+ check(`${tag}: Soul Location runs on Fuobe Soul, Movie look`, /Fuobe Soul · Movie look/.test(locText), locText.match(/Fuobe[^\n]*/)?.[0] ?? "");
+ await loc.getByRole("button", { name: /Generate location/ }).click();
+ await page.waitForTimeout(3000);
+ const made = (await call(`/api/cinema/projects/${project.id}/items`)).items.filter((g) => g.feature === "cinema-location");
+ check(`${tag}: a location is made on Fuobe Soul with the Movie look`, made.length > 0 && made.every((g) => g.modelId === "fuobe-soul" && g.presetId === "v1-movie"), made.map((g) => `${g.modelId}/${g.presetId}`).join(","));
+ check(`${tag}: no sideways scroll in Soul Location`, (await sideways()) <= 1);
+ await shot("soul-location");
+ await page.keyboard.press("Escape");
+ return { context, project };
+}
+
+try {
+ for (const [w, h] of [
+ [1440, 900],
+ [390, 844],
+ ])
+ for (const scheme of ["light", "dark"]) {
+ const { context } = await session(w, h, scheme);
+ await context.close();
+ }
+} finally {
+ await browser.close();
+}
+console.log(failures.length ? `\n${failures.length} check(s) failed` : "\nall checks passed");
+process.exit(failures.length ? 1 : 0);