KaiWu commited on
Commit
5a3be35
·
1 Parent(s): 77be2f6

Add CAD benchmark v1 cases

Browse files
benchmarks/cad_v1/README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CAD Benchmark v1
2
+
3
+ This benchmark is a small, high-signal set of text-to-CAD prompts selected from generated CAD run manifests in the Hugging Face bucket `itzkdd/forgecad-storage`.
4
+
5
+ The set is backend-agnostic: the source manifests are historical CAD runs, but the prompts are intended to evaluate any active CAD generation tool in this project.
6
+
7
+ ## Format
8
+
9
+ Cases are stored in `cases.jsonl`, one JSON object per line.
10
+
11
+ Required fields:
12
+
13
+ - `id`: Stable benchmark case id.
14
+ - `source_run_id`: Original run id from `outputs/runs/<run_id>/manifest.json`.
15
+ - `source_generator`: Original generator recorded in the manifest.
16
+ - `prompt`: The original user prompt.
17
+ - `language`: Prompt language.
18
+ - `category`: Product or CAD category.
19
+ - `difficulty`: `easy`, `medium`, or `hard`.
20
+ - `tags`: Searchable labels for slicing results.
21
+ - `why_selected`: Short reason this case belongs in the benchmark.
22
+ - `expected_checks`: Executable evaluation targets for a future runner.
23
+
24
+ ## Selection Criteria
25
+
26
+ - Keep only CAD generator manifests.
27
+ - Keep only single-turn, self-contained text prompts.
28
+ - Prefer prompts with objective CAD checks: dimensions, topology, feature counts, component relationships, or unit conversion.
29
+ - Keep the set small enough for fast local regression runs.
30
+ - Include a mix of Chinese and English prompts, simple geometry, furniture, cabinetry, mechanical parts, architecture, jewelry, and product concepts.
31
+
32
+ ## Exclusion Rules
33
+
34
+ - Exclude Lux3D image-to-3D manifests.
35
+ - Exclude prompts containing `Uploaded image path`.
36
+ - Exclude context-dependent edits such as `try again`, `add arms`, or prompts that only make sense after a previous model.
37
+ - Exclude duplicate prompts.
38
+ - Exclude broad art/sculpture prompts unless they include clear CAD dimensions or objective structure.
39
+ - Exclude obviously truncated prompts or prompts without verifiable evaluation targets.
40
+
41
+ ## Why These Cases
42
+
43
+ The selected cases cover the most useful early benchmark surface for this project:
44
+
45
+ - Hard success checks: tool completion, STEP export, STL preview export.
46
+ - Dimensional correctness: metric units, imperial unit conversion, explicit sizes, wall thickness, hinge cup geometry.
47
+ - Topology correctness: holes, recessed panels, gussets, keyways, hollow drums, room relationships, component assemblies.
48
+ - Semantic correctness: whether the generated object actually matches the requested CAD object instead of becoming a generic shape.
49
+ - Practical user value: furniture, cabinetry, architecture, mechanical parts, jewelry, and product design requests all came from realistic usage patterns.
50
+
51
+ ## Current Non-Goals
52
+
53
+ - No eval runner is included in v1.
54
+ - No IoU, Chamfer Distance, F-score, or mesh metrics are computed yet.
55
+ - Multi-turn edit benchmarks should be built as a separate dataset because they require preserved conversation context.
benchmarks/cad_v1/cases.jsonl ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id":"ergonomic_table","source_run_id":"20260509_092325_ee6f3a","source_generator":"cadquery","prompt":"我想要一个长2m,宽0.5m,高度符合人体工学的桌子","language":"zh","category":"furniture","difficulty":"easy","tags":["dimensioned","metric_units","ergonomics","furniture"],"why_selected":"尺寸明确,同时需要合理推断人体工学桌高,适合作为基础家具 CAD case。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["overall length is approximately 2000 mm","overall width is approximately 500 mm","table height is in a plausible ergonomic range around 700-750 mm"],"topology_checks":["has a tabletop","has stable support legs or equivalent support structure"],"semantic_checks":["represents a usable table","uses metric unit conversion from meters to millimeters"]}}
2
+ {"id":"cable_spool_with_flanges","source_run_id":"20260509_092759_771b45","source_generator":"cadquery","prompt":"我想要一个卷筒,卷筒直径1m,长度0.8m,外侧挡板直径1.5m,厚度10mm。卷筒壁厚10mm.","language":"zh","category":"mechanical","difficulty":"medium","tags":["dimensioned","revolved_part","wall_thickness","flanges"],"why_selected":"典型回转体零件,包含筒身、壁厚和两侧挡板,几何与尺寸都适合自动检查。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["drum diameter is approximately 1000 mm","drum length is approximately 800 mm","outer flange diameter is approximately 1500 mm","flange thickness is approximately 10 mm","drum wall thickness is approximately 10 mm"],"topology_checks":["has a hollow cylindrical drum","has larger circular flanges at both ends"],"semantic_checks":["represents a cable spool or reel"]}}
3
+ {"id":"shaker_cabinet_door","source_run_id":"20260510_092442_3bf68d","source_generator":"cadquery","prompt":"Generate a detailed 3D CAD model of a classic shaker-style kitchen cabinet door front. Dimensions: 600 mm height, 450 mm width, 19 mm thickness. Frame width: 63 mm. Recessed center panel depth: 6 mm. Include rounded inner edges with a 3 mm fillet. The model should be suitable for CNC milling from MDF or solid wood. Provide a front and isometric view with precise measurements. No handles or hardware included. Style: clean, modern shaker, flat center panel.","language":"en","category":"cabinetry","difficulty":"medium","tags":["dimensioned","cnc","woodworking","fillet","recessed_panel"],"why_selected":"木工/CNC 高频场景,整体尺寸、边框宽度、凹陷深度和倒角都清楚。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["height is approximately 600 mm","width is approximately 450 mm","thickness is approximately 19 mm","frame width is approximately 63 mm","center panel is recessed approximately 6 mm","inner fillet radius is approximately 3 mm"],"topology_checks":["has outer frame rails and stiles","has a recessed flat center panel","does not include handles or hardware"],"semantic_checks":["matches a clean shaker cabinet door front","is suitable for CNC-style fabrication"]}}
4
+ {"id":"shaker_door_with_euro_hinges","source_run_id":"20260510_093048_e07a53","source_generator":"cadquery","prompt":"Generate a detailed 3D CAD model of a classic shaker-style kitchen cabinet door front with concealed euro-style hinges (cup hinges) included. Door dimensions: 600 mm height, 450 mm width, 19 mm thickness. Frame width: 63 mm. Recessed center panel depth: 6 mm. Rounded inner edges with a 3 mm fillet. On the back side of the door, add two hinge cups: one positioned 100 mm from the top edge and one 100 mm from the bottom edge, each inset 22 mm from the left side edge (as viewed from the back). Hinge cup diameter: 35 mm, cup depth: 12 mm. Include screw mounting holes for each hinge. The model should be suitable for CNC milling from MDF or solid wood. Provide front, back, and isometric views with precise measurements. Style: clean, modern shaker, flat center panel. No handles included.","language":"en","category":"cabinetry","difficulty":"hard","tags":["dimensioned","cnc","woodworking","hinge_cups","hole_features"],"why_selected":"在门板基础上增加背面铰杯和螺丝孔,是复杂约束满足率的高价值 case。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["door height is approximately 600 mm","door width is approximately 450 mm","door thickness is approximately 19 mm","hinge cup diameter is approximately 35 mm","hinge cup depth is approximately 12 mm","hinge cups are approximately 100 mm from top and bottom edges","hinge cups are inset approximately 22 mm from the side edge"],"topology_checks":["has shaker frame and recessed center panel","has two back-side hinge cup recesses","has screw mounting holes for each hinge","does not include handles"],"semantic_checks":["represents a cabinet door prepared for concealed euro-style hinges"]}}
5
+ {"id":"wpc_deck_with_subframe","source_run_id":"20260510_120222_480f61","source_generator":"cadquery","prompt":"design a wooden deck that is 5m in length, 2m in width and 1m off the ground using WPC. Need timber subframe.","language":"en","category":"architecture","difficulty":"medium","tags":["dimensioned","metric_units","deck","subframe"],"why_selected":"真实施工类需求,测试单位转换、平台结构和支撑结构表达。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["deck footprint is approximately 5000 mm by 2000 mm","deck walking surface is approximately 1000 mm above ground"],"topology_checks":["has deck boards or top platform","has a timber subframe","has support posts or equivalent elevated support"],"semantic_checks":["represents an elevated WPC deck rather than a solid block"]}}
6
+ {"id":"floor_plan_area_constraints","source_run_id":"20260510_123837_6c63f4","source_generator":"cadquery","prompt":"Make a house plan with total area of 210 sqm with bedroom , kitchen and hall of 60 sqm each and 2 toilets 10 sqm each. 1 toilet is attached to bedroom and another one to Hall. Add a balcony of 10 sqm to the hall","language":"en","category":"architecture","difficulty":"hard","tags":["floor_plan","area_constraints","rooms","layout"],"why_selected":"建筑平面类约束丰富,适合检查空间数量、面积分配和房间关系。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["total floor plan area is approximately 210 sqm","bedroom area is approximately 60 sqm","kitchen area is approximately 60 sqm","hall area is approximately 60 sqm","each toilet area is approximately 10 sqm","balcony area is approximately 10 sqm"],"topology_checks":["has bedroom, kitchen, hall, two toilets, and balcony","one toilet is attached to the bedroom","one toilet is attached to the hall","balcony connects to the hall"],"semantic_checks":["represents a house floor plan with room divisions"]}}
7
+ {"id":"signet_ring_precise_bezel","source_run_id":"20260510_142126_d17e52","source_generator":"cadquery","prompt":"A solid sterling silver oval signet ring, US size 8. The bezel face is a plain flat oval, 12mm in length and 10mm in width, with a smooth polished surface and no engravings. The shank (band) tapers naturally from the bezel width down toward the finger and is proportionally sized to match the 12×10mm oval face. On both sides of the shank, where it meets the bezel shoulders, there is a finely detailed jousting knight in full armor holding a broadsword upright — one knight on each shoulder, rendered in high relief. The knights face outward symmetrically. The entire ring is cast as one solid piece with no hollow sections. Photorealistic render, studio lighting, close-up view showing all three-quarter angle detail, silver/metal material.","language":"en","category":"jewelry","difficulty":"hard","tags":["jewelry","dimensioned","organic_detail","symmetry"],"why_selected":"珠宝 CAD 兼具明确尺寸、连续实体要求和复杂装饰语义,能暴露模型表达边界。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["oval bezel is approximately 12 mm by 10 mm","ring size is plausibly US size 8"],"topology_checks":["has a continuous ring band","has a flat oval signet bezel","has tapered shank shoulders","does not create hollow sections"],"semantic_checks":["includes symmetric knight relief elements on both shoulders","uses a silver or metal-like design language when represented geometrically"]}}
8
+ {"id":"floating_corner_shelf_desk","source_run_id":"20260511_013959_473bfe","source_generator":"cadquery","prompt":"create a floating corner shelf/desk in a pyramid style out of ply/oak where you only have wall studs to fix to","language":"en","category":"furniture","difficulty":"medium","tags":["furniture","mounting","corner","woodworking"],"why_selected":"功能性家具结构,测试转角、悬浮支撑和墙柱固定语义。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":[],"topology_checks":["has a corner shelf or desk surface","has pyramid-style bracing or stepped support geometry","has wall-stud fixing points or mounting features"],"semantic_checks":["represents a floating corner-mounted wood shelf or desk","avoids freestanding legs as the primary support"]}}
9
+ {"id":"kitchen_base_cabinet_two_doors","source_run_id":"20260511_032616_b64d14","source_generator":"cadquery","prompt":"kitchen base cabinet with two doors.","language":"en","category":"cabinetry","difficulty":"easy","tags":["cabinetry","furniture","doors"],"why_selected":"常见低约束家具请求,适合作为真实用户模糊 prompt 的基线 case。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":[],"topology_checks":["has a base cabinet body","has two front doors","has a plausible countertop or top panel"],"semantic_checks":["represents a kitchen base cabinet rather than a generic box"]}}
10
+ {"id":"centrifugal_pump_with_motor","source_run_id":"20260511_155536_d1c45a","source_generator":"cadquery","prompt":"create a centrifugal pump with an electrical motor","language":"en","category":"mechanical_assembly","difficulty":"hard","tags":["assembly","pump","motor","mechanical"],"why_selected":"机械装配语义强,适合检查多个功能部件是否同时出现。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":[],"topology_checks":["has a pump housing or volute","has an inlet and outlet","has an electrical motor body","has a shaft or coupling relationship between motor and pump"],"semantic_checks":["represents a centrifugal pump assembly, not a single generic cylinder"]}}
11
+ {"id":"underwater_drone_buoyancy_hulls","source_run_id":"20260511_224816_d410b0","source_generator":"cadquery","prompt":"Please do a rough design of an underwater drone with variable buoyancy hulls.","language":"en","category":"product_concept","difficulty":"medium","tags":["drone","marine","concept_design","buoyancy"],"why_selected":"产品概念 CAD case,测试功能部件覆盖和合理结构表达。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":[],"topology_checks":["has a central underwater drone body","has multiple buoyancy hulls or pontoons","has thrusters, fins, or marine propulsion/control features"],"semantic_checks":["represents an underwater drone concept with variable buoyancy features"]}}
12
+ {"id":"l_bracket_gussets_holes","source_run_id":"20260512_061818_b29296","source_generator":"cadquery","prompt":"Create an L-bracket from a base plate and rear vertical plate. Add vertical base holes, horizontal back-plate holes, two triangular gussets, and a filleted base/back transition.","language":"en","category":"mechanical","difficulty":"medium","tags":["bracket","holes","gussets","fillet"],"why_selected":"标准机械件,结构要素清晰,适合作为拓扑和特征检查核心样本。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":[],"topology_checks":["has perpendicular base and rear plates forming an L shape","has holes through the base plate","has holes through the back plate","has two triangular gussets","has a filleted transition between base and back plate"],"semantic_checks":["represents a manufacturable L-bracket"]}}
13
+ {"id":"stepped_shaft_keyway","source_run_id":"20260512_061958_b294a9","source_generator":"cadquery","prompt":"Create a 120 mm shaft along X with 20/30/20 mm diameter stepped sections. Add end chamfers and a shallow rectangular keyway on top of the middle section.","language":"en","category":"mechanical","difficulty":"medium","tags":["shaft","dimensioned","chamfer","keyway"],"why_selected":"轴类零件尺寸明确,台阶、倒角、键槽都可客观检查。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["shaft length along X is approximately 120 mm","shaft has stepped diameters approximately 20 mm, 30 mm, and 20 mm"],"topology_checks":["has three coaxial stepped cylindrical sections","has chamfered ends","has a shallow rectangular keyway on top of the middle section"],"semantic_checks":["represents a stepped mechanical shaft"]}}
14
+ {"id":"interior_door_production_drawing","source_run_id":"20260512_115904_a8822c","source_generator":"cadquery","prompt":"根据描述绘制户内门生产图,门框外径高度2032,宽度780,厚度116","language":"zh","category":"architecture","difficulty":"medium","tags":["door","dimensioned","production_drawing","zh"],"why_selected":"中文生产图需求,尺寸明确,适合评估中文 CAD 指令理解。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["outer frame height is approximately 2032 mm","outer frame width is approximately 780 mm","frame thickness or depth is approximately 116 mm"],"topology_checks":["has an interior door frame","has a door panel or opening representation"],"semantic_checks":["represents an interior door production-style model"]}}
15
+ {"id":"boolean_cube_corner_cut","source_run_id":"20260512_162643_bf3fb3","source_generator":"cadquery","prompt":"Draw cube x10y10z10mm. Draw cube x5y5z5. Cut smalles cube from biggest cube.","language":"en","category":"boolean_geometry","difficulty":"easy","tags":["boolean","cube","dimensioned","regression"],"why_selected":"最小 Boolean 回归 case,适合快速发现基础 CSG 能力问题。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["outer cube is approximately 10 mm by 10 mm by 10 mm","removed cube is approximately 5 mm by 5 mm by 5 mm"],"topology_checks":["contains a cube with a smaller cubic cutout","cutout is subtracted from the larger cube"],"semantic_checks":["performs boolean subtraction rather than placing two separate cubes"]}}
16
+ {"id":"imperial_plywood_panel","source_run_id":"20260512_163422_77de7f","source_generator":"cadquery","prompt":"Generate a 10 foot by 8 foot by 2 inch piece of plywood","language":"en","category":"sheet_goods","difficulty":"easy","tags":["imperial_units","dimensioned","woodworking","unit_conversion"],"why_selected":"极简英制尺寸 case,适合检查单位转换和薄板实体生成。","expected_checks":{"tool_success":true,"step_export":true,"stl_preview":true,"dimension_checks":["length is approximately 3048 mm after converting 10 ft","width is approximately 2438.4 mm after converting 8 ft","thickness is approximately 50.8 mm after converting 2 in"],"topology_checks":["is a single rectangular plywood sheet or panel"],"semantic_checks":["represents plywood as a thin sheet, not a cube or generic block"]}}