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/o9-mixed-shorts' into claude/fuobe-parity-4

Claude7d7a765be3ae
diff --cc scripts/eval/README.md
index 034ccac2,1e51685d..3ba0784e
--- a/scripts/eval/README.md
+++ b/scripts/eval/README.md
@@@ -117,11 -117,10 +117,11 @@@ One JSON file per Original in `cases/`
| `dop` | Fuobe DoP motions and effects | the 69 the research gives a LoRA, and the 20 camera moves it gives a Fun Camera pose or an LTX camera LoRA | `catalog`, `prompt-only`, `research` (the candidate), `partner` (cloud) | temporal, clip |
| `dop-mix` | Fuobe DoP's Mix | 5 move + effect pairs | `mix` (the candidate), `first` (the move alone) | temporal, clip |
| `genjutsu` | Genjutsu move / swap / restyle / Character swap | 7: Motion transfer and Object swap (each also on the Lite tier), Restyle, and Character swap with and without the first frame (through `/api/genjutsu`) | `original`, `partner` (cloud: each mode's own partner on fal) | temporal, clip |
- | `mixed-media` | Mixed Media | 5 looks on one clip (through `/api/mixed-media`) | `studio` | temporal, style |
- | `shorts` | Shorts restyle | 1 | `restyle` | temporal, style, clip |
+ | `mixed-media` | Fuobe Mixed Media (O9) | 7 looks on one clip, 3 s at 8 fps (through `/api/mixed-media`): 3 with a look LoRA, 4 on their words | `studio` (the Original frame by frame), `smooth` (its first frame, then Wan 2.2 Fun VACE), `words` (open: the per-frame model before O9), `partner-frames` (cloud: Nano Banana 2 per frame), `fast` (cloud: LTX-2.3 Reference Restyle) | temporal, style |
+ | `shorts` | Fuobe Shorts (O9) | 2: one segment from its first frame (`/api/generations`), and a 6 s session (`/api/shorts/sessions`) | `restyle` (Fuobe Shorts), `partner` (cloud: Gemini Omni Flash) | temporal, style, clip |
| `speak` | talking portraits | 1 portrait + voice | `infinitetalk`, `s2v` | lipsync, temporal, identity |
| `cinema` | Fuobe Cinema (O6) | 3 Director scenes (the prompt Cinema compiles), 4 camera moves as LTX-2.3's `camera_lora` (cloud), 2 films of 3 shots | `original`, `words` (no camera LoRA), `expansion` (fal's prompt expansion on), `wan` (Wan 2.2 A14B hosted), `partner` (Seedance 2.5); all but `original` cloud only | clip, temporal, continuity |
+| `marketing` | Fuobe Marketing Image, Fuobe Try-On, the AI Influencer sheet and Instadump (O10) | 7: a Standalone product shot (the product-shot graph on your GPU; hosted Qwen-Image-Edit in the cloud), an ad's picture, a poster without a product, a try-on, the builder's sheet (through `/api/influencer`), an Instadump photo from a selfie | `original`, `partner` (cloud: GPT Image 2.5, Nano Banana Pro, Ideogram 3.0, FASHN) | clip, aesthetic, style (the product), identity (try-on, Instadump) |
`soul.json`, `soul-cinema.json`, `soul-hex.json`, `dop.json` and `dop-mix.json` are **generated** from the research. They come from
`docs/research/higgsfield-image-studios.json` (the look ids) and
@@@ -198,11 -198,9 +199,11 @@@ scripts/eval/local
dop/start.png, dop/end.png # a start frame (a person on a bridge fits the prompts), an end frame for transitions
genjutsu/dance.mp4, character.png, style.png
genjutsu/street.mp4, object.png # street.mp4 at least 720 px on each side (Kling O3's edit, the cloud partner)
- mixed-media/clip.mp4
- shorts/clip.mp4, shorts/frame0.png
+ mixed-media/clip.mp4 # 4–10 s
+ shorts/clip.mp4, shorts/frame0.png # clip.mp4 at least 6 s (the session case); frame0.png its first frame in the new look
speak/portrait.png, speak/voice.wav
+ marketing/product.png, person.png # a product photo on a plain background; a full-body photo of a consenting person
+ marketing/garment.png, selfie.jpg # a garment on its own or flat-lay; a consenting person's selfie
```
**Training needs consent.** `soul-id.json` ships with `"consent": false`, so a character's training
diff --cc scripts/gen-cloud-models.py
index 627cc805,df3e9b9b..df4ba70f
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@@ -72,7 -72,7 +72,7 @@@ M = [
def model(id, name, vendor, family, kind, tagline, routes, badges=None, pricing=None, defaults=None, options=None, fixed=None, hidden=False,
sliders=None, controls=None, api_defaults=None, formats=None, ranged_durations=False, fit_values=False, fps_targets=None, upscale_tiers=None,
- frame_step=None, original=False, sizes=None, keep_shape=False):
- frame_step=None, original=False, sizes=None, licence=None):
++ frame_step=None, original=False, sizes=None, keep_shape=False, licence=None):
"""sliders / controls: [(field, label)] read from each route's research inputs (dotted = nested field):
numeric fields with minimum/maximum become sliders, enums become composer controls; both travel as params.extra.
fixed: fields always sent. api_defaults: fields sent unless the request sets them (FieldMap.defaults).
@@@ -88,17 -88,14 +88,18 @@@
original: a Fuobe Original's cloud half (written to ORIGINAL_CLOUD; models.ts joins it to the ComfyUI routes).
sizes: {tier: {aspect: [w, h]}}: exact sizes per resolution tier (Fuobe Soul's table): FieldMap.size.table, sent
as width / height fields or as one {width, height} object field (fal's image_size); the tiers become the resolutions.
+ keep_shape: an edit model that also offers "auto" (keep image 1's shape and size): a route whose size field may be
+ left out for that (fal's nullable image_size) lists the shapes it takes (EnumField.accepts), so "auto" is left out
+ and the API follows the input image; a route whose own default matches the input (Replicate's match_input_image)
+ leaves it out the same way.
+ licence: the open weights' licence (ModelLicence) when no hosted LoRA endpoint the model runs on records it.
A route's options dict may also set max_images (FieldMap.maxImages), note, loraEndpoint (the same model with LoRAs:
FieldMap.loras comes from its research record) and pin (a Replicate model run by version: the research's version)."""
M.append(dict(id=id, name=name, vendor=vendor, family=family, kind=kind, tagline=tagline, routes=routes,
badges=badges or [], pricing=pricing, defaults=defaults or {}, options=options or {}, fixed=fixed or {}, hidden=hidden,
sliders=sliders or [], controls=controls or [], api_defaults=api_defaults or {}, formats=formats or {},
ranged_durations=ranged_durations, fit_values=fit_values, fps_targets=fps_targets or [], upscale_tiers=upscale_tiers or [],
- frame_step=frame_step, original=original, sizes=sizes, keep_shape=keep_shape))
- frame_step=frame_step, original=original, sizes=sizes, licence=licence))
++ frame_step=frame_step, original=original, sizes=sizes, keep_shape=keep_shape, licence=licence))
# ----- Image
diff --cc scripts/gen-lora-library.py
index 3088300b,f8ecf32e..62ca67a3
--- a/scripts/gen-lora-library.py
+++ b/scripts/gen-lora-library.py
@@@ -2,8 -2,8 +2,9 @@@
"""
Generate src/lib/catalog/lora-library.generated.ts: every LoRA the Fuobe Originals use, with its pinned
download, unique local file name and a licence snapshot, plus the motion / effect preset → LoRA map.
-Source: docs/research/fuobe-originals-recipes-5.json (loraLibrary, presets, motionsEffects, and Mixed Media's looks:
+Source: docs/research/fuobe-originals-recipes-5.json (loraLibrary, presets, motionsEffects, adapterLoras: the LoRAs an
- Original's recipe always loads, such as Fuobe Try-On's try-on LoRA).
++Original's recipe always loads, such as Fuobe Try-On's try-on LoRA, and Mixed Media's looks:
+ studios[mixed-media].original.looks).
The LoRA files are never committed: src/server/loras.ts downloads them (pinned civitai versions,
Hugging Face files) into ComfyUI's loras folder, or mirrors them for the cloud engine.
@@@ -188,13 -191,20 +192,27 @@@ for m in DATA["motionsEffects"]
row["notes"] = m["notes"]
motions.append(row)
+# Adapters: a LoRA an Original's recipe always loads (Fuobe Try-On's try-on LoRA, build plan O10). Its licence is said
+# like any other's, and Settings → Models & licences has its switch.
+for raw in DATA.get("adapterLoras") or []:
+ e = add(entry(raw, raw["key"], "adapter", checked=raw.get("checked")))
+ if not (e["licence"]["commercial"] and e["licence"]["hostedOk"]):
+ notes.append(f"adapter {e['key']} ({', '.join(raw.get('usedBy') or [])}): commercial={e['licence']['commercial']} hostedOk={e['licence']['hostedOk']}")
+
+ mixed = {}
+ for preset, ls in MIXED.items():
+ if not re.match(r"^mixed-[a-z0-9-]+$", preset):
+ errors.append(f"mixed-media look {preset!r} is not a Mixed Media preset id")
+ for l in ls:
+ e = next((x for x in library if x["key"] == l["key"]), None)
+ if not e:
+ errors.append(f"mixed-media look {preset}: no LoRA {l['key']!r} in loraLibrary")
+ elif e["base"] != "z-image-turbo":
+ errors.append(f"mixed-media look {preset}: {l['key']} is a {e['base']} LoRA, not Z-Image Turbo")
+ if not (isinstance(l.get("strength"), (int, float)) and 0 < l["strength"] <= 2):
+ errors.append(f"mixed-media look {preset}: strength {l.get('strength')!r} out of range")
+ mixed[preset] = [{"key": l["key"], "strength": l["strength"]} for l in ls]
+
keys = [e["key"] for e in library]
dup = sorted({k for k in keys if keys.count(k) > 1})
if dup:
@@@ -211,10 -221,12 +229,12 @@@ ts =
'import type { LoraEntry, MotionEffectLoras } from "./loras";\n\n'
f"/** When the LoRA research (licences, civitai permissions, pinned versions) was read. */\n"
f"export const LORA_LIBRARY_AS_OF = {json.dumps(AS_OF)};\n\n"
- "/** Every LoRA the Originals use: Soul looks (group \"look\") and motion / effect LoRAs, one entry per local file. */\n"
+ "/** Every LoRA the Originals use: Soul looks (group \"look\"), motion / effect LoRAs and the adapters a recipe always loads, one entry per local file. */\n"
f"export const LORA_LIBRARY: LoraEntry[] = {json.dumps(library, indent=2, ensure_ascii=False)};\n\n"
"/** Motion and effect presets (Higgsfield's generic names) → their LoRA keys in LORA_LIBRARY, with the research's status. */\n"
- f"export const MOTION_EFFECT_LORAS: MotionEffectLoras[] = {json.dumps(motions, indent=2, ensure_ascii=False)};\n"
+ f"export const MOTION_EFFECT_LORAS: MotionEffectLoras[] = {json.dumps(motions, indent=2, ensure_ascii=False)};\n\n"
+ "/** Fuobe Mixed Media's looks (research studios[mixed-media].original.looks): preset id → the LORA_LIBRARY keys its frames are drawn with. */\n"
+ f"export const MIXED_MEDIA_LOOK_LORAS: Record<string, {{ key: string; strength: number }}[]> = {json.dumps(mixed, indent=2, ensure_ascii=False)};\n"
)
(ROOT / "src/lib/catalog/lora-library.generated.ts").write_text(ts, encoding="utf-8")
- print(f"wrote {len(library)} LoRAs ({sum(1 for e in library if e['group'] == 'look')} looks) and {len(motions)} motion / effect rows")
+ print(f"wrote {len(library)} LoRAs ({sum(1 for e in library if e['group'] == 'look')} looks), {len(motions)} motion / effect rows and {len(mixed)} Mixed Media looks")
diff --cc src/lib/catalog/models.ts
index 3e78c2e4,be0fdfbf..83ebb8f4
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@@ -1693,39 -1686,37 +1693,70 @@@ const originals: ModelDef[] =
tagline: "The person in your clip becomes your character · MiniMax H3 free on your GPU (48 GB+ advised), or hosted on fal",
options: { seed: true, resolutions: ["480p", "768p"], maxImages: 2 },
}),
+ // Marketing Studio Image and Fashion Factory's try-on (O10): Higgsfield's GPT Image 2.5 templates and Nano Banana outfit
+ // steps rebuilt on Apache-2.0 open weights (docs/research/fuobe-originals-recipes-5.json studios[marketing]).
+ {
+ ...original({
+ id: "fuobe-marketing-image",
+ open: [
+ // A Standalone product shot (params.extra.productShot, one product photo) runs product-shot-qwen-edit-2509 instead:
+ // cut out with BiRefNet, put on white, relit into the scene by the White_to_Scene LoRA.
+ comfy("edit", "qwen-image-edit-2511-multi", "Qwen-Image-Edit 2511 with up to 3 references (product, person, setting) and the template's prompt"),
+ comfy("t2i", "qwen-image-2512-t2i", "Qwen-Image 2512 when there is no product photo"),
+ ],
+ tagline: "Product shots, ads, posters and listings from your product photo · Qwen-Image-Edit 2511 free on your GPU (24 GB), or hosted on fal",
+ options: { aspectRatios: IMG_AR, maxImages: 10, maxOutputs: 4, seed: true, negativePrompt: true },
+ }),
+ // TextEncodeQwenImageEditPlus takes three pictures, and the edit keeps the first one's shape.
+ engineOptions: { open: { maxImages: 3 } },
+ },
+ {
+ ...original({
+ id: "fuobe-tryon",
+ open: [comfy("edit", "tryon-flux2-klein-4b", "the try-on LoRA on FLUX.2 [klein] 4B; the old outfit greyed out first (ClothesSegment)")],
+ tagline: "Puts the garment in image 2 (a bottom in image 3) on the person in image 1 · FLUX.2 [klein] 4B + try-on LoRA, free on your GPU (10 GB), or hosted on fal",
+ options: {
+ maxImages: 3,
+ seed: true,
+ promptOptional: true,
+ defaultPrompt: TRYON_PROMPT,
+ imageLabels: ["person photo", "garment (a top, dress or whole outfit)", "bottom (optional)"],
+ requires: { images: 2, msg: "Add a photo of the person, then the garment" },
+ ...(TRYON_LORA && { loras: [loraRef(TRYON_LORA)] }),
+ },
+ }),
+ },
+ // Fuobe Mixed Media (O9): Higgsfield's Mixed Media rebuilt on Z-Image Turbo + its Fun ControlNet, every frame drawn
+ // again in the look (its LoRA from the research's looks map) at one seed. On your GPU the whole selection is one
+ // per-frame job (v2v); in the cloud src/lib/catalog/mixed-media.ts fans the frame route out over every frame and puts
+ // them back together. "edit" is one frame in the look on both engines: the preview, Smooth's first frame and DoP's
+ // Mixed Media effects (Smooth then carries that frame through the clip on Fuobe Shorts' Wan 2.2 Fun VACE pass).
+ {
+ ...original({
+ id: "fuobe-mixed-media",
+ open: [
+ comfy("v2v", "mixed-media-zimage-frames", "every frame on Z-Image Turbo + Fun Union ControlNet (canny) with the look's LoRA, one seed"),
+ comfy("edit", "z-image-turbo-i2i", "one frame in the look with its LoRA (Smooth's first frame, DoP's Mixed Media effects)"),
+ ],
+ tagline: "Every frame drawn again in the look, one seed · Z-Image Turbo + ControlNet free on your GPU (16 GB), or per frame on fal",
+ options: { seed: true, resolutions: ["1K", "2K"], maxImages: 1, maxOutputs: 1 },
+ }),
+ // The per-frame graph renders up to 1536 px on the long side (its manifest's limit).
+ engineOptions: { open: { resolutions: ["1K"] } },
+ },
+ // Fuobe Shorts (O9): Shorts Studio's Original, the open Shorts chain on both engines: each segment's first frame in the
+ // look (Qwen-Image-Edit 2511 with up to two reference images), then Wan 2.2 Fun VACE carries it through every frame by
+ // depth; the segments are joined and the clip's own sound put back (src/lib/catalog/shorts.ts plans the steps).
+ {
+ ...original({
+ id: "fuobe-shorts",
+ open: [comfy("v2v", "video-restyle-wan22-fun-vace", "the restyled first frame, then every frame with depth; 81 frames at 16 fps a segment")],
+ tagline: "Your footage in a new look, motion kept · Wan 2.2 Fun VACE free on your GPU (24 GB), or hosted on fal",
+ options: { seed: true, negativePrompt: true, resolutions: ["480p", "720p"], maxImages: 1 },
+ }),
+ // The GPU graph follows a restyled first frame it can't make itself (fal's route runs without one, on the words).
+ engineOptions: { open: { requires: { images: 1, msg: "Add the clip's first frame in the new look: Wan 2.2 Fun VACE carries it through every frame" } } },
+ },
];
/** Tools that run entirely in the browser; recorded in the library like any other result. */
diff --cc src/server/generations.ts
index c3287181,6aaa0119..46ff06be
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@@ -505,12 -509,11 +521,12 @@@ function prepare(original: GenerationRe
// Settings → Models & licences: a model (or the engine of an Original asked for) that is switched off is refused,
// naming the switch; an Original otherwise runs on an engine that is still on, with the routes that are on.
const found = getModel(worded.modelId);
- const allowed = found && offeredFor(found, worded.engine);
- const model = allowed && dualEngine(allowed) ? onEngine(allowed, engineFor(allowed, worded.engine)) : allowed;
+ const onSide = worded.engine ?? (found && appEngine(worded, found));
+ const allowed = found && offeredFor(found, onSide);
+ const model = allowed && dualEngine(allowed) ? onEngine(allowed, engineFor(allowed, onSide)) : allowed;
const lookup = (id: string) => (model && id === model.id ? model : getModel(id));
const req = model ? stripMotionPaths(applySketch(applyMentions(worded, model, listElements()).request, model).request, model) : worded;
- let plan = planGeneration(req, lookup, getPreset);
+ let plan = sizedMixedFrame(planGeneration(req, lookup, getPreset), req);
if (mode !== "both" && plan.model.engine !== mode) {
throw new Error(
mode === "open"
@@@ -535,21 -535,20 +551,27 @@@
const { route, demo } = chooseRoute(offeredRoutes(plan.model, routesFor(plan.model, plan.op)), req.inputs?.images?.length ?? 0, plan.loras, seconds);
// What the cloud run can carry: a LoRA whose licence doesn't allow hosting stays on the GPU, and an API
// takes at most so many (the plan's notes say which were left out). Open runs carry them all. Without a
- // civitai key a Soul look's civitai LoRA the run can't get is left out (and said), rather than failing at the
- // download: the look's words still carry it. Any other run (a motion, whose LoRA is the point) still stops there.
+ // civitai key a look's civitai LoRA the run can't get is left out (and said), rather than failing at the
+ // download: the look's words still carry it. Looks are Fuobe Soul's and Fuobe Mixed Media's (the studio's frames,
+ // Smooth's first frame, DoP's Mixed Media stills). Any other run (a motion, whose LoRA is the point) still stops there.
const asked = plan.loras;
+ const look = !!plan.soul || plan.model.id === MIXED_ORIGINAL;
const reachable =
- demo || !plan.soul ? { loras: asked, notes: [] } : withoutUnreachableCivitai(asked, route.provider === "comfyui" ? "comfyui" : route.provider === "replicate" ? "replicate" : "fal");
+ demo || !look ? { loras: asked, notes: [] } : withoutUnreachableCivitai(asked, route.provider === "comfyui" ? "comfyui" : route.provider === "replicate" ? "replicate" : "fal");
const fitted = fitLoras(reachable.loras, route);
+ // A LoRA the recipe can't run without that this route leaves out for any reason (its cap, a GPU-only licence, no
+ // cloud path): the model can't run here, rather than running without it.
+ const lost = demo ? undefined : plan.model.options.loras?.find((l) => asked.some((a) => a.file === l.file) && !fitted.loras.some((k) => k.file === l.file));
+ if (lost) {
+ const why = [...reachable.notes, ...fitted.notes].join("; ");
+ throw new Error(`${plan.model.name} runs with the LoRA “${loraName(lost)}”, which this run leaves out${why ? ` (${why})` : ""}. Pick another model or engine`);
+ }
- // A Soul look's triggers lead the prompt: a LoRA left out takes its trigger with it.
- const prompt = plan.soul ? promptWithLoras(plan.prompt, plan.soul.triggers, fitted.loras) : plan.prompt;
+ // A look's triggers lead the prompt: a LoRA left out takes its trigger with it.
+ const prompt = plan.soul
+ ? promptWithLoras(plan.prompt, plan.soul.triggers, fitted.loras)
+ : look
+ ? withoutTriggers(plan.prompt, asked.filter((l) => !reachable.loras.includes(l)), reachable.loras)
+ : plan.prompt;
plan = { ...plan, prompt, loras: fitted.loras };
const notes = [...(plan.notes ?? []), ...access.notes, ...reachable.notes, ...fitted.notes];
// A frame-count API that can't make the length asked (Replicate's Wan 2.2 fast: 81–121 frames) says what it makes.