File size: 1,949 Bytes
dc12863
73dea64
 
 
 
 
 
 
 
 
 
 
dc12863
73dea64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: cc-by-4.0
task_categories:
- image-to-3d
- text-generation
tags:
- cad
- cadquery
- synthetic
- benchmark
size_categories:
- 1K<n<10K
---

# CAD Synthesis Benchmark — test_bench

Small-scale benchmark for **image → CadQuery code** generation.

**Task**: Given rendered views of an industrial part, generate CadQuery code that reproduces it.

**Evaluation**: Execute code → export STEP → compute IoU vs GT STEP.

## Splits

| Split | Families | Description |
|-------|----------|-------------|
| `test-iid` | 54 train families, XY plane | In-distribution test |
| `test-ood-family` | 19 held-out families | Family generalization |
| `test-ood-plane` | 54 train families, XZ/YZ | View generalization |

OOD families: `bellows`, `worm_screw`, `torus_link`, `impeller`, `propeller`,
`chair`, `table`, `snap_clip`, `waffle_plate`, `wire_grid`, `mesh_panel`,
`t_pipe_fitting`, `pipe_elbow`, `duct_elbow`, `dome_cap`, `capsule`,
`coil_spring`, `bucket`, `nozzle`

## Sample Fields (bench_manifest.jsonl)

```json
{
  "stem": "synth_handwheel_000042_s9999",
  "family": "handwheel",
  "difficulty": "easy",
  "base_plane": "XY",
  "split": "test-iid",
  "feature_tags": {"has_hole": true, "has_fillet": false, "has_chamfer": false},
  "feature_count": 1,
  "ops_used": ["circle", "extrude", "union", "cut"],
  "gt_code_path": "data/test-iid/synth_handwheel_000042_s9999/code.py",
  "gt_step_path": "data/test-iid/synth_handwheel_000042_s9999/gen.step",
  "composite_png": "data/test-iid/synth_handwheel_000042_s9999/views/composite.png"
}
```

## Metrics

- `exec_ok`: code executes (0/1)
- `iou`: voxel IoU vs GT STEP
- `feature_f1`: F1 of feature_tags (hole/fillet/chamfer/slot)
- `detail_score`: `0.4 × iou + 0.6 × feature_f1` (primary ranking metric)

## Generation

- Pipeline: `cad_synth` (73 families, parametric, multi-plane)
- Seed: 9999 (held out from training seed 1337)
- Rendered: 4-view normalized PNGs + 2×2 composite