0

Benchcad Vision2code

Fresh

BenchCAD Vision2Code — image of a mechanical part -> CadQuery program, scored by voxel IoU on the executed STEP solid (no judge).

Type
RL Env
Publisher
Benchcad
License
unknown
Size
v0.1.0
Published
Jun 2026

Cite

Notes

Only stored in your browser.

benchcad-vision2code

Image of a mechanical part → a CadQuery program. The model is shown a 2×2 composite of four diagonal rendered views of an industry-standard mechanical part and must write a CadQuery program that reproduces the geometry.

Reward = voxel IoU between the model's executed STEP solid and the ground-truth STEP. Execution-grounded and deterministic — there is no judge model. Non-executable outputs score 0.

Task

Inputa rendered 2×2 view composite (image)
Outputa CadQuery program binding the final solid to result
Rewardvoxel IoU on a normalized 64³ grid, |A∩B| / |A∪B|

Usage

# install + quick eval on a few parts
uv run vf-eval benchcad-vision2code -n 5

# in code
import verifiers as vf
env = vf.load_environment("benchcad-vision2code", num_examples=100)

load_environment(num_examples=None) — set num_examples to evaluate on the first N parts (handy for quick runs); omit for the full set.

Notes

The CadQuery execution and voxel-IoU scoring are vendored verbatim from the canonical scorer (BenchCAD/BenchCAD-main, Vision2Code/scoring/) so this environment is a self-contained package; that repository remains the source of truth. Requires the CadQuery / OCP stack (declared in pyproject.toml).