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.

Handoff: Idol 3's splat A/B is ready to merge

Claudede712581af0a
diff --git a/docs/handoff/reports/idol-3.json b/docs/handoff/reports/idol-3.json
new file mode 100644
index 00000000..1a8b0698
--- /dev/null
+++ b/docs/handoff/reports/idol-3.json
@@ -0,0 +1,115 @@
+{
+ "key": "idol-3",
+ "impl": {
+ "branch": "o/idol-3",
+ "summary": "The evaluation harness has a splat suite (scripts/eval/cases/splat.json, kind video) that compares Idol 3D Best and Quick against TripoSplat as it ships, plus Idol with the photo crop on the 3 photo cases. It scores the orbit video with DINOv2 style against the input picture, temporal and aesthetic, and adds an optional cheap 'splat' metric that reads the .spz or .ply for the share of Gaussians under opacity 0.05 (haze). A fal TripoSplat reference variant, labelled TripoSplat and cloud-only, is included. The harness gained variant 'tags' (run only on tagged cases) and the suite default 'styleModel' (kept in run.json and used when --style-model isn't given). docs/research/idol-9.md has a 'Results (pending a GPU run)' section with the commands, what each number decides and an empty results table. \u00a73 and \u00a77.2 are untouched, and no default (MODELS_3D.splat.open, IDOL_PRESETS) was changed.",
+ "built": [
+ "scripts/eval/cases/splat.json: 11 cases (bottle, sneaker, headphones renders; mug, handbag, figurine photos tagged photo; stylised character; person; chair; plant; glass-chrome), 3 seeds, inputs local/splat/*, demoInputs from fixtures/, references = the input picture. Variants: idol-best (candidate; 50 euler cfg 4 262144), idol-quick (20 dpmpp_2m cfg 4 65536), triposplat-today (graph defaults), idol-photo-crop (best + photoCrop true + cropMode real, tags photo), triposplat-cloud (fal triposplat, cloud only). defaults.styleModel dinov2; 'decides' field holds the three rules.",
+ "scripts/eval/lib/schema.mjs: METRICS gains 'splat'; Variant.tags (refused when no case carries the tag); defaults.styleModel (clip|dinov2). case.schema.json regenerated by gen-cases.mjs (no other generated file changed).",
+ "scripts/eval/lib/plan.mjs: a variant with tags skips cases without them, and says so in the skip reason. run.mjs writes styleModel into run.json; eval.mjs scoring uses --style-model, else run.json's styleModel.",
+ "scripts/eval/metrics/fuobe_metrics/splat.py (numpy only): opacities from .spz v1-3 and binary 3DGS .ply, detected by content; haze share and count. score.py: m_splat family, 3D files counted in the fingerprint, and a 'preview' still beside a clip is no longer scored (Idol's clean graph renders the input view, which would inflate style). registry.py and metric-info.mjs: haze (lower is better, tie 0.01) and gaussians.",
+ "scripts/eval/README.md: suites table row, local/splat inputs, variant tags and defaults.styleModel, the splat metric row, and a 'The splat suite' section with the commands.",
+ "docs/research/idol-9.md: 'Results (pending a GPU run)' section before \u00a710."
+ ],
+ "tests": {
+ "verified": [
+ "pnpm eval:validate: all suites pass, splat.json has 11 cases",
+ "Demo dry run (pnpm eval:run --suite splat --engine demo --dry-run): 33 jobs for the default variant. With --variants all: 66 jobs per seed, with the photo crop skipped on the 8 non-photo cases and the cloud variant skipped on demo",
+ "Demo run, --variants all --seeds 1001, on a fresh demo server: 36/36 succeeded, 19 skipped as intended",
+ "Scoring a demo run with a numpy-only venv: run.json's styleModel reaches the scorer (config.style = dinov2), and the splat metric notes that the demo GLB isn't a splat. DINOv2, CLIP and aesthetic didn't run here because uv can't resolve torch==2.14.1+cpu in this container, which affects every suite",
+ "pytest scripts/eval/metrics/tests: 47 passed, 5 skipped (new tests/test_splat.py: 7 tests)",
+ "tests/eval-harness.test.ts: 46 passed, including a new splat-suite test (demo run, run.json candidate and styleModel, per-variant extras matching IDOL_PRESETS, photo-only skip, cloud has no Idol, tags refused when no case has them)",
+ "tests/demo-ops, model3d, eval-api, eval-metrics, idol, idol-clean, licences, comfy-library-notes: pass",
+ "pnpm typecheck clean (after next typegen); eslint on the changed files clean",
+ "Full vitest (--maxWorkers=2): 7 failures in 6 files, all known from main: comfy-reuse, dop-originals, preset-featured, soul-runs (2), split-soundtrack, and preset-covers, which timed out under load and passes alone (11/11)",
+ "Browser: tests/e2e/idol-final.mjs on a fresh demo server: desktop and phone, light and dark, all good. The final branch changes no page; .next was deleted afterwards"
+ ],
+ "notVerified": "There are no GPU numbers, since this machine has no GPU and no weights. No style, temporal or aesthetic scores either, because torch doesn't install through uv here. Nothing ran on the cloud."
+ },
+ "left": [
+ "TripoSplat at Idol's sampler (the brief's 'triposplat-50'): skipped as the brief allows. Binding 'sampler' on image-to-splat-triposplat was built and /prompt-validated on the live CPU ComfyUI (only a binding, manifest diff clean). It was reverted because tests/comfy-library-4.test.ts, a hot file, pins that workflow's exact binding list, and adding to it isn't an allowed edit. To add it: the sampler binding in library.spec.mjs, rebuild and validate image-to-splat-triposplat, add 'sampler' to that test's expected bindings, then a 'triposplat-50' variant (oss-triposplat, extra {steps 50, sampler euler, cfg 4, numGaussians 262144}). The Results section says to run it before Idol goes first.",
+ "The GPU run itself, on an 8-16 GB GPU with both models' weights and the metrics venv with torch plus DINOv2 (pnpm eval:setup --download --dinov2). Commands are in idol-9.md Results and the eval README. Record the GPU, driver and ComfyUI version with --label and in the results table.",
+ "Defaults change (MODELS_3D.splat.open order, IDOL_PRESETS.quick, photo-crop default) only after that run, in a separate commit a person reviews.",
+ "Demo runs give the splat as a GLB alone: the mock's open splat has no orbit video, so a demo run has no review pairs or scores. I tried adding a demo orbit and reverted it, because it changed Image to 3D's demo cards and broke tests/e2e/idol-final.mjs.",
+ "Not re-checked at the primary source: fal TripoSplat's ~$0.05 per job is the catalog's figure. The harness prices each cloud job on the server before it runs."
+ ],
+ "docsNotes": [
+ "docs/STATUS.md and ARCHITECTURE.md were not edited. For the docs pass: the evaluation harness has a 'splat' suite (Idol 3D vs TripoSplat; decides Splat mode's open default, Idol's Quick look and the photo crop) and a 'splat' metric (haze share in .spz/.ply). Results are pending a GPU run.",
+ "The harness case format gained variant 'tags' and suite 'defaults.styleModel' (documented in scripts/eval/README.md).",
+ "Brief out of date: review.mjs and covers.mjs pick the main output at L28 and L216 (mainOutput), not L19 and L66. idol-2 is merged, so photoCrop maps to cropMode real on the clean graph through idolGraphValues. The clean graph's preview still is now excluded from scoring. The clean graph prunes the saved file at 0.05, so Idol's haze is near 0 where the pack is installed (said in the docs)."
+ ],
+ "blocked": ""
+ },
+ "review": {
+ "findings": [
+ {
+ "severity": "low",
+ "category": "decision-rule",
+ "file": "scripts/eval/cases/splat.json",
+ "line": 8,
+ "summary": "Rule (1) in `decides` (repeated in docs/research/idol-9.md Results, item 1) asks for 'at least 6 [blind ratings] per case' for idol-best against triposplat-today. With 3 seeds, the review page offers only 3 such pairs per case.",
+ "failure_scenario": "buildPairs (scripts/eval/lib/review.mjs L62-75) pairs the candidate with each alternative once per key (case and seed). With seeds [1001, 2002, 3003], one reviewer gets 3 idol-best vs triposplat-today pairs per case, so the rule's '6 per case' can't be met unless a second person rates or the 6 counts every alternative (the promote rule's reading: Quick and the photo crop as well). The rule as written is ambiguous or can't be met for one reviewer. Suggested fix: say '6 per case across the alternatives (every pair offered)', or ask for two reviewers."
+ },
+ {
+ "severity": "low",
+ "category": "docs",
+ "file": "docs/research/idol-9.md",
+ "line": 372,
+ "summary": "The command list includes `pnpm eval:promote latest`. That judges idol-best against every alternative (idol-quick and idol-photo-crop too), so its per-case verdict is not decision (1) in `decides`.",
+ "failure_scenario": "promote() (scripts/eval/lib/compare.mjs L187) uses every other variant when --against isn't given. A case where idol-photo-crop beats idol-best on style is put 'on hold' even if Idol beats TripoSplat there, and someone reading that output as the Splat-default verdict would decide wrongly. `pnpm eval:promote latest --against triposplat-today` is the command that matches rule (1). Docs only; no code is affected."
+ },
+ {
+ "severity": "info",
+ "category": "not-verified",
+ "file": "scripts/eval/cases/splat.json",
+ "line": 177,
+ "summary": "The triposplat-cloud variant hasn't been run (no fal key here), and fal's ~$0.05 per job is the catalog's figure, not re-checked at the source. At 33 jobs that is about $1.65, under DEFAULT_CLOUD_CAP of $5.",
+ "failure_scenario": "None seen. The request has no `op`, but inferOperation (src/lib/catalog/plan.ts L37-76) falls through to routes[0].op = 'splat'. The fal .ply comes back as kind model3d, and splat.py reads it by its content."
+ }
+ ],
+ "checks": [
+ "Read the prompt, the binding rules and the implementer's report. Branch origin/o/idol-3 = 335acf19, worktree clean, base claude/fuobe-parity-4 is an ancestor. Diff: 14 files, all under scripts/eval, tests/eval-harness.test.ts and docs/research/idol-9.md. No src/, route, page, workflow, hot file, licence or migration change, so the public sign-up, tenant/account-inputs, pre-flight and ASSET_REFS rules don't apply.",
+ "\u00a73 and \u00a77.2 of idol-9.md are unchanged (only a new section was added). IDOL_PRESETS and MODELS_3D are unchanged. Commit messages are neutral 'Area: result'.",
+ "Variants against the manifest: image-to-splat-idol binds steps/cfg/sampler/numGaussians/photoCrop. The clean graph binds cropMode/minOpacity/maxScale. image-to-splat-triposplat binds steps and cfg but not sampler, so skipping triposplat-50 is what the brief allows. idolGraphValues and the comfy provider (L1873-1877) map photoCrop and cropMode correctly on both graphs. Without photoCrop, the core switch 88:104 defaults to false and the clean graph's crop to synthetic, so idol-best is a clean no-crop baseline.",
+ "The plan matches what was asked: open and demo expand idol-best/quick/photo-crop to oss-idol with the IDOL_PRESETS extras and triposplat-today to oss-triposplat with no extra. Photo-crop is skipped on cases without the photo tag. On cloud only triposplat-cloud runs, as 'triposplat'; the Idol variants are skipped (no Idol on the cloud).",
+ "media_outputs now drops a preview still that sits beside a clip. Of all the manifest graphs, only image-to-splat-idol-clean outputs an image preview next to a video, and no src/ code emits role 'preview', so other suites are unaffected. The review/covers mainOutput still picks the turntable (manifest output order: splat, turntable, preview).",
+ "splat.py checked against ComfyUI's own writers: I fed _gaussian_spz_bytes and _gaussian_ply_bytes (from /home/user/ComfyUI/comfy_extras/nodes_gaussian_splat.py, CPU torch) 1000 random Gaussians. Read back: spz haze 0.052 and ply 0.054, true value 0.054. The small gap is the 8-bit alpha quantisation near 0.05. Its parser layout matches ComfyUI's _parse_spz_gaussian and _parse_ply_gaussian.",
+ "eval.mjs: --style-model has no parseArgs default, so run.json's styleModel is actually used.",
+ "pnpm eval:validate: all suites pass (splat.json: 11 cases). node scripts/eval/gen-cases.mjs --check: generated files current.",
+ "pytest scripts/eval/metrics/tests (numpy + pillow venv): 47 passed, 5 skipped.",
+ "Targeted vitest: tests/eval-harness, eval-metrics, eval-api, model3d, idol: 5 files, 111 tests passed. Full vitest not rerun: the change is harness and docs only, and the implementer reported the full run with only known failures.",
+ "npx next typegen, then tsc --noEmit (8 GB heap; pnpm typecheck OOMed at the default heap): clean. eslint on the changed .mjs files and the test: clean.",
+ "No browser check (no page changed), so there was no .next to delete."
+ ],
+ "verdict": "approve: the suite, schema additions, plan tags, styleModel plumbing and splat metric are correct and well tested; only low-severity wording issues in the decision rules/docs remain"
+ },
+ "fix": {
+ "applied": [
+ "Review finding 1 (low, decision rule), confirmed: buildPairs pairs idol-best with each alternative once per case and seed, so at 3 seeds one reviewer gets only 3 idol-best vs triposplat-today pairs per case and the rule's '6 per case' could not be met. The rule in scripts/eval/cases/splat.json (decides) and in docs/research/idol-9.md (Results table and decision 1) now reads 'at least 6 per case, or every such pair the review offered when it offered fewer (3 per case for one reviewer at 3 seeds)', which is what promote() already applies (want = min(minRatings, offered)).",
+ "Review finding 2 (low, docs), confirmed: promote() without --against weighs every other variant (idol-quick, idol-photo-crop too). The idol-9.md command list now has 'pnpm eval:promote latest --against triposplat-today' (decision 1 only) and decision 1 says why; scripts/eval/README.md 'The splat suite' commands gained the same line. Commit a31422da, pushed to origin/o/idol-3."
+ ],
+ "rejected": [
+ "Review finding 3 (info, not verified: triposplat-cloud unrun, fal price is the catalog's figure): nothing to fix here; no fal key on this machine. Kept in 'left'."
+ ],
+ "checks": [
+ "Worktree /home/user/wt/o-idol-3 on o/idol-3: only this package's 3 commits on top of claude/fuobe-parity-4, base is an ancestor, tree clean at start. Base not merged (per instructions).",
+ "pnpm install --frozen-lockfile --prefer-offline: ok; npx next typegen: ok.",
+ "pnpm eval:validate: all suites pass (splat.json 11 cases). node scripts/eval/gen-cases.mjs --check: generated files current.",
+ "Targeted vitest tests/eval-harness.test.ts + tests/eval-metrics.test.ts: 47/47 passed.",
+ "pnpm typecheck (after typegen, 8 GB heap): exit 0.",
+ "pnpm lint: exit 0 (0 errors, 5 pre-existing warnings).",
+ "Full vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): the run was killed before finishing (the background job ended as [killed]), so it gives no full count. Before it stopped, the only failures were the known ones from main: soul-runs (2), dop-originals, preset-featured, comfy-reuse, split-soundtrack. Not rerun (one full run allowed). The fix changes only docs and one JSON string, which eval:validate and the eval-harness test cover. The implementer's full run showed only known failures.",
+ "No browser check (no page changed). .next (typegen types only) deleted; git status clean.",
+ "Finish: base claude/fuobe-parity-4 unchanged since the branch was cut (already up to date). npx next typegen, pnpm typecheck (8 GB heap) and pnpm lint exit 0. Full vitest (FUOBE_ACCOUNT_DISK_FREE_GB=1, --maxWorkers=2): 5788 passed, 6 failed, 4 skipped; the failures are only the known ones from main (comfy-reuse, dop-originals, preset-featured, soul-runs x2, split-soundtrack)."
+ ],
+ "finalSummary": "idol-3 adds a 'splat' evaluation suite: Idol 3D Best and Quick against TripoSplat as it ships, plus Idol with the photo crop on the 3 photo cases. It scores the orbit video on DINOv2 style against the input picture, temporal and aesthetic, and adds a numpy 'splat' haze metric read from the .spz or .ply. There is also a cloud-only fal TripoSplat reference variant labelled TripoSplat. This fix makes the decision rules ask for blind ratings one reviewer can actually give, and names the promote command that checks decision 1 (--against triposplat-today). Open engine: built and checked by schema validation, a demo dry run, a demo run and pytest. Real numbers need an 8-16 GB GPU with both models' weights and the metrics venv with torch and DINOv2. Cloud engine: only the triposplat-cloud reference variant (fal's hosted TripoSplat; no Idol on the cloud because it isn't hosted). It is priced under the harness spend cap and has not run because there's no fal key here. Demo: the suite runs end to end, but demo numbers decide nothing. Public sign-up: unaffected. This is a developer harness under scripts/eval plus docs, with no route, page or run path, so guests and accounts see nothing new. Accounts still can't start any 3D model (own-gpu-tool). No defaults changed (MODELS_3D.splat.open, IDOL_PRESETS), and \u00a73 and \u00a77.2 of idol-9.md are untouched.",
+ "left": [
+ "The GPU run itself (8-16 GB GPU, both models' weights, pnpm eval:setup --download --dinov2). The commands are in idol-9.md Results and the scripts/eval/README.md splat section. Record the GPU, driver and ComfyUI version.",
+ "TripoSplat at Idol's sampler (triposplat-50) was skipped as the brief allows. It needs a 'sampler' binding on image-to-splat-triposplat, and tests/comfy-library-4.test.ts pins that binding list (a hot file).",
+ "Default changes (MODELS_3D.splat.open order, IDOL_PRESETS.quick, the photo-crop default) come only after that run, in a separate commit a person reviews.",
+ "triposplat-cloud is unrun (no fal key). Its ~$0.05/job is the catalog's figure and hasn't been checked at fal's own pricing.",
+ "Demo runs have no orbit video for the open splat, so they produce no review pairs or scores."
+ ],
+ "blocked": ""
+ }
+}