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.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Merge QMA camera angles: 96 views in Angles, Cinema, the turnaround and the Canvas
Adarsh224d3f6ae08c
diff --cc docs/research/new-models-10.jsonindex fe392faa,f4cd3e4e..be76f864--- a/docs/research/new-models-10.json+++ b/docs/research/new-models-10.json@@@ -1109,7 -1118,8 +1118,8 @@@"released": "2026-09-14 / 2026-10-09","url": "https://huggingface.co/Qwen/Qwen-Image-2.1","inFuobe": true,- "confirmed": true+ "confirmed": true,- "hostedNote": "Read 2026-11-02 (qma-angles): fal serves fal-ai/qwen-image-2.1 (text to image, $0.02 per megapixel) and fal-ai/qwen-image-2.1/edit (1-10 image_urls, guidance_scale 1-10, prompt_expander, $0.0367 per megapixel), neither in fal's model search yet and neither with a LoRA input (no /lora twin: 404). Replicate has no Qwen-Image 2.1 (qwen/qwen-image-2 is the older API model). Comfy-Org/Qwen-Image-2.1 @ aacf31a6: DiT bf16 14.23 GB / int8_convrot 7.26 GB, Qwen3-VL 8B encoder bf16 17.53 GB / int8_convrot 9.35 GB / w4a8 6.31 GB, VAE bf16 0.68 GB; Fuobe's graphs load the int8 files (about 20 GB)."++ "hostedNote": "Read 2026-11-02: fal serves fal-ai/qwen-image-2.1 (text to image, $0.02 per megapixel) and fal-ai/qwen-image-2.1/edit (1-10 image_urls, guidance_scale 1-10, prompt_expander, $0.0367 per megapixel), neither in fal's model search yet and neither with a LoRA input (no /lora twin: 404). Replicate has no Qwen-Image 2.1 (qwen/qwen-image-2 is the older API model). Comfy-Org/Qwen-Image-2.1 @ aacf31a6: DiT bf16 14.23 GB / int8_convrot 7.26 GB, Qwen3-VL 8B encoder bf16 17.53 GB / int8_convrot 9.35 GB / w4a8 6.31 GB, VAE bf16 0.68 GB; Fuobe's graphs load the int8 files (about 20 GB)."},{"name": "FIBO 2 (Dev, Edit Turbo)",diff --cc docs/research/new-models-10.mdindex 5f8bc82f,382516d5..af438bf1--- a/docs/research/new-models-10.md+++ b/docs/research/new-models-10.md@@@ -700,5 -700,10 +700,10 @@@ Models (primary pages- Freefield: https://github.com/neuregex/freefield (via https://comfyui-wiki.com/en/news/2026-10-27-freefield)- Competitors: https://www.androidsage.com/2026/10/23/capcut-19-9-0-apk/ , https://letsdatascience.com/news/google-rolls-out-nano-banana-21-image-model-c6ac3b89 , https://globenewswire.com/news-release/2026/10/27/3389469/0/en/vidu-powers-china-s-first-ai-feature-length-film-demonstrating-its-full-cinematic-potential.html-Fuobe (read only, `claude/fuobe-parity-4`)+Fuobe (read only)- `src/lib/catalog/models.ts`, `src/lib/catalog/cloud-models.generated.ts`, `src/lib/studios.ts`, `src/lib/layout-prompt.ts`, `src/lib/catalog/keyframes.ts`, `src/lib/catalog/training.ts`, `workflows/comfyui/manifest.json`, `docs/FEATURES.md`, `docs/HANDOFF.md`, `docs/handoff/queue.json`, `docs/research/README.md`, `new-models-7.md`, `comfyui-oss.md`, `comfyui-oss-4.md`, `paid-model-apis*.json`.+-## Correction (qma-angles, 2026-11-02)++## Correction (2026-11-02)++ - **fal now serves Qwen-Image 2.1**: `fal-ai/qwen-image-2.1` (text to image, $0.02 per megapixel) and `fal-ai/qwen-image-2.1/edit` (1-10 references, $0.0367 per megapixel). Neither shows in fal's model search yet, and neither takes LoRA URLs (no `/lora` twin), so LoRA features on 2.1 (QMA, Next-Scene, the speed LoRAs) stay on the open engine. A plain cloud Qwen-Image 2.1 model is now possible: a package of its own (research record, `gen-cloud-models.py`). Replicate still has no Qwen-Image 2.1.+ - The QMA camera-angles LoRA (gribbliest @ 13007eec, 318,820,224 bytes, Apache-2.0 on its card, non-commercial through its base) is recorded in `new-models-10.json` and in `fuobe-originals-recipes-5.json` adapterLoras (`qwen21-qma-angles`).diff --cc scripts/comfy/library.spec.mjsindex 653a3c41,1de4cf6e..0cf3814d--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@@ -412,7 -402,9 +412,9 @@@ export const KNOWN_MODELS ='Qwen-Image-2.1-Lightning-4steps.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/6b0a1176327c01522a44276c5da67331a025b6fc/pytorch_lora_weights.safetensors' },'p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/PrunaAI/P-Q-Image-2.1-Comfy/resolve/aa7dcecb1767e220e31a55706e33fd057c9a3fca/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors' },'Qwen-Image-2.1-Next-Scene-step2500.safetensors': { folder: 'loras', url: 'https://huggingface.co/akhaliq/Qwen-Image-2.1-Next-Scene-LoRA/resolve/67ce88cd413fe177758af5d91e25eb3a334aa06f/next_scene_step2500.safetensors' },- // qma-angles: gribbliest's QMA camera-angles LoRA for Qwen-Image 2.1 (96 views), pinned to 13007eec.++ // The QMA camera-angles LoRA by gribbliest for Qwen-Image 2.1 (96 views), pinned to 13007eec.+ 'qwen-image-2.1-qma-camera-angles.safetensors': { folder: 'loras', url: 'https://huggingface.co/gribbliest/qwen-image-2.1-qma-camera-angles/resolve/13007eec2648c09529e930164c2ccc9c8c12428c/qwen-image-2.1-qma-camera-angles.safetensors' },- // Zen Image Edit's fusion adapter (nm10-qwen21-fast): a GitHub release asset of recoilme/zen-image-edit-comfyui (release v2,+ // Zen Image Edit's fusion adapter: a GitHub release asset of recoilme/zen-image-edit-comfyui (release v2,// sha256 and size in model-pins.json), kept in models/text_encoders; the loader is given its full path at run time.'adapter_v12.safetensors': { folder: 'text_encoders', url: 'https://github.com/recoilme/zen-image-edit-comfyui/releases/download/v2/adapter_v12.safetensors' },'texture_fix_vae_for_qwen_image_2.1_bf16.safetensors': { folder: 'vae', url: 'https://huggingface.co/madebyollin/texture-fix-vae-for-qwen-image-2.1/resolve/9a10df811f183323e4e94d255c18add1924ce340/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors' },@@@ -2923,6 -2872,28 +2925,28 @@@ export const SPEC ='Trained at 512 px on Sintel and Tears of Steel frame pairs: strongest on filmic scenes and establishing shots, static portraits are out of scope (card). ' +'storyboard-qwen-edit-2509-next-scene stays the classic choice on your GPU, and the cloud keeps Qwen-Image-Edit 2509 + its next-scene LoRA on fal (Qwen-Image 2.1 is not hosted).' + QWEN21_CLEAN_NOTE,},- // ---- qma-angles: QMA camera angles (96 views) on Qwen-Image 2.1 ------------------------------------------------------++ // ---- QMA camera angles (96 views) on Qwen-Image 2.1 ------------------------------------------------------------------+ {+ id: 'qwen-image-21-qma',+ title: 'QMA Camera Angles (Qwen-Image 2.1 + the QMA LoRA, 96 views)',+ capability: 'edit',+ handBuilt: 'hand-built/qwen-image-21-qma.json',+ bindings: {+ prompt: [b('30', 'prompt')], image: [b('10', 'image')], seed: [b('32', 'seed')], steps: [b('32', 'steps')], cfg: [b('32', 'cfg')],+ megapixels: [b('20', 'megapixels')], loraStrength: [b('60', 'strength_model')], vae: [b('3', 'vae_name')],+ },+ outputs: [{ node: '90', kind: 'image' }],+ limits: { maxWidth: 2048, maxHeight: 2048 },+ vramGb: 20,+ optionalModels: [QWEN21_CLEAN_VAE],+ license: `${QWEN21_LICENCE}; QMA Camera Angles LoRA by gribbliest @ 13007eec: Apache-2.0 on its card (no LICENSE file), an adapter of Qwen-Image 2.1, so non-commercial through its base${QWEN21_CLEAN_LICENCE}`,+ notes:+ 'Re-shoots a picture from one of 96 cameras: the qwen-image-21-edit graph with gribbliest/qwen-image-2.1-qma-camera-angles @ 13007eec (rank 64, 319 MB) at strength 1.0 and the card\'s settings: ' ++ 'the source scaled to about 1 MP (ImageScaleToTotalPixels, lanczos, 32 px steps; megapixels 0.6 = the card\'s 768 px preview), one reference on TextEncodeQwenImage21 (resolution 0, its latent), ' ++ 'QwenImage21Cache, KSampler 30 steps, CFG 3 (the card; the encoder\'s empty negative), euler, simple. ' ++ 'Prompt: "<qma> {azimuth} {elevation} {distance}" then any edit words; Fuobe writes it from the run\'s camera (horizontal_angle / vertical_angle / zoom, snapped to the nearest view). ' ++ 'Directions are the original camera\'s: "right side view" = the camera swings 90° to its own right. Open engine only: fal\'s Qwen-Image 2.1 takes no LoRAs.' + QWEN21_CLEAN_NOTE,+ },{id: 'qwen-image-21-t2i-small',title: 'Qwen-Image 2.1 Text to Image on a 16 GB GPU (Zen Image Edit: Qwen3.5-0.8B encoder + fusion adapter)',diff --cc src/components/cinema/soul-builders.tsxindex 4c269a68,f23fb3ff..235217ac--- a/src/components/cinema/soul-builders.tsx+++ b/src/components/cinema/soul-builders.tsx@@@ -11,7 -12,7 +12,7 @@@ import { Switch } from "@/components/uiimport { Textarea } from "@/components/ui/textarea";import { useSoulFinish } from "@/components/studio/soul-finish";import { TurnaroundButton } from "@/components/turnaround/turnaround-dialog";--import { useSaveElement, useStatus } from "@/lib/api";++import { useLikelyVisitor, useSaveElement, useStatus } from "@/lib/api";import { getModel } from "@/lib/catalog";import {CAST_LOOK,@@@ -392,6 -394,9 +394,11 @@@ function SoulLocation({ projectId, foldconst [prompt, setPrompt] = useState("");const [batch, setBatch] = useState(2);const [picked, setPicked] = useState<string[]>([]);- // Other views on your GPU: the Multiple-Angles default, or QMA · 96 views (qma-angles), when this install offers it.++ // Other views on your GPU: the Multiple-Angles default, or QMA · 96 views, when this install offers it.+ const [qma, setQma] = useState(false);+ const qmaOffered = engine === "open" && !!getModel(QMA_MODEL);++ // The hint about your GPU is for the studio's own install: guests and accounts run in the cloud.++ const visitor = useLikelyVisitor();const { generate, results, setIds, current } = useBuilderRun(projectId);const chosen = picked.map(current);const input = { engine, mode: "image" as const, action: "location" as const, prompt, settings, batch };@@@ -459,6 -464,13 +466,13 @@@{chosen.length > 0 && (<div className="flex flex-wrap items-center gap-1.5"><span className="text-[12px] text-muted-foreground">Show the same location from another view:</span>+ {qmaOffered && (+ <label className="mr-1 inline-flex items-center gap-1.5 text-[12px] text-muted-foreground">+ <Switch checked={qma} onCheckedChange={setQma} aria-label="Use QMA · 96 views, on your GPU" />+ QMA · 96 views+ </label>+ )}- {engine === "cloud" && <span className="mr-1 text-[11.5px] text-muted-foreground">(QMA · 96 views runs on your GPU)</span>}++ {engine === "cloud" && !visitor && <span className="mr-1 text-[11.5px] text-muted-foreground">(QMA · 96 views runs on your GPU)</span>}{LOCATION_VIEWS.map((v) => (<button key={v.id} type="button" onClick={() => run({ view: v.id, url: chosen[0] })} className="h-7 rounded-full bg-secondary px-2.5 text-[12px] font-medium hover:bg-accent">{v.name}diff --cc src/components/studio/orbit-pad.tsxindex 00000000,eb74e8ac..1cda2085mode 000000,100644..100644--- a/src/components/studio/orbit-pad.tsx+++ b/src/components/studio/orbit-pad.tsx@@@ -1,0 -1,128 +1,128 @@@+ "use client";++ import { useRef, useState, type KeyboardEvent, type PointerEvent } from "react";+ import type { PresetOption } from "@/lib/catalog/types";+ import { orbitDrag, qmaLabel, qmaPose, qmaView, QMA_ELEVATIONS, QMA_PARAMS } from "@/lib/qma";+ import type { ScenePose } from "@/lib/scene3d";+ import { cn } from "@/lib/utils";++ /**- * The Angles app's orbit pad (qma-angles): drag round the ring to swing the camera, up and down to raise or lower it. It++ * The Angles app's orbit pad: drag round the ring to swing the camera, up and down to raise or lower it. It+ * snaps to the nearest of the app's views (QMA's 96: 8 sides, 4 heights, 3 distances) and sets the same choices as the chips+ * beside it, so both always agree.+ */++ type Keys = { angle: PresetOption; height: PresetOption; distance: PresetOption };++ /** The app's three camera options, when it has them (choices that set horizontal_angle, vertical_angle and zoom). */+ export function orbitOptions(options: PresetOption[] | undefined): Keys | undefined {+ const by = (param: string) => options?.find((o) => o.choices.length > 0 && o.choices.every((c) => typeof c.extra?.[param] === "number"));+ const angle = by(QMA_PARAMS.horizontal);+ const height = by(QMA_PARAMS.vertical);+ const distance = by(QMA_PARAMS.zoom);+ return angle && height && distance ? { angle, height, distance } : undefined;+ }++ const chosen = (o: PresetOption, values: Record<string, string>) => o.choices.find((c) => c.value === (values[o.key] ?? o.default ?? o.choices[0]?.value)) ?? o.choices[0];++ /** The choice of an option whose setting is nearest a value. */+ function nearest(o: PresetOption, param: string, v: number): string {+ return o.choices.reduce((best, c) => (Math.abs(Number(c.extra?.[param]) - v) < Math.abs(Number(best.extra?.[param]) - v) ? c : best)).value;+ }++ export function OrbitPad({ options, values, onChange }: { options: Keys; values: Record<string, string>; onChange: (next: Record<string, string>) => void }) {+ const pose: ScenePose = {+ horizontal: Number(chosen(options.angle, values).extra?.[QMA_PARAMS.horizontal] ?? 0),+ vertical: Number(chosen(options.height, values).extra?.[QMA_PARAMS.vertical] ?? 0),+ zoom: Number(chosen(options.distance, values).extra?.[QMA_PARAMS.zoom] ?? 5),+ };+ const view = qmaView(pose);+ const drag = useRef<{ x: number; y: number; from: ScenePose; size: number } | null>(null);+ const [live, setLive] = useState<ScenePose | null>(null);++ const set = (p: ScenePose) => {+ const snapped = qmaPose(qmaView(p));+ // The ring wraps: 315° is as near 360° as 0° is far, so the angle compares on the circle.+ const h = snapped.horizontal;+ const angle = options.angle.choices.find((c) => Number(c.extra?.[QMA_PARAMS.horizontal]) % 360 === h)?.value ?? nearest(options.angle, QMA_PARAMS.horizontal, h);+ const next = { ...values, [options.angle.key]: angle, [options.height.key]: nearest(options.height, QMA_PARAMS.vertical, snapped.vertical), [options.distance.key]: nearest(options.distance, QMA_PARAMS.zoom, snapped.zoom) };+ if (Object.keys(next).some((k) => next[k] !== values[k])) onChange(next);+ };+ const down = (e: PointerEvent<HTMLDivElement>) => {+ e.currentTarget.setPointerCapture(e.pointerId);+ drag.current = { x: e.clientX, y: e.clientY, from: pose, size: e.currentTarget.getBoundingClientRect().width };+ setLive(pose);+ };+ const move = (e: PointerEvent<HTMLDivElement>) => {+ const d = drag.current;+ if (!d) return;+ const p = orbitDrag(d.from, e.clientX - d.x, e.clientY - d.y, d.size);+ setLive(p);+ set(p);+ };+ const up = () => {+ drag.current = null;+ setLive(null);+ };+ const key = (e: KeyboardEvent<HTMLDivElement>) => {+ const step: Record<string, Partial<ScenePose>> = {+ ArrowRight: { horizontal: pose.horizontal + 45 },+ ArrowLeft: { horizontal: pose.horizontal - 45 },+ ArrowUp: { vertical: pose.vertical + 30 },+ ArrowDown: { vertical: pose.vertical - 30 },+ };+ if (!step[e.key]) return;+ e.preventDefault();+ set({ ...pose, ...step[e.key] });+ };++ // Seen from above: the subject in the middle, the photo's camera at the bottom, swinging right goes round to the right.+ const shown = live ?? qmaPose(view);+ const rad = (shown.horizontal * Math.PI) / 180;+ const r = 34;+ const cx = 44 + Math.sin(rad) * r;+ const cy = 44 + Math.cos(rad) * r;+ const level = QMA_ELEVATIONS.indexOf(view.elevation);+ const label = qmaLabel(view);+ return (+ <div className="flex items-center gap-3">+ <div+ role="slider"+ tabIndex={0}+ aria-label="Camera orbit: drag to swing the camera round and up or down; arrow keys move it one view"+ aria-valuemin={0}+ aria-valuemax={315}+ aria-valuenow={qmaPose(view).horizontal}+ aria-valuetext={label}+ onPointerDown={down}+ onPointerMove={move}+ onPointerUp={up}+ onPointerCancel={up}+ onKeyDown={key}+ className="relative size-[88px] shrink-0 cursor-grab touch-none rounded-full border bg-muted/50 outline-none select-none focus-visible:ring-2 focus-visible:ring-ring active:cursor-grabbing"+ >+ <svg viewBox="0 0 88 88" className="size-full" aria-hidden>+ <circle cx="44" cy="44" r={r} className="fill-none stroke-border" strokeDasharray="2 3" />+ {Array.from({ length: 8 }, (_, i) => {+ const a = (i * 45 * Math.PI) / 180;+ return <circle key={i} cx={44 + Math.sin(a) * r} cy={44 + Math.cos(a) * r} r="1.6" className="fill-muted-foreground/50" />;+ })}+ <rect x="38" y="38" width="12" height="12" rx="3" className="fill-foreground/70" />+ <line x1={cx} y1={cy} x2="44" y2="44" className="stroke-primary" strokeWidth="1.2" />+ <circle cx={cx} cy={cy} r="6" className="fill-primary" />+ </svg>+ </div>+ <div className="flex items-center gap-2">+ <div className="flex h-[60px] flex-col-reverse justify-between" aria-hidden>+ {QMA_ELEVATIONS.map((e, i) => (+ <span key={e} className={cn("h-1.5 w-4 rounded-full", i === level ? "bg-primary" : "bg-muted-foreground/25")} />+ ))}+ </div>+ <p className="max-w-[9rem] text-[12px] leading-snug text-muted-foreground" aria-live="polite">+ <span className="block font-medium text-foreground">{label.split(" · ")[0]}</span>+ {label.split(" · ").slice(1).join(" · ")}+ </p>+ </div>+ </div>+ );+ }diff --cc src/lib/catalog/apps.tsindex 508c18dc,4c7df384..83d4bb3b--- a/src/lib/catalog/apps.ts+++ b/src/lib/catalog/apps.ts@@@ -320,6 -323,9 +323,9 @@@ export const APPS: Preset[] =loras: [ANGLES_2511_LORA],promptTemplate: "<sks> {option:angle} {option:height} {option:distance}. {prompt}",},- // QMA · 96 views (qma-angles): Qwen-Image 2.1 with the QMA LoRA, on your GPU only (fal's Qwen-Image 2.1 takes no LoRAs).++ // QMA · 96 views: Qwen-Image 2.1 with the QMA LoRA, on your GPU only (fal's Qwen-Image 2.1 takes no LoRAs).+ // The choices' angles (horizontal_angle, vertical_angle, zoom) become its words in the plan, the note after them.+ openAlso: [{ modelId: QMA_MODEL, op: "edit", promptTemplate: "{prompt}" }],}),app({name: "Fuobe Angles",diff --cc src/lib/catalog/canvas.tsindex 28deb887,2e216020..90b22d9b--- a/src/lib/catalog/canvas.ts+++ b/src/lib/catalog/canvas.ts@@@ -1912,9 -1921,11 +1921,11 @@@ export const CANVAS_TEMPLATES: CanvasTebuild: tpl([{ id: "product", type: "image-input", x: 0, y: ROW, data: { label: "Product photo" } },- { id: "front", type: "model", x: COL, y: 0, data: { mediaKind: "image", label: "Front ¾ angle", op: "edit", prompt: "The same product from a three-quarter front angle on a seamless studio background, soft key light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },- { id: "side", type: "model", x: COL, y: ROW, data: { mediaKind: "image", label: "Side profile", op: "edit", prompt: "The same product in a clean side profile on a seamless studio background, rim light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },- { id: "top", type: "model", x: COL, y: ROW * 2, data: { mediaKind: "image", label: "Top-down", op: "edit", prompt: "The same product shot top-down as a flat lay on a seamless studio background, even light" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },- // On your GPU the three angles are QMA · 96 views (qma-angles): the camera itself turns (its pose in params.extra) and++ // On your GPU the three angles are QMA · 96 views: the camera itself turns (its pose in params.extra) and+ // the words follow its camera words, so a board switched to the cloud keeps each angle. Without QMA offered: Qwen-Image 2.1.+ { id: "front", type: "model", x: COL, y: 0, data: { mediaKind: "image", label: "Front ¾ angle", op: "edit", prompt: "The same product from a three-quarter front angle on a seamless studio background, soft key light, sharp details" }, models: { cloud: "nano-banana-pro", open: QMA_MODEL, fallback: { open: "oss-qwen-image-21" } }, on: { open: { params: { extra: { horizontal_angle: 45, vertical_angle: 30, zoom: 5 } } } } },+ { id: "side", type: "model", x: COL, y: ROW, data: { mediaKind: "image", label: "Side profile", op: "edit", prompt: "The same product in a clean side profile on a seamless studio background, rim light, sharp details" }, models: { cloud: "nano-banana-pro", open: QMA_MODEL, fallback: { open: "oss-qwen-image-21" } }, on: { open: { params: { extra: { horizontal_angle: 90, vertical_angle: 0, zoom: 5 } } } } },+ { id: "top", type: "model", x: COL, y: ROW * 2, data: { mediaKind: "image", label: "Top-down", op: "edit", prompt: "The same product shot top-down as a flat lay on a seamless studio background, even light" }, models: { cloud: "nano-banana-pro", open: QMA_MODEL, fallback: { open: "oss-qwen-image-21" } }, on: { open: { params: { extra: { horizontal_angle: 0, vertical_angle: 60, zoom: 5 } } } } },{ id: "video", type: "model", x: COL * 2, y: ROW - 40, data: { mediaKind: "video", label: "Ad clip", op: "ref2v", prompt: "A premium product commercial: the camera orbits the product from the reference angles, studio lighting, slow and smooth", params: { aspectRatio: "16:9", duration: 5 } }, models: { cloud: "seedance-2-5", open: "oss-wan-vace" } },{ id: "out", type: "output", x: COL * 3, y: ROW, data: { label: "Ad" } },],diff --cc src/lib/catalog/cinema.tsindex 6a7c8c7f,2b075b0c..9edabf64--- a/src/lib/catalog/cinema.ts+++ b/src/lib/catalog/cinema.ts@@@ -1756,6 -1757,19 +1757,19 @@@ function planLocationView(input: Cinemainputs,params: { numOutputs: 1, extra: { horizontal_angle: view.pose.horizontal, vertical_angle: view.pose.vertical, zoom: view.pose.zoom } },};+ } else if (input.modelId === QMA_MODEL && getModel(QMA_MODEL)) {- // QMA · 96 views (qma-angles): Qwen-Image 2.1 with the QMA LoRA moves the camera to the view's pose (its nearest of 96).++ // QMA · 96 views: Qwen-Image 2.1 with the QMA LoRA moves the camera to the view's pose (its nearest of 96).+ model = getModel(QMA_MODEL)!;+ request = {+ feature: "cinema-location",+ modelId: model.id,+ op: "edit",+ prompt: withBrief(input.brief, `${LOCATION_KEEP}${tidy(input.prompt) ? `. ${tidy(input.prompt)}` : ""}.`),+ inputs,+ params: { numOutputs: 1, extra: { horizontal_angle: view.pose.horizontal, vertical_angle: view.pose.vertical, zoom: view.pose.zoom } },+ };+ notes.push(`${model.name} moves the camera for the ${view.name.toLowerCase()} view (${qmaLabel(qmaView(view.pose)).toLowerCase()}), on your GPU`);+ return finish(model, [{ key: "main", request }], notes, src ? undefined : "Pick the location image to re-angle");} else {model = editModel("open");const loras = [ANGLES_2511_LORA];diff --cc src/lib/catalog/models.tsindex d42c896d,40b6d50f..0a571e49--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@@ -1197,33 -1199,34 +1200,61 @@@ const open: ModelDef[] =options: { seed: true, maxImages: 2, controls: [QWEN21_DECODER], ...(NEXT_SCENE_21_LORA && { loras: [loraRef(NEXT_SCENE_21_LORA)] }) },hidden: true,}),- // QMA camera angles (qma-angles): Qwen-Image 2.1 with gribbliest's QMA LoRA re-shoots a picture from one of 96 cameras. The+ // The Relight tool's Generate lighting (src/components/relight): the photo plus the words written from the placed+ // lights, a picture lit only by those lights that the page blends in. Image 2 is the light-guide picture, when sent.+ o({+ id: "oss-qwen-image-21-relight",+ // Its runs show this name in the Library: plain, as the tool says it (the engine is in the tagline and the licence).+ name: "Relight",+ vendor: "Alibaba Qwen",+ family: "qwen-image",+ kind: "image",+ tagline: "Relight with placed lights: Qwen-Image 2.1 with Viggle's 6-step speed LoRA · 24 GB GPU · non-commercial weights",+ routes: [{ ...comfy("edit", "qwen-image-21-relight", "6 steps, about 1 MP"), unsized: true }],+ options: { seed: true, maxImages: 2 },+ hidden: true,+ }),+ // Its scene read, once per photo: a depth map (Depth Anything 3) and the subject's matte (BiRefNet) for the page's+ // depth-true preview. A helper step: the Library leaves its runs out.+ o({+ id: "oss-relight-scene",+ name: "Relight scene read",+ vendor: "Open source",+ family: "birefnet",+ kind: "image",+ tagline: "Depth and subject cut-out for the Relight preview",+ routes: [comfy("bg-remove", "relight-scene-read")],+ options: { maxImages: 1 },+ hidden: true,+ }),++ // QMA camera angles: Qwen-Image 2.1 with gribbliest's QMA LoRA re-shoots a picture from one of 96 cameras. The+ // pose is the Angles app's own three settings (horizontal_angle, vertical_angle, zoom); the plan writes the LoRA's words+ // from it (promptFormat "qma", src/lib/qma.ts). Open engine only: fal's Qwen-Image 2.1 takes no LoRAs.+ o({+ id: QMA_MODEL,+ name: "QMA · 96 views",+ vendor: "Alibaba Qwen",+ family: "qwen-image",+ kind: "image",+ tagline: "Re-shoot a picture from any of 96 camera angles: 8 sides, 4 heights, 3 distances · on your GPU, 20 GB · non-commercial weights",+ badges: ["new"],+ routes: [{ ...comfy("edit", "qwen-image-21-qma", "QMA LoRA at 1.0, 30 steps, CFG 3"), unsized: true, maxImages: 1 }],+ options: {+ seed: true,+ maxImages: 1,+ promptFormat: "qma",+ promptOptional: true,+ promptPlaceholder: "Anything else to change (optional)",+ controls: [+ { param: QMA_PARAMS.horizontal, label: "Angle", values: QMA_AZIMUTHS.map((_, i) => i * 45), default: 45, labels: Object.fromEntries(QMA_AZIMUTHS.map((a, i) => [String(i * 45), QMA_AZIMUTH_LABELS[a]])) },+ { param: QMA_PARAMS.vertical, label: "Height", values: QMA_ELEVATIONS.map((e) => QMA_ELEVATION_DEGREES[e]), default: 0, labels: Object.fromEntries(QMA_ELEVATIONS.map((e) => [String(QMA_ELEVATION_DEGREES[e]), QMA_ELEVATION_LABELS[e]])) },+ { param: QMA_PARAMS.zoom, label: "Distance", values: QMA_DISTANCES.map((d) => QMA_DISTANCE_ZOOM[d]), default: 5, labels: Object.fromEntries(QMA_DISTANCES.map((d) => [String(QMA_DISTANCE_ZOOM[d]), QMA_DISTANCE_LABELS[d]])) },+ { param: "size", label: "Size", values: ["full", "preview"], default: "full", labels: { full: "Full · about 1 MP", preview: "Preview · 768 px, faster" }, sets: { full: { megapixels: 1 }, preview: { megapixels: 0.6 } } },+ QWEN21_DECODER,+ ],+ ...(QMA_LORA && { loras: [loraRef(QMA_LORA)] }),+ },+ }),o({id: "oss-qwen-next-scene",name: "Qwen-Image-Edit Next Scene",diff --cc src/lib/catalog/turnaround.tsindex 862e41b7,69c2dadb..658a9c85--- a/src/lib/catalog/turnaround.ts+++ b/src/lib/catalog/turnaround.ts@@@ -139,9 -160,24 +160,24 @@@ export const TURN_ROUTES: Record<TurnRoduration: 5,resolution: "768P",},- // Turnaround stills · 8 views (qma-angles): QMA · 96 views draws the person from all 8 sides at eye level, one batch of++ // Turnaround stills · 8 views: QMA · 96 views draws the person from all 8 sides at eye level, one batch of+ // pictures and no film. Your GPU only: fal's Qwen-Image 2.1 takes no LoRAs.+ stills: {+ engine: "open",+ modelId: QMA_MODEL,+ name: "Stills · 8 views",+ detail: "QMA · 96 views draws the character from all 8 sides at eye level: eight pictures, no video",+ durations: [],+ duration: 0,+ resolution: "",+ },};- export const ROUTES_ON: Record<Engine, TurnRoute[]> = { open: ["frames"], cloud: ["references", "keyframes", "camera"] };+ export const ROUTES_ON: Record<Engine, TurnRoute[]> = { open: ["frames", "stills"], cloud: ["references", "keyframes", "camera"] };++ /** How the missing sides are drawn on your GPU: the Angles app's Multiple-Angles route (the default), or QMA · 96 views. */+ export type TurnFill = "angles" | "qma";+ export const FILL_NAMES: Record<TurnFill, string> = { angles: "Multiple Angles", qma: "QMA · 96 views" };/** The Angles app's routes, which draw a missing side from the front view (on your GPU the Multiple-Angles LoRA's base). */export const FILL_MODELS: Record<Engine, string> = { cloud: "qwen-multiple-angles", open: "oss-qwen-edit" };@@@ -278,6 -314,8 +314,8 @@@ export interface TurnaroundInputroute?: TurnRoute;/** Draw the sides nobody has a picture of with the Angles app first (default on, except References with a sheet). */fill?: boolean;- /** What draws them on your GPU: the Angles app's route (default) or QMA · 96 views (qma-angles). */++ /** What draws them on your GPU: the Angles app's route (default) or QMA · 96 views. */+ fillWith?: TurnFill;/** The camera route's path (TURN_PATHS; any N7-5 preset id is taken). */path?: string;duration?: number;diff --cc src/lib/qma.tsindex 00000000,cfbfb022..169be5b7mode 000000,100644..100644--- a/src/lib/qma.ts+++ b/src/lib/qma.ts@@@ -1,0 -1,191 +1,191 @@@+ /**- * QMA camera angles (package qma-angles): gribbliest's Qwen-Image 2.1 edit LoRA "qwen-image-2.1-qma-camera-angles" @ 13007eec++ * QMA camera angles: gribbliest's Qwen-Image 2.1 edit LoRA "qwen-image-2.1-qma-camera-angles" @ 13007eec+ * (Apache-2.0 on its card, rank 64, 319 MB), which re-shoots a picture from one of 96 cameras. Its prompt is always+ * "<qma> {azimuth} {elevation} {distance}", optionally followed by more edit words; directions are the ORIGINAL CAMERA's, not+ * the subject's ("right side view" = the camera swings 90° to its own right round the subject). Card settings: LoRA 1.0,+ * 30 steps, CFG 3, euler / simple, about 1 MP (768 px for previews).+ *+ * Fuobe's camera pose is the one the Angles app, Cinema's 3D scene and its location views already speak (src/lib/scene3d.ts+ * ScenePose, the same numbers as Qwen Multiple Angles' horizontal_angle / vertical_angle / zoom): horizontal 0–360° (0 = where+ * the photo was taken, 90 = moved round to the camera's right), vertical −30…90° (below eye level up to straight down),+ * zoom 0 (wide) … 5 (as framed) … 10 (close-up). Here it snaps to the nearest of the 96 views and back.+ *+ * Pure: the planner writes the words (planGeneration, promptFormat "qma"), and the Angles app's orbit pad, Cinema,+ * the turnaround and the Canvas read the same tables in the browser.+ */+ import type { ScenePose } from "@/lib/scene3d";++ /** The model that runs it (src/lib/catalog/models.ts): Qwen-Image 2.1 with the QMA LoRA, on your GPU. */+ export const QMA_MODEL = "oss-qwen-image-21-qma";+ /** Its ComfyUI graph. */+ export const QMA_WORKFLOW = "qwen-image-21-qma";++ /** The LoRA's trigger: every prompt starts with it. */+ export const QMA_TRIGGER = "<qma>";++ /** The 8 azimuths, 45° apart, from the front going round to the camera's right. */+ export const QMA_AZIMUTHS = [+ "front view",+ "front-right quarter view",+ "right side view",+ "back-right quarter view",+ "back view",+ "back-left quarter view",+ "left side view",+ "front-left quarter view",+ ] as const;+ /** The 4 heights, low to high. */+ export const QMA_ELEVATIONS = ["low-angle shot", "eye-level shot", "elevated shot", "high-angle shot"] as const;+ /** The 3 distances, near to far. */+ export const QMA_DISTANCES = ["close-up", "medium shot", "wide shot"] as const;++ export type QmaAzimuth = (typeof QMA_AZIMUTHS)[number];+ export type QmaElevation = (typeof QMA_ELEVATIONS)[number];+ export type QmaDistance = (typeof QMA_DISTANCES)[number];++ export interface QmaView {+ azimuth: QmaAzimuth;+ elevation: QmaElevation;+ distance: QmaDistance;+ }++ /** Short names for the picker and for a run's label. */+ export const QMA_AZIMUTH_LABELS: Record<QmaAzimuth, string> = {+ "front view": "Front",+ "front-right quarter view": "Front right",+ "right side view": "Right side",+ "back-right quarter view": "Back right",+ "back view": "Back",+ "back-left quarter view": "Back left",+ "left side view": "Left side",+ "front-left quarter view": "Front left",+ };+ export const QMA_ELEVATION_LABELS: Record<QmaElevation, string> = {+ "low-angle shot": "Low angle",+ "eye-level shot": "Eye level",+ "elevated shot": "Elevated",+ "high-angle shot": "High angle",+ };+ export const QMA_DISTANCE_LABELS: Record<QmaDistance, string> = { "close-up": "Close-up", "medium shot": "Medium", "wide shot": "Wide" };++ /** The pose each height and distance stands for (the Angles app's own numbers: vertical_angle, zoom). */+ export const QMA_ELEVATION_DEGREES: Record<QmaElevation, number> = { "low-angle shot": -30, "eye-level shot": 0, "elevated shot": 30, "high-angle shot": 60 };+ export const QMA_DISTANCE_ZOOM: Record<QmaDistance, number> = { "close-up": 10, "medium shot": 5, "wide shot": 0 };++ /** A setting of the model's (params.extra): the same keys the Angles app's choices set, so one pose reads everywhere. */+ export const QMA_PARAMS = { horizontal: "horizontal_angle", vertical: "vertical_angle", zoom: "zoom" } as const;++ /** The view a run takes when nothing else says: a quarter turn, the card's most reliable kind. */+ export const QMA_DEFAULT_VIEW: QmaView = { azimuth: "front-right quarter view", elevation: "eye-level shot", distance: "medium shot" };++ /** Every one of the 96 views, azimuth first, then height, then distance. */+ export const QMA_VIEWS: readonly QmaView[] = QMA_AZIMUTHS.flatMap((azimuth) => QMA_ELEVATIONS.flatMap((elevation) => QMA_DISTANCES.map((distance) => ({ azimuth, elevation, distance }))));++ const wrap360 = (n: number) => ((n % 360) + 360) % 360;++ /** The azimuth nearest a horizontal angle, in 45° steps; exactly halfway (22.5°, 67.5°…) goes on round to the right. */+ export function qmaAzimuth(horizontal: number): QmaAzimuth {+ const h = Number.isFinite(horizontal) ? wrap360(horizontal) : 0;+ return QMA_AZIMUTHS[Math.floor(h / 45 + 0.5) % 8];+ }++ /**+ * The height band of a vertical angle: below −15° low, up to 15° eye level, up to 45° elevated, from 45° high (the+ * midpoints between the Angles app's −30, 0, 30 and 60; a midpoint goes up).+ */+ export function qmaElevation(vertical: number): QmaElevation {+ const v = Number.isFinite(vertical) ? vertical : 0;+ return v < -15 ? "low-angle shot" : v < 15 ? "eye-level shot" : v < 45 ? "elevated shot" : "high-angle shot";+ }++ /** The distance band of a zoom: 7.5 and up close-up, 2.5 and down wide, medium between (as Cinema's poseWords reads it). */+ export function qmaDistance(zoom: number): QmaDistance {+ const z = Number.isFinite(zoom) ? zoom : 5;+ return z >= 7.5 ? "close-up" : z <= 2.5 ? "wide shot" : "medium shot";+ }++ /** The nearest of the 96 views to a camera pose. */+ export function qmaView(pose: Partial<ScenePose>): QmaView {+ return { azimuth: qmaAzimuth(pose.horizontal ?? 0), elevation: qmaElevation(pose.vertical ?? 0), distance: qmaDistance(pose.zoom ?? 5) };+ }++ /** The pose a view stands for (for the orbit pad, and to show a QMA run as an angle). */+ export function qmaPose(view: QmaView): ScenePose {+ return { horizontal: QMA_AZIMUTHS.indexOf(view.azimuth) * 45, vertical: QMA_ELEVATION_DEGREES[view.elevation], zoom: QMA_DISTANCE_ZOOM[view.distance] };+ }++ /** The camera words: "front-right quarter view eye-level shot medium shot". */+ export function qmaWords(view: QmaView): string {+ return `${view.azimuth} ${view.elevation} ${view.distance}`;+ }++ /** The whole prompt: the trigger, the camera words, then any other edit words (the card: camera words first). */+ export function qmaPrompt(view: QmaView, words?: string): string {+ const extra = words?.trim();+ return `${QMA_TRIGGER} ${qmaWords(view)}${extra ? ` ${extra}` : ""}`;+ }++ /** A view in a person's words: "Front right · Eye level · Medium". */+ export function qmaLabel(view: QmaView): string {+ return `${QMA_AZIMUTH_LABELS[view.azimuth]} · ${QMA_ELEVATION_LABELS[view.elevation]} · ${QMA_DISTANCE_LABELS[view.distance]}`;+ }++ const phrase = (list: readonly string[], s: string) => list.filter((p) => s.startsWith(p)).sort((a, b) => b.length - a.length)[0];++ /** The view and the other words of a QMA prompt; undefined when it doesn't start with the trigger and three camera words. */+ export function parseQmaPrompt(prompt: string): { view: QmaView; words: string } | undefined {+ const s = prompt.trim();+ if (!s.startsWith(QMA_TRIGGER)) return undefined;+ let rest = s.slice(QMA_TRIGGER.length).trimStart();+ const azimuth = phrase(QMA_AZIMUTHS, rest) as QmaAzimuth | undefined;+ if (!azimuth) return undefined;+ rest = rest.slice(azimuth.length).trimStart();+ const elevation = phrase(QMA_ELEVATIONS, rest) as QmaElevation | undefined;+ if (!elevation) return undefined;+ rest = rest.slice(elevation.length).trimStart();+ const distance = phrase(QMA_DISTANCES, rest) as QmaDistance | undefined;+ if (!distance) return undefined;+ return { view: { azimuth, elevation, distance }, words: rest.slice(distance.length).replace(/^[\s.,;:]+/, "").trim() };+ }++ /** The pose a run's settings name (params.extra: horizontal_angle, vertical_angle, zoom), each missing one from the default view. */+ export function qmaPoseOf(extra: Record<string, unknown> | undefined): ScenePose {+ const d = qmaPose(QMA_DEFAULT_VIEW);+ const num = (v: unknown, fallback: number) => (typeof v === "number" && Number.isFinite(v) ? v : typeof v === "string" && v.trim() && Number.isFinite(Number(v)) ? Number(v) : fallback);+ return { horizontal: num(extra?.[QMA_PARAMS.horizontal], d.horizontal), vertical: num(extra?.[QMA_PARAMS.vertical], d.vertical), zoom: num(extra?.[QMA_PARAMS.zoom], d.zoom) };+ }++ /**+ * The prompt a QMA run sends: words that already start with the trigger and three camera words go as they are (the Angles+ * app's, a Reuse); otherwise the camera words of the run's pose (params.extra) lead and the words follow.+ */+ export function qmaRunPrompt(words: string, extra: Record<string, unknown> | undefined): string {+ if (parseQmaPrompt(words)) return words.trim();+ const pose = qmaView(qmaPoseOf(extra));+ const s = words.trim();+ if (!s.startsWith(QMA_TRIGGER)) return qmaPrompt(pose, s.replaceAll(QMA_TRIGGER, "").trim());+ // A partial QMA prompt ("<qma> back view …"): the camera words it gives hold, the pose fills only the missing ones.+ let rest = s.slice(QMA_TRIGGER.length).trimStart();+ const take = <T extends string>(list: readonly T[]): T | undefined => {+ const hit = phrase(list, rest) as T | undefined;+ if (hit) rest = rest.slice(hit.length).trimStart();+ return hit;+ };+ const azimuth = take(QMA_AZIMUTHS) ?? pose.azimuth;+ const elevation = take(QMA_ELEVATIONS) ?? pose.elevation;+ const distance = take(QMA_DISTANCES) ?? pose.distance;+ return qmaPrompt({ azimuth, elevation, distance }, rest.replaceAll(QMA_TRIGGER, "").replace(/^[\s.,;:]+/, "").trim());+ }++ /**+ * The orbit pad's drag: the pose moved by a drag of (dx, dy) pixels on a pad `size` pixels across. A full width turns the+ * camera once round (dragging right swings it to the right); a full height goes from straight below eye level (−30°) to+ * the top (90°), dragging up raising it.+ */+ export function orbitDrag(start: ScenePose, dx: number, dy: number, size: number): ScenePose {+ const s = Math.max(1, size);+ return { horizontal: wrap360(start.horizontal + (dx / s) * 360), vertical: Math.max(-30, Math.min(90, start.vertical - (dy / s) * 120)), zoom: start.zoom };+ }++ /** The 8 eye-level views a turnaround still set makes, the front first, going round to the camera's right. */+ export const QMA_TURN_SET: readonly QmaView[] = QMA_AZIMUTHS.map((azimuth) => ({ azimuth, elevation: "eye-level shot" as const, distance: "medium shot" as const }));diff --cc src/server/gpu/tools.tsindex ea4d38ea,c56ebf27..a7a6c1ba--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@@ -216,6 -217,9 +217,9 @@@ export const STUDIO_ROWS: StudioRowDef[{ modelId: FILL_MODELS.open, op: "edit", loras: [ANGLES_2511_LORA] },],},- // Turnaround stills · 8 views (qma-angles): the character from all 8 sides at eye level, drawn by QMA · 96 views (the++ // Turnaround stills · 8 views: the character from all 8 sides at eye level, drawn by QMA · 96 views (the+ // turnaround dialog's Stills route; its graph loads the QMA LoRA itself). It also draws a film's missing sides when picked.+ { href: "/character-sheet?stills=1", label: "Turnaround stills · 8 views", group: "Images", steps: [{ modelId: QMA_MODEL, op: "edit" }] },{ href: "/audio", label: "Voice", group: "Audio", config: S.AUDIO_STUDIO },{ href: "/audio/dialogue", label: "Dialogue", group: "Audio", config: S.DIALOGUE_STUDIO },{ href: "/audio/voice-change", label: "Voice change", group: "Audio", config: S.VOICE_CHANGE_STUDIO },diff --cc tests/e2e/qma-angles.mjsindex 00000000,dd37b01f..a7f1e002mode 000000,100644..100644--- a/tests/e2e/qma-angles.mjs+++ b/tests/e2e/qma-angles.mjs@@@ -1,0 -1,164 +1,164 @@@-// qma-angles in a real browser. The app must run in demo mode with ComfyUI unreachable++// QMA camera angles in a real browser. The app must run in demo mode with ComfyUI unreachable+ // (FUOBE_DEMO_MODE=on COMFYUI_URL=http://127.0.0.1:9). Usage: node tests/e2e/qma-angles.mjs [appUrl] [--shots=dir].+ //+ // At 1440 px and 390 px, in light and in dark, on your GPU:+ // 1. The Angles app on QMA · 96 views: the orbit pad beside the angle, height and distance chips; dragging it right swings+ // the camera to the right side, the chips follow; the model's own camera settings aren't asked twice; nothing scrolls+ // sideways; no console errors.+ // 2. Character Sheet's Turnaround dialog: "Stills · 8 views" as a route, "Drawn with" offers QMA · 96 views, the still route+ // hides length and shape and prices Free on your GPU. Once (1440 light) the still set runs and its pictures show.+ // Nothing reaches a GPU.+ import assert from "node:assert/strict";+ import fs from "node:fs";+ import path from "node:path";+ import { DESKTOP, PHONE, chromiumPath, loadPlaywright, root } from "./_browser.mjs";++ const args = process.argv.slice(2);-const app = (args.find((a) => !a.startsWith("--")) ?? "http://localhost:3000").replace(/\/$/, "");++const app = (args.find((a) => !a.startsWith("--")) ?? "http://localhost:3440").replace(/\/$/, "");+ const shots = args.find((a) => a.startsWith("--shots="))?.slice(8);+ if (shots) fs.mkdirSync(shots, { recursive: true });+ const { chromium } = loadPlaywright();+ const browser = await chromium.launch({ executablePath: chromiumPath() });+ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));+ let failures = 0;+ const check = (what, ok, detail = "") => {+ console.log(`${ok ? "✓" : "✗"} ${what}${ok || !detail ? "" : ` — ${detail}`}`);+ if (!ok) failures++;+ };+ const call = async (url, method = "GET", data) =>+ (await fetch(app + url, { method, headers: { "Content-Type": "application/json" }, body: data === undefined ? undefined : JSON.stringify(data) })).json();+ async function until(fn, what, ms = 90_000) {+ const t = Date.now();+ for (;;) {+ const v = await fn();+ if (v) return v;+ if (Date.now() - t > ms) throw new Error(`Timed out waiting for ${what}`);+ await sleep(700);+ }+ }+ async function upload(file, name) {+ const f = new FormData();+ f.append("file", new Blob([fs.readFileSync(file)], { type: "image/png" }), name);+ return (await (await fetch(`${app}/api/uploads`, { method: "POST", body: f })).json()).url;+ }++ const status = await call("/api/status");+ assert.notEqual(status.demoMode, "off", "run the app in demo mode (FUOBE_DEMO_MODE=on)");+ const fixtures = path.join(root, "scripts/eval/fixtures/character");+ const photo = await upload(path.join(fixtures, "drawn-face-1.png"), "drawn-face-1.png");+ const sheetRun = await call("/api/photodump/character", "POST", { mode: "reference", engine: "open", images: [photo] });+ await until(async () => (await call(`/api/generations/${sheetRun.items[0].id}`))?.status === "succeeded", "the sheet");++ const hideDevBadge = (ctx) =>+ ctx.addInitScript(() =>+ document.addEventListener("DOMContentLoaded", () => {+ const s = document.createElement("style");+ s.textContent = "nextjs-portal{display:none!important}";+ document.head.append(s);+ }),+ );+ const sideways = (page) => page.evaluate(() => document.documentElement.scrollWidth - window.innerWidth);+ const shoot = (page, name) => shots && page.screenshot({ path: path.join(shots, `${name}.png`) });++ for (const [size, scheme] of [+ ["1440", "light"],+ ["1440", "dark"],+ ["390", "light"],+ ["390", "dark"],+ ]) {+ const tag = `${size} ${scheme}`;+ const phone = size === "390";+ const ctx = await browser.newContext({ ...(phone ? PHONE : DESKTOP), colorScheme: scheme });+ await hideDevBadge(ctx);+ await ctx.addInitScript(() => localStorage.setItem("fuobe.engine", "open"));+ const page = await ctx.newPage();+ page.setDefaultTimeout(30_000);+ const errors = [];+ page.on("console", (m) => m.type() === "error" && errors.push(m.text()));+ page.on("pageerror", (e) => errors.push(String(e)));++ // 1. The Angles app on QMA · 96 views+ await page.goto(`${app}/apps/app-angles?model=oss-qwen-image-21-qma`, { waitUntil: "load", timeout: 120_000 });+ const pad = page.getByRole("slider", { name: /^Camera orbit/ });+ await pad.waitFor({ timeout: 60_000 });+ check(`${tag}: the orbit pad shows beside the chips`, await pad.isVisible());+ const model = await page.locator('button[aria-label^="Model: "]:visible').first().getAttribute("aria-label");+ check(`${tag}: the app runs on QMA · 96 views`, /QMA · 96 views/.test(model ?? ""), model ?? "");+ const before = await pad.getAttribute("aria-valuetext");+ const box = await pad.boundingBox();+ // Back to the front first (arrow keys move one view), then a quarter of the pad's width to the right = 90°.+ await pad.focus();+ for (let i = 0; i < 8 && !(await pad.getAttribute("aria-valuetext")).startsWith("Front ·"); i++) await page.keyboard.press("ArrowLeft");+ await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2);+ await page.mouse.down();+ for (let i = 1; i <= 6; i++) await page.mouse.move(box.x + box.width / 2 + (i * box.width) / 24, box.y + box.height / 2);+ await page.mouse.up();+ await sleep(300);+ const after = await pad.getAttribute("aria-valuetext");+ check(`${tag}: dragging right swings the camera to the right side (${before} → ${after})`, /^Right side ·/.test(after ?? ""));+ const chip = page.getByRole("radiogroup", { name: "Angle" }).getByRole("radio", { name: "Right side" });+ check(`${tag}: the Angle chips follow the pad`, (await chip.getAttribute("aria-checked")) === "true");+ await page.keyboard.press("ArrowUp");+ await sleep(200);+ check(`${tag}: arrow up raises it one height`, /Elevated/.test((await pad.getAttribute("aria-valuetext")) ?? ""));+ check(`${tag}: no second Angle setting in the model's controls`, (await page.getByRole("button", { name: /Director controls/ }).count()) === 0 || !(await page.locator("label", { hasText: /^Angle/ }).count()));+ check(`${tag}: no sideways scroll on the Angles app`, (await sideways(page)) <= 1);+ await shoot(page, `angles-${size}-${scheme}`);++ // 2. Character Sheet's Turnaround dialog+ await page.goto(`${app}/character-sheet`, { waitUntil: "load", timeout: 120_000 });+ const open = page.getByRole("button", { name: /^Turnaround video/ });+ await open.waitFor({ timeout: 60_000 });+ await open.click();+ const dialog = page.getByRole("dialog");+ const routes = dialog.getByRole("radiogroup", { name: "Route" });+ await routes.waitFor({ timeout: 30_000 });+ check(`${tag}: the open engine offers Frames and Stills · 8 views`, /Frames[\s\S]*Stills · 8 views/.test(await routes.innerText()));+ const drawn = dialog.getByRole("radiogroup", { name: "Drawn with" });+ check(`${tag}: the missing sides can be drawn with QMA · 96 views`, /QMA · 96 views/.test(await drawn.innerText()));+ await drawn.getByRole("radio", { name: "QMA · 96 views" }).click();+ await until(async () => /QMA · 96 views draws the/.test(await dialog.innerText()), "the QMA fill note", 20_000).then(+ () => check(`${tag}: the plan says QMA draws the missing sides`, true),+ () => check(`${tag}: the plan says QMA draws the missing sides`, false),+ );+ await routes.getByRole("radio", { name: "Stills · 8 views" }).click();+ await until(async () => /draws the character from 7 more sides/.test(await dialog.innerText()), "the stills plan", 20_000).catch(() => null);+ const text = await dialog.innerText();+ check(`${tag}: the still set's plan and Free price`, /draws the character from 7 more sides/.test(text) && /Free · on your GPU|Placeholder · free/.test(text), text.slice(-400));+ check(`${tag}: no length or shape for stills`, !(await dialog.getByRole("radiogroup", { name: "Length" }).count()) && !(await dialog.getByRole("radiogroup", { name: "Shape" }).count()));+ check(`${tag}: no sideways scroll with the dialog open`, (await sideways(page)) <= 1);+ await shoot(page, `stills-${size}-${scheme}`);+ if (size === "1440" && scheme === "light") {+ await dialog.getByRole("checkbox", { name: "I confirm the consent line" }).click();+ const make = dialog.getByRole("button", { name: /Make 8 views/ });+ await until(async () => !(await make.isDisabled()), "Make 8 views", 20_000);+ await make.click();+ await until(async () => (await dialog.locator("a img").count()) >= 8 && /Your views are ready/.test(await dialog.innerText()), "the still set", 120_000).then(+ () => check(`${tag}: all 8 views show when they're done, the front first`, true),+ () => check(`${tag}: all 8 views show when they're done, the front first`, false),+ );+ const names = await dialog.locator("a img").evaluateAll((els) => els.map((e) => e.getAttribute("alt")));+ check(`${tag}: each view is named by the person's side, going round`, names.join(",") === "Front,Front right,Right side,Back right,Back,Back left,Left side,Front left", names.join(","));+ await shoot(page, "stills-done");+ }+ if (scheme === "light") {+ // The pre-flight board's link starts the dialog on the still set.+ await page.keyboard.press("Escape");+ await page.goto(`${app}/character-sheet?stills=1`, { waitUntil: "load", timeout: 120_000 });+ const again = page.getByRole("button", { name: /^Turnaround video/ });+ await again.waitFor({ timeout: 60_000 });+ await again.click();+ const r2 = page.getByRole("dialog").getByRole("radiogroup", { name: "Route" });+ await r2.waitFor({ timeout: 30_000 });+ await until(async () => (await r2.getByRole("radio", { name: "Stills · 8 views" }).getAttribute("aria-checked")) === "true", "stills from the link", 20_000).then(+ () => check(`${tag}: ?stills=1 opens the dialog on Stills · 8 views`, true),+ () => check(`${tag}: ?stills=1 opens the dialog on Stills · 8 views`, false),+ );+ }+ await page.keyboard.press("Escape");+ check(`${tag}: no console errors`, errors.length === 0, errors.slice(0, 3).join(" | "));+ await ctx.close();+ }+ await browser.close();+ console.log(failures ? `\n${failures} failed` : "\nall passed");+ process.exit(failures ? 1 : 0);diff --cc tests/model-access-listings.test.tsindex 34cc060e,3ad78ee7..3bf17c49--- a/tests/model-access-listings.test.ts+++ b/tests/model-access-listings.test.ts@@@ -98,8 -98,8 +98,8 @@@ describe("Models & licences in listing// Multiple-angles and Fuobe Speak's FusioniX among them), the preset LoRA map's files that aren't library files, and// MiniMax H3's four (Akatz Labs' swap LoRA V1.5 and V1 and Person Remover V1, lightx2v's H3 Turbo), and Fuobe Restore's// two gated IC-LoRAs (Lightricks' Restore and Detail Refine), and Open-H3 Regenerate's merged refiner LoRA, each once. Qwen-Image 2.1's three speed LoRAs and its Next-Scene LoRA- // are four more.- expect(list.loras.length).toBe(181);- // (nm10-qwen21-fast) are four more, and the QMA camera-angles LoRA (qma-angles) one more.++ // are four more, and the QMA camera-angles LoRA one more.+ expect(list.loras.length).toBe(182);expect(list.loras.find((l) => l.file === "open_h3_regenerate_2k_lora.safetensors")).toMatchObject({ group: "adapter", base: "MiniMax H3", on: true, licence: { name: "MiniMax H3 Community License", class: "regions" } });expect(list.packs.find((p) => p.name === "ComfyUI-Open-H3-Regenerate")).toMatchObject({ licence: { name: "Apache-2.0" }, on: true, models: 1 });expect(list.packs.find((p) => p.name === "Comfyui_Minimax_h3_latent_Upscaler")).toMatchObject({ licence: { name: "MIT" }, on: true, models: 1 });diff --cc tests/qma-angles.test.tsindex 00000000,2b9c5c3f..04be8ee5mode 000000,100644..100644--- a/tests/qma-angles.test.ts+++ b/tests/qma-angles.test.ts@@@ -1,0 -1,254 +1,254 @@@+ import fs from "node:fs";+ import os from "node:os";+ import path from "node:path";+ import { afterAll, describe, expect, it } from "vitest";+ import type { GenInput, Operation } from "@/lib/catalog/types";+ import type { ComfyWorkflow, ManifestWorkflow } from "@/lib/comfy";+-// Package qma-angles: the QMA camera-angles LoRA on Qwen-Image 2.1 (96 views) in the Angles app, Cinema's location views and++// The QMA camera-angles LoRA on Qwen-Image 2.1 (96 views) in the Angles app, Cinema's location views and+ // 3D re-shoots, the turnaround's missing sides and its 8-view still set, and the Canvas product angles. Open engine only:+ // fal's Qwen-Image 2.1 takes no LoRAs and Replicate has none.+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-qma-"));+ process.env.FUOBE_DATA_DIR = tmp;+ process.env.COMFYUI_URL = "http://comfy.test:8188";+ const { prepareWorkflow } = await import("@/server/providers/comfyui");+ const { getModel, getPreset } = await import("@/lib/catalog");+ const { planGeneration } = await import("@/lib/catalog/plan");+ const { appModels } = await import("@/lib/catalog/preset-recipe-routes");+ const { libraryEntry } = await import("@/lib/catalog/loras");+ const { planCinema, RECOMPOSE_MODELS } = await import("@/lib/catalog/cinema");+ const { planTurnaround, qmaHorizontal, ROUTES_ON, TURN_ROUTES, anglesHorizontal } = await import("@/lib/catalog/turnaround");+ const { CANVAS_TEMPLATES, convertEngine } = await import("@/lib/catalog/canvas");+ const { QMA_MODEL, QMA_WORKFLOW, parseQmaPrompt } = await import("@/lib/qma");+ const { STUDIO_ROWS, studioTool } = await import("@/server/gpu/tools");+ const { modelLicence } = await import("@/server/model-access");+ const { TurnaroundSchema } = await import("@/server/turnaround");+ afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));++ const LIBRARY = path.join(process.cwd(), "workflows/comfyui");+ const read = (f: string) => JSON.parse(fs.readFileSync(path.join(LIBRARY, f), "utf8"));+ const manifest = read("manifest.json") as { workflows: ManifestWorkflow[] };+ const entry = (id: string) => manifest.workflows.find((w) => w.id === id)!;+ const pins = read("model-pins.json") as Record<string, { revision: string; sizeBytes: number; sha256: string }>;+ const index = read("requirements.json") as { workflows: Record<string, { files: string[]; packs: Record<string, string[]>; vramGb: number }> };+ const ofClass = (wf: ComfyWorkflow, cls: string) => Object.entries(wf).filter(([, n]) => n.class_type === cls);+ const has = (id: string) => !!getModel(id);++ async function prepare(input: GenInput, op: Operation = "edit") {+ return prepareWorkflow(QMA_WORKFLOW, { seed: 7, ...input }, {+ generationId: "g-qma",+ op,+ upload: async (_d, _t, name) => `up_${name}`,+ media: () => undefined as never,+ serverRam: async () => undefined,+ modelPath: async () => undefined,+ });+ }++ describe("the QMA model and its graph", () => {+ it("is an open edit model with the camera as three settings, its LoRA held to its switch", () => {+ const m = getModel(QMA_MODEL)!;+ expect(m).toMatchObject({ engine: "open", kind: "image", name: "QMA · 96 views" });+ expect(m.routes.map((r) => [r.provider, r.op, r.endpoint])).toEqual([["comfyui", "edit", QMA_WORKFLOW]]);+ expect(m.options.promptFormat).toBe("qma");+ expect(m.options.controls?.map((c) => c.param)).toEqual(["horizontal_angle", "vertical_angle", "zoom", "size", "decoder"]);+ expect(m.options.controls?.[0].values).toEqual([0, 45, 90, 135, 180, 225, 270, 315]);+ expect(m.options.loras?.map((l) => [l.file, l.strength])).toEqual([["qwen-image-2.1-qma-camera-angles.safetensors", 1]]);+ expect(m.tagline).toMatch(/on your GPU/);+ });++ it("records the LoRA pinned, with its licence, and the graph validated with the card's settings", () => {+ const e = libraryEntry({ file: "qwen-image-2.1-qma-camera-angles.safetensors" })!;+ expect(e.url).toContain("/resolve/13007eec2648c09529e930164c2ccc9c8c12428c/");+ expect(e.sha256).toBe("ad2c20e0e103b6ad3ffffc56ab4e89c0822263c488aa4dd70e7e03091ff37b8d");+ expect(e.licence).toMatchObject({ commercial: false, hostedOk: false });+ const w = entry(QMA_WORKFLOW);+ expect(w.validated).toBe(true);+ expect(w.defaults).toMatchObject({ steps: 30, cfg: 3, loraStrength: 1, megapixels: 1 });+ expect(w.vramGb).toBe(20);+ expect(w.notes).not.toMatch(/src\//);+ const lora = w.models.find((x) => x.folder === "loras")!;+ expect(lora.sizeGb).toBe(0.32);+ expect(pins[lora.url!]).toMatchObject({ revision: "13007eec2648c09529e930164c2ccc9c8c12428c", sizeBytes: 318820224 });+ expect(index.workflows[QMA_WORKFLOW].files).toEqual(expect.arrayContaining(["loras/qwen-image-2.1-qma-camera-angles.safetensors", "diffusion_models/qwen_image_2.1_int8_convrot.safetensors"]));+ expect(index.workflows[QMA_WORKFLOW].packs).toEqual({});+ expect(modelLicence(getModel(QMA_MODEL)!).licence.name).toMatch(/Qwen Research/);+ });++ it("writes the camera words from the run's settings and binds the card's sampler", async () => {+ const m = getModel(QMA_MODEL)!;+ const plan = planGeneration({ feature: "edit", modelId: m.id, prompt: "make it dusk", inputs: { images: ["/api/files/p.png"] }, params: { extra: { horizontal_angle: 180, vertical_angle: 60, zoom: 0 } } }, getModel, getPreset);+ expect(plan.prompt).toBe("<qma> back view high-angle shot wide shot make it dusk");+ // No words and no settings: a quarter turn at eye level.+ expect(planGeneration({ feature: "edit", modelId: m.id, prompt: "", inputs: { images: ["/api/files/p.png"] } }, getModel, getPreset).prompt).toBe("<qma> front-right quarter view eye-level shot medium shot");+ const { workflow: wf } = await prepare({ prompt: plan.prompt, images: ["/api/files/p.png"], loras: plan.loras });+ expect(wf["30"].inputs.prompt).toBe(plan.prompt);+ expect(wf["32"].inputs).toMatchObject({ steps: 30, cfg: 3, sampler_name: "euler", scheduler: "simple" });+ expect(wf["20"].inputs.megapixels).toBe(1);+ // The graph loads the LoRA itself: the plan's copy isn't added twice.+ expect(ofClass(wf, "LoraLoaderModelOnly").map(([, n]) => [n.inputs.lora_name, n.inputs.strength_model])).toEqual([["qwen-image-2.1-qma-camera-angles.safetensors", 1]]);+ const preview = planGeneration({ feature: "edit", modelId: m.id, prompt: "", inputs: { images: ["/api/files/p.png"] }, params: { extra: { size: "preview" } } }, getModel, getPreset);+ const { workflow: small } = await prepare({ prompt: preview.prompt, images: ["/api/files/p.png"], extra: preview.params.extra });+ expect(small["20"].inputs.megapixels).toBe(0.6);+ });+ });++ describe("the Angles app", () => {+ const app = getPreset("app-angles")!;++ it("offers QMA · 96 views on your GPU only, after its own routes", () => {+ expect(appModels(app, "open", has)).toContain(QMA_MODEL);+ expect(appModels(app, "open", has).at(-1)).toBe(QMA_MODEL);+ expect(appModels(app, "cloud", has)).not.toContain(QMA_MODEL);+ // Without the model in the catalog it isn't offered.+ expect(appModels(app, "open", (id) => id !== QMA_MODEL && has(id))).not.toContain(QMA_MODEL);+ });++ it("turns the app's choices into QMA's words, the note after them, and none of the 2511 LoRA", () => {+ const plan = planGeneration(+ { feature: "app:app-angles", modelId: QMA_MODEL, presetId: app.id, prompt: "keep the red scarf", inputs: { images: ["/api/files/p.png"] }, presetOptions: { angle: "back-left", height: "elevated", distance: "close-up" } },+ getModel,+ getPreset,+ );+ expect(plan.prompt).toBe("<qma> back-left quarter view elevated shot close-up keep the red scarf");+ expect(plan.loras.map((l) => l.file)).toEqual(["qwen-image-2.1-qma-camera-angles.safetensors"]);+ expect(parseQmaPrompt(plan.prompt)?.view).toEqual({ azimuth: "back-left quarter view", elevation: "elevated shot", distance: "close-up" });+ // Every one of the app's 8 × 4 × 3 choices reaches its own view.+ const views = new Set<string>();+ for (const a of app.options![0].choices)+ for (const h of app.options![1].choices)+ for (const d of app.options![2].choices) {+ const p = planGeneration({ feature: "app:app-angles", modelId: QMA_MODEL, presetId: app.id, prompt: "", inputs: { images: ["/api/files/p.png"] }, presetOptions: { angle: a.value, height: h.value, distance: d.value } }, getModel, getPreset).prompt;+ expect(p).toBe(`<qma> ${a.prompt} ${h.prompt} ${d.prompt}`);+ views.add(p);+ }+ expect(views.size).toBe(96);+ });+ });++ describe("Cinema", () => {+ const settings = {} as never;+ it("re-angles a location with QMA when asked, on your GPU", () => {+ const plan = planCinema({ engine: "open", mode: "image", action: "location-view", view: "reverse", modelId: QMA_MODEL, prompt: "", settings, source: { url: "/api/files/loc.png", kind: "image" } } as never, {} as never);+ expect(plan.model.id).toBe(QMA_MODEL);+ const req = plan.steps[0].request;+ expect(req.params?.extra).toMatchObject({ horizontal_angle: 180, vertical_angle: 0, zoom: 5 });+ expect(planGeneration(req, getModel, getPreset).prompt).toMatch(/^<qma> back view eye-level shot medium shot Keep everything about the place the same/);+ // The default stays the Multiple-Angles route.+ expect(planCinema({ engine: "open", mode: "image", action: "location-view", view: "reverse", prompt: "", settings, source: { url: "/api/files/loc.png", kind: "image" } } as never, {} as never).model.id).toBe("oss-qwen-edit");+ });++ it("re-shoots a still from the flown camera's nearest view", () => {+ expect(RECOMPOSE_MODELS.open).toContain(QMA_MODEL);+ expect(RECOMPOSE_MODELS.cloud).not.toContain(QMA_MODEL);+ const plan = planCinema(+ { engine: "open", mode: "image", action: "recompose", modelId: QMA_MODEL, prompt: "", settings, source: { url: "/api/files/still.png", kind: "image" }, capture: { url: "/api/files/cap.png", lens: 24, aperture: 5.6, pose: { horizontal: 100, vertical: 20, zoom: 8 } } } as never,+ {} as never,+ );+ const req = plan.steps[0].request;+ expect(req.inputs?.images).toEqual(["/api/files/still.png"]);+ expect(planGeneration(req, getModel, getPreset).prompt).toBe("<qma> right side view elevated shot close-up");+ });+ });++ describe("the turnaround", () => {+ it("knows QMA turns the camera, not the person", () => {+ expect(qmaHorizontal("front")).toBe(0);+ expect(qmaHorizontal("right")).toBe(270);+ expect(qmaHorizontal("back")).toBe(180);+ expect(qmaHorizontal("left")).toBe(90);+ expect(anglesHorizontal("right")).toBe(90);+ });++ it("draws the missing sides with QMA when picked, on your GPU", () => {+ const plan = planTurnaround({ engine: "open", views: { front: "/api/files/front.png" }, fillWith: "qma" });+ const fills = plan.steps.filter((s) => s.key.startsWith("fill-"));+ expect(fills.map((s) => [s.key, s.request.modelId, s.request.params?.extra?.horizontal_angle])).toEqual([+ ["fill-right", QMA_MODEL, 270],+ ["fill-back", QMA_MODEL, 180],+ ["fill-left", QMA_MODEL, 90],+ ]);+ expect(fills[0].request.loras).toBeUndefined();+ expect(planGeneration(fills[0].request, getModel, getPreset).prompt).toMatch(/^<qma> left side view eye-level shot medium shot Keep the same person/);+ expect(plan.costUsd).toBe(0);+ // The default stays the Angles app's route, and the cloud never takes QMA.+ expect(planTurnaround({ engine: "open", views: { front: "/api/files/front.png" } }).steps.find((s) => s.key === "fill-right")!.request.modelId).toBe("oss-qwen-edit");+ expect(planTurnaround({ engine: "cloud", views: { front: "/api/files/front.png" }, route: "keyframes", fillWith: "qma" }).steps.find((s) => s.key === "fill-right")!.request.modelId).toBe("qwen-multiple-angles");+ });++ it("makes the 8-view still set from the front view in one batch, with no film", () => {+ expect(ROUTES_ON.open).toEqual(["frames", "stills"]);+ expect(TURN_ROUTES.stills.modelId).toBe(QMA_MODEL);+ const plan = planTurnaround({ engine: "open", views: { front: "/api/files/front.png", back: "/api/files/back.png" }, route: "stills", name: "Ada" });+ expect(plan.route).toBe("stills");+ expect(plan.blocker).toBeUndefined();+ expect(plan.steps).toHaveLength(7);+ // Named by the person's own sides, going round to their right; QMA's camera turns the other way (as the fill's qmaHorizontal).+ expect(plan.steps.map((s) => s.request.params?.extra?.horizontal_angle)).toEqual([315, 270, 225, 180, 135, 90, 45]);+ expect(plan.steps.find((s) => s.request.step?.label === "Right side")!.request.params?.extra?.horizontal_angle).toBe(qmaHorizontal("right"));+ expect(plan.steps.find((s) => s.request.step?.label === "Left side")!.request.params?.extra?.horizontal_angle).toBe(qmaHorizontal("left"));+ expect(plan.steps[1].request.title).toBe("Turnaround stills · Ada · Right side");+ expect(plan.steps.every((s) => s.request.modelId === QMA_MODEL && s.request.inputs?.images?.[0] === "/api/files/front.png" && s.request.feature === "turnaround")).toBe(true);+ expect(plan.steps.map((s) => s.request.step?.label)).toEqual(["Front right", "Right side", "Back right", "Back", "Back left", "Left side", "Front left"]);+ expect(plan.steps[3].request.title).toBe("Turnaround stills · Ada · Back");+ expect(plan.durations).toEqual([]);+ expect(plan.costUsd).toBe(0);+ // From a sheet: its front is drawn first and each view chains from it.+ const sheet = planTurnaround({ engine: "open", sheet: "/api/files/sheet.png", route: "stills" });+ expect(sheet.steps[0].key).toBe("front");+ expect(sheet.steps.slice(1).every((s) => s.after?.[0] === "front")).toBe(true);+ // No front: asked for. The cloud has no stills route.+ expect(planTurnaround({ engine: "open", route: "stills" }).blocker).toMatch(/front view/);+ expect(planTurnaround({ engine: "cloud", views: { front: "/api/files/front.png" }, route: "stills" }).route).not.toBe("stills");+ // Without the QMA model offered the route isn't either.+ expect(planTurnaround({ engine: "open", views: { front: "/api/files/front.png" }, route: "stills" }, { has: (id) => id !== QMA_MODEL }).routes).toEqual(["frames"]);+ });++ it("takes the still route and the QMA fill through the API", () => {+ expect(TurnaroundSchema.parse({ engine: "open", route: "stills", fillWith: "qma" })).toMatchObject({ route: "stills", fillWith: "qma" });+ expect(() => TurnaroundSchema.parse({ engine: "open", fillWith: "other" })).toThrow();+ });+ });++ describe("the Canvas product angles and the GPU board", () => {+ it("runs the three angles on QMA on your GPU, with the camera in each node's settings", () => {+ const t = CANVAS_TEMPLATES.find((x) => x.id === "product-angles")!;+ const open = t.build("open");+ const cloud = t.build("cloud");+ for (const id of ["front", "side", "top"]) {+ const o = open.nodes.find((n) => n.id === id)!;+ expect(o.data.modelId).toBe(QMA_MODEL);+ expect(o.data.params?.extra).toHaveProperty("horizontal_angle");+ const c = cloud.nodes.find((n) => n.id === id)!;+ expect(c.data.modelId).toBe("nano-banana-pro");+ expect(c.data.params).toBeUndefined();+ }+ const top = open.nodes.find((n) => n.id === "top")!;+ expect(planGeneration({ feature: "canvas", modelId: QMA_MODEL, prompt: top.data.prompt ?? "", inputs: { images: ["/api/files/p.png"] }, params: top.data.params }, getModel, getPreset).prompt).toBe(+ "<qma> front view high-angle shot medium shot The same product shot top-down as a flat lay on a seamless studio background, even light",+ );+ });++ it("keeps each angle's words when the board moves to the cloud, and falls back when QMA is switched off", () => {+ const t = CANVAS_TEMPLATES.find((x) => x.id === "product-angles")!;+ const moved = convertEngine(t.build("open"), "cloud").graph;+ const prompts = ["front", "side", "top"].map((id) => moved.nodes.find((n) => n.id === id)!.data.prompt);+ expect(new Set(prompts).size).toBe(3);+ expect(prompts[0]).toMatch(/three-quarter front/);+ expect(prompts[1]).toMatch(/side profile/);+ expect(prompts[2]).toMatch(/top-down/);+ const off = t.build("open", (id) => id !== QMA_MODEL);+ for (const id of ["front", "side", "top"]) {+ const n = off.nodes.find((x) => x.id === id)!;+ expect(n.data.modelId).toBe("oss-qwen-image-21");+ expect(n.data.params?.extra).toBeUndefined();+ }+ expect(t.build("open", () => true).nodes.find((n) => n.id === "side")!.data.modelId).toBe(QMA_MODEL);+ });++ it("gives the 8-view stills a row on the pre-flight board", () => {+ const row = STUDIO_ROWS.find((r) => r.label === "Turnaround stills · 8 views")!;+ expect(row).toBeDefined();+ expect(studioTool(row)!.workflows).toEqual([QMA_WORKFLOW]);+ });+ });diff --cc tests/qma-prompt.test.tsindex 00000000,f0be6718..12f9e962mode 000000,100644..100644--- a/tests/qma-prompt.test.ts+++ b/tests/qma-prompt.test.ts@@@ -1,0 -1,117 +1,117 @@@+ import { describe, expect, it } from "vitest";+ import {+ QMA_AZIMUTHS,+ QMA_DISTANCES,+ QMA_ELEVATIONS,+ QMA_TURN_SET,+ QMA_VIEWS,+ orbitDrag,+ parseQmaPrompt,+ qmaAzimuth,+ qmaDistance,+ qmaElevation,+ qmaLabel,+ qmaPose,+ qmaPoseOf,+ qmaPrompt,+ qmaRunPrompt,+ qmaView,+ qmaWords,+ } from "@/lib/qma";+-// Package qma-angles: Fuobe's camera pose (the Angles app's horizontal_angle / vertical_angle / zoom, Cinema's ScenePose) to++// Fuobe's camera pose (the Angles app's horizontal_angle / vertical_angle / zoom, Cinema's ScenePose) to+ // the QMA LoRA's 96 views and back.+ describe("QMA views", () => {+ it("has the card's 8 × 4 × 3 = 96 views, each once", () => {+ expect(QMA_AZIMUTHS).toHaveLength(8);+ expect(QMA_ELEVATIONS).toHaveLength(4);+ expect(QMA_DISTANCES).toHaveLength(3);+ expect(QMA_VIEWS).toHaveLength(96);+ expect(new Set(QMA_VIEWS.map(qmaWords)).size).toBe(96);+ });++ it("round-trips every one of the 96 views through its pose, its prompt and its label", () => {+ for (const v of QMA_VIEWS) {+ expect(qmaView(qmaPose(v))).toEqual(v);+ const p = qmaPrompt(v);+ expect(p).toBe(`<qma> ${v.azimuth} ${v.elevation} ${v.distance}`);+ expect(parseQmaPrompt(p)).toEqual({ view: v, words: "" });+ expect(parseQmaPrompt(qmaPrompt(v, "make it night"))).toEqual({ view: v, words: "make it night" });+ expect(qmaRunPrompt(p, { horizontal_angle: 999 })).toBe(p);+ expect(qmaLabel(v).split(" · ")).toHaveLength(3);+ }+ });++ it("keeps the card's order and wording in the prompt", () => {+ expect(qmaPrompt({ azimuth: "right side view", elevation: "eye-level shot", distance: "medium shot" })).toBe("<qma> right side view eye-level shot medium shot");+ expect(qmaPrompt({ azimuth: "back view", elevation: "elevated shot", distance: "wide shot" })).toBe("<qma> back view elevated shot wide shot");+ expect(qmaPrompt({ azimuth: "front-left quarter view", elevation: "low-angle shot", distance: "close-up" }, " ")).toBe("<qma> front-left quarter view low-angle shot close-up");+ });+ });++ describe("snapping a pose", () => {+ it("snaps the azimuth to 45° steps, halfway going on round to the right, and wraps", () => {+ expect(qmaAzimuth(0)).toBe("front view");+ expect(qmaAzimuth(22.49)).toBe("front view");+ expect(qmaAzimuth(22.5)).toBe("front-right quarter view");+ expect(qmaAzimuth(67.5)).toBe("right side view");+ expect(qmaAzimuth(180)).toBe("back view");+ expect(qmaAzimuth(337.49)).toBe("front-left quarter view");+ expect(qmaAzimuth(337.5)).toBe("front view");+ expect(qmaAzimuth(360)).toBe("front view");+ expect(qmaAzimuth(-45)).toBe("front-left quarter view");+ expect(qmaAzimuth(-90)).toBe("left side view");+ expect(qmaAzimuth(405)).toBe("front-right quarter view");+ expect(qmaAzimuth(Number.NaN)).toBe("front view");+ });++ it("bands the height at the midpoints of −30, 0, 30 and 60", () => {+ expect(qmaElevation(-90)).toBe("low-angle shot");+ expect(qmaElevation(-15.01)).toBe("low-angle shot");+ expect(qmaElevation(-15)).toBe("eye-level shot");+ expect(qmaElevation(14.99)).toBe("eye-level shot");+ expect(qmaElevation(15)).toBe("elevated shot");+ expect(qmaElevation(44.99)).toBe("elevated shot");+ expect(qmaElevation(45)).toBe("high-angle shot");+ expect(qmaElevation(90)).toBe("high-angle shot");+ });++ it("bands the distance as Cinema's pose words do", () => {+ expect(qmaDistance(0)).toBe("wide shot");+ expect(qmaDistance(2.5)).toBe("wide shot");+ expect(qmaDistance(2.51)).toBe("medium shot");+ expect(qmaDistance(7.49)).toBe("medium shot");+ expect(qmaDistance(7.5)).toBe("close-up");+ expect(qmaDistance(10)).toBe("close-up");+ });++ it("reads a run's settings, filling what's missing from a quarter turn at eye level", () => {+ expect(qmaPoseOf(undefined)).toEqual({ horizontal: 45, vertical: 0, zoom: 5 });+ expect(qmaPoseOf({ horizontal_angle: "180", vertical_angle: 60, zoom: 0 })).toEqual({ horizontal: 180, vertical: 60, zoom: 0 });+ expect(qmaRunPrompt("make it snow", { horizontal_angle: 90 })).toBe("<qma> right side view eye-level shot medium shot make it snow");+ expect(qmaRunPrompt("", {})).toBe("<qma> front-right quarter view eye-level shot medium shot");+ // A trigger with no camera words after it isn't a QMA prompt: the pose's words go in, the stray trigger out.+ expect(qmaRunPrompt("<qma> a red car", { horizontal_angle: 180 })).toBe("<qma> back view eye-level shot medium shot a red car");+ // A partial QMA prompt keeps the camera words it gives; the pose fills only the missing ones.+ expect(qmaRunPrompt("<qma> back view", {})).toBe("<qma> back view eye-level shot medium shot");+ expect(qmaRunPrompt("<qma> left side view high-angle shot, at night", { horizontal_angle: 0, zoom: 10 })).toBe("<qma> left side view high-angle shot close-up at night");+ expect(qmaRunPrompt("<qma> wide shot a red car", { horizontal_angle: 90 })).toBe("<qma> right side view eye-level shot wide shot a red car");+ });+ });++ describe("the orbit pad and the turnaround set", () => {+ it("turns once round across the pad and raises the camera dragging up", () => {+ const start = { horizontal: 0, vertical: 0, zoom: 5 };+ expect(orbitDrag(start, 50, 0, 200).horizontal).toBe(90);+ expect(qmaView(orbitDrag(start, 50, 0, 200)).azimuth).toBe("right side view");+ expect(orbitDrag(start, -50, 0, 200).horizontal).toBe(270);+ expect(qmaView(orbitDrag(start, 0, -50, 200)).elevation).toBe("elevated shot");+ expect(orbitDrag(start, 0, -1000, 200).vertical).toBe(90);+ expect(orbitDrag(start, 0, 1000, 200).vertical).toBe(-30);+ });++ it("makes the 8 azimuths at eye level, front first", () => {+ expect(QMA_TURN_SET.map((v) => v.azimuth)).toEqual([...QMA_AZIMUTHS]);+ expect(new Set(QMA_TURN_SET.map((v) => v.elevation))).toEqual(new Set(["eye-level shot"]));+ });+ });diff --cc workflows/comfyui/requirements.jsonindex f0af85c3,007e01f8..e69330a3--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@@ -1,9 -1,9 +1,9 @@@{"v": 1,- "hash": "ada8f3f42f81f0fdd75138ab6eef9c2e4dff56b5ea4b6d9905e659b858f48bc5",- "hash": "d519066f28eb85ed60dd0e6a34906d68dd3557910c0c1d14046782e4e15e96d2",- "comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},++ "hash": "eab87b250f89896c1a694099b3fc91853e992cfe3cac396471ac7a03c536e5ef",+ "comfyui": {"min":"0.42.0","testedCommit":"5841c187"},"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],- "sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],+ "sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],"packs": {"ComfyUI-DBS": {"repo":"https://github.com/hiroki-abe-58/ComfyUI-DBS","commit":"f656e53434b5485c148a2866fbd6ddc6b6152ed6","registry":{"id":"dbs-soundtrack-separation","version":""},"classes":["DBSLoader","DBSSeparate"],"folders":["dbs"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Frame-Interpolation": {"repo":"https://github.com/Fannovel16/ComfyUI-Frame-Interpolation","commit":"26545cc2dd95bc3d27f056016300673bdeee78f5","registry":{"id":"comfyui-frame-interpolation","version":""},"classes":["RIFE VFI"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},@@@ -341,7 -340,7 +342,8 @@@"qwen-image-21-outpaint": {"core":["CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSampler","LoraLoaderModelOnly","QwenImage21Cache","RegexReplace","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-outpaint-draft": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-outpaint-fast": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Lightning-4steps.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},+ "qwen-image-21-qma": {"core":["CLIPLoader","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/qwen-image-2.1-qma-camera-angles.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},+ "qwen-image-21-relight": {"core":["BasicGuider","CLIPLoader","KSamplerSelect","LoadImage","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{"viggle_turbo":["ViggleTurboLora","ViggleTurboSigmas"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r256.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},"qwen-image-21-t2i": {"core":["CLIPLoader","EmptyLatentImage","KSampler","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-t2i-details": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-t2i-draft": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},