The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
CAD-SFT
Two subsets for supervised fine-tuning of CAD code-generation models.
Contents
cad-recode-20k (HF dataset config — loadable directly)
20,000 samples randomly drawn from filapro/cad-recode-v1.5 train split. Each CadQuery program is executed with cadquery, the resulting mesh is rendered into a single 4-view PNG, and both the code and the render are stored as a HuggingFace Dataset.
| column | dtype | description |
|---|---|---|
stem |
string | batch_XX/N (upstream location) |
code |
string | raw CadQuery Python source |
render_img |
Image | 4-view render of the executed mesh |
Usage:
from datasets import load_dataset
ds = load_dataset("Hula0401/cad-sft", "cad-recode-20k", split="train")
text2cad/ (raw files)
Reformatted Text2CAD corpus — 171,177 CadQuery .py files re-laid-out from single-line compact form into multi-line chained result = (…) form for friendlier LM training. Content/geometry is unchanged.
text2cad/
cadquery.tar.gz # 171,177 .py files
train.pkl # 76,238 × {uid, description}
val.pkl # 6,464 × {uid, description}
test.pkl # 8,035 × {uid, description}
Unpack: tar xf text2cad/cadquery.tar.gz. Each cadquery/{uid}.py is paired by uid with meshes/renders in Hula0401/deepcad_train_mesh.
Format difference, original vs. reformatted:
# Original (compact)
import cadquery as cq
w0=cq.Workplane('XY',origin=(-100,0,-14))
r=w0.sketch().face(w0.sketch().push([(100,0)]).circle(100)).finalize().extrude(28)
# Reformatted
import cadquery as cq
result = (
cq.Workplane('XY', origin=(-100, 0, -14))
.sketch()
.face(
cq.Workplane('XY', origin=(-100, 0, -14))
.sketch()
.push([(100, 0)])
.circle(100)
)
.finalize()
.extrude(28)
)
Upstream
- CAD-Recode v1.5 —
filapro/cad-recode-v1.5@misc{rukhovich2024cadrecode, title={CAD-Recode: Reverse Engineering CAD Code from Point Clouds}, author={Danila Rukhovich and Elona Dupont and Dimitrios Mallis and Kseniya Cherenkova and Anis Kacem and Djamila Aouada}, year={2024}, eprint={2412.14042}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2412.14042} } - Text2CAD — reformatted from the Text2CAD corpus (uids align with DeepCAD).
License
cc-by-nc-4.0 (inherited from upstream CAD-Recode v1.5).
- Downloads last month
- 791