vectorbench 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bench.config.mjs +21 -0
- package/bin/vectorbench.mjs +7 -0
- package/package.json +1 -1
package/bench.config.mjs
CHANGED
|
@@ -253,3 +253,24 @@ export const models = [
|
|
|
253
253
|
// InclusionAI (Ling 3.1 Flash, 29.6), MiniMax (M3.1 Flash, 29.1), StepFun
|
|
254
254
|
// (Step 5 Preview, 28.5), Mistral (Large 4, 26.1). Amazon's Nova and
|
|
255
255
|
// Microsoft's Phi models have no score on the index.
|
|
256
|
+
|
|
257
|
+
// What a voter can judge a pair on, one at a time, after their vote is in
|
|
258
|
+
// (the Battle Room's "Judge it by criterion"), and what the leaderboard's
|
|
259
|
+
// criteria chart is drawn from. They follow "What wins votes" in the request
|
|
260
|
+
// above, split where the sandbox gives a model a separate way to get it right:
|
|
261
|
+
// measurements and 3D for accuracy, generated repetition for detail, computed
|
|
262
|
+
// shading and perceptual colour for light and colour, `check` and `zoom` for
|
|
263
|
+
// a clean finish, `frames` for motion.
|
|
264
|
+
//
|
|
265
|
+
// `id` is permanent (it is stored with each judgment). `when: 'animated'`
|
|
266
|
+
// is only asked when at least one of the two SVGs moves.
|
|
267
|
+
export const criteria = [
|
|
268
|
+
{ id: 'request', name: 'Matches the request', short: 'Request', hint: 'Everything asked for is there and right: the subject, what it’s doing, and any number, words or arrangement.' },
|
|
269
|
+
{ id: 'accuracy', name: 'True to the real thing', short: 'Accuracy', hint: 'Proportions, anatomy and mechanics are right, and the parts fit together as they really do.' },
|
|
270
|
+
{ id: 'composition', name: 'Composition', short: 'Composition', hint: 'It fills the frame, reads at a glance, and the setting suits the subject.' },
|
|
271
|
+
{ id: 'colour', name: 'Colour', short: 'Colour', hint: 'A deliberate palette that suits the subject.' },
|
|
272
|
+
{ id: 'light', name: 'Light and depth', short: 'Light and depth', hint: 'Shading, shadows and highlights that make it look solid.' },
|
|
273
|
+
{ id: 'detail', name: 'Detail', short: 'Detail', hint: 'Fine detail and texture that hold up when you enlarge it.' },
|
|
274
|
+
{ id: 'finish', name: 'Clean finish', short: 'Finish', hint: 'Nothing broken: no stray shapes, gaps, bad overlaps or cut-off parts, and any lettering is readable.' },
|
|
275
|
+
{ id: 'motion', name: 'Motion', short: 'Motion', hint: 'It moves smoothly, loops without a jump, and the movement suits the subject.', when: 'animated' },
|
|
276
|
+
];
|
package/bin/vectorbench.mjs
CHANGED
|
@@ -19,6 +19,7 @@ const HELP = `vectorbench ${version}: draw VectorBench's prompts with your own m
|
|
|
19
19
|
(--prompt <id> for one first; \`vectorbench draw --help\` lists the options)
|
|
20
20
|
vectorbench doctor check this machine has what a drawing run needs
|
|
21
21
|
vectorbench prompts list the prompts
|
|
22
|
+
vectorbench criteria list what voters can judge a pair of drawings on, besides the vote
|
|
22
23
|
vectorbench dev run the site locally with made-up data (in a clone of the repository)
|
|
23
24
|
|
|
24
25
|
Drawings go to https://vectorbench.ai/partners.`;
|
|
@@ -45,6 +46,12 @@ switch (command) {
|
|
|
45
46
|
for (const { id, text } of prompts) console.log(`${id.padEnd(width)} ${text}`);
|
|
46
47
|
break;
|
|
47
48
|
}
|
|
49
|
+
case 'criteria': {
|
|
50
|
+
const { criteria } = await import(pathToFileURL(join(ROOT, 'bench.config.mjs')).href);
|
|
51
|
+
const width = Math.max(...criteria.map((c) => c.id.length));
|
|
52
|
+
for (const { id, name, hint, when } of criteria) console.log(`${id.padEnd(width)} ${name}. ${hint}${when === 'animated' ? ' (Asked only when a drawing is animated.)' : ''}`);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
48
55
|
case 'dev':
|
|
49
56
|
if (!existsSync(join(ROOT, 'scripts', 'dev.mjs')) || !existsSync(join(ROOT, 'wrangler.jsonc'))) {
|
|
50
57
|
console.error('`vectorbench dev` runs the site from a clone of the repository:\n\n git clone https://github.com/vectorbench/vectorbench.git\n cd vectorbench\n npm install\n npm run dev');
|
package/package.json
CHANGED