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.

Evaluation harness: covers names the folder and file it wrote

Claudeeb4647ac8884
diff --git a/scripts/eval/eval.mjs b/scripts/eval/eval.mjs
index c97642b3..c1404300 100644
--- a/scripts/eval/eval.mjs
+++ b/scripts/eval/eval.mjs
@@ -412,7 +412,7 @@ async function covers(args, ctx) {
for (const c of r.covers) ctx.print(` ${c.key} ← ${c.job}${c.metric ? ` (best ${c.metric}${c.score != null ? ` ${Number(c.score).toFixed(3)}` : ""})` : ""}`);
for (const sk of r.skipped.slice(0, 10)) ctx.print(` · ${sk.caseId}: ${sk.why}`);
if (r.skipped.length > 10) ctx.print(` · and ${r.skipped.length - 10} more`);
- if (r.covers.length && !v["dry-run"]) ctx.note("Look at the media and the diff of src/lib/preset-previews.generated.ts before committing them.");
+ if (r.covers.length && !v["dry-run"]) ctx.note(`Look at the media in ${path.relative(REPO_DIR, r.folder) || r.folder} and the diff of ${path.relative(REPO_DIR, r.manifest) || r.manifest} before committing them.`);
return 0;
}
diff --git a/scripts/eval/lib/covers.mjs b/scripts/eval/lib/covers.mjs
index ceba17ac..8ca7e6cd 100644
--- a/scripts/eval/lib/covers.mjs
+++ b/scripts/eval/lib/covers.mjs
@@ -140,7 +140,7 @@ export function makeCovers(dir, opts = {}) {
}
picked.push({ caseId, key: coverKey(best), row: best, metric, score: metric ? (jobScores(best, L.metrics)[metric] ?? null) : null });
}
- const result = { runId: L.run.runId, engine: L.run.engine, variant, covers: [], skipped };
+ const result = { runId: L.run.runId, engine: L.run.engine, variant, covers: [], skipped, manifest: opts.manifest ?? MANIFEST_FILE, folder: outDir };
if (opts.dryRun) {
result.covers = picked.map((p) => ({ key: p.key, caseId: p.caseId, job: p.row.id, metric: p.metric, score: p.score }));
return result;