prithivMLmods commited on
Commit
3cf794d
·
verified ·
1 Parent(s): 2f05399

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -1
README.md CHANGED
@@ -19,6 +19,68 @@ language:
19
  - en
20
  ---
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ## Dataset and GLB File Mapping
23
 
24
  ```
@@ -136,4 +198,12 @@ print(f"Rows sharing a GLB file name : {dup_rows} (across {dup_names} file n
136
  print(f"\nSaved -> {MAPPED} (row_index | 3d_glb value | path in zip folder)")
137
  print(f"Saved -> {UNMAPPED} (row_index | 3d_glb value)")
138
  print(f"Saved -> {ZIP_ONLY} (file names present in zip but not referenced)")
139
- ```
 
 
 
 
 
 
 
 
 
19
  - en
20
  ---
21
 
22
+ # OpenSCAD-Code-to-3D-HF
23
+
24
+ ## Dataset Description
25
+
26
+ **OpenSCAD-Code-to-3D-HF** is a dataset built on top of [CodeCAD-HF-v2](https://huggingface.co/datasets/prithivMLmods/CodeCAD-HF-v2). It pairs natural language prompts with their corresponding OpenSCAD parametric code and references to rendered GLB (GL Transmission Format Binary) 3D model files.
27
+
28
+ The dataset provides text-based descriptions, procedural 3D modeling code, and corresponding 3D assets. The GLB files are distributed separately in a ZIP archive, `glb.zip`, with **~53,172 mapped data entries** identified through file mapping between the dataset records and the archived GLB files.
29
+
30
+ ## Dataset Statistics
31
+
32
+ | Property | Value |
33
+ |----------|-------|
34
+ | Dataset Repository | `prithivMLmods/OpenSCAD-Code-to-3D-HF` |
35
+ | Number of Mapped Data Entries | ~53,172 |
36
+ | GLB Storage | `glb.zip` |
37
+ | Main Dataset File | `dataset.parquet` |
38
+ | Data Format | Parquet + ZIP archive |
39
+ | Modalities | Text, 3D |
40
+
41
+ ## Dataset Structure
42
+
43
+ | Column | Type | Description |
44
+ |--------|------|-------------|
45
+ | `Prompt` | string | Natural language description of the 3D model |
46
+ | `Code` | string | OpenSCAD parametric code that generates the model |
47
+ | `3d_glb` | string | File path reference to the corresponding rendered `.glb` 3D model inside the ZIP archive |
48
+
49
+ ## GLB File Mapping
50
+
51
+ The GLB assets are stored in `glb.zip` rather than as individual files directly in the dataset repository. The `3d_glb` column contains references that can be mapped to the corresponding files in the archive.
52
+
53
+ The dataset mapping procedure identifies matching GLB files by filename and generates the following reports:
54
+
55
+ - `mapped_data.txt`: Dataset rows successfully mapped to GLB files in the ZIP archive.
56
+ - `unmapped_data.txt`: Dataset rows with empty GLB references or references to files that were not found in the archive.
57
+ - `zip_only_data.txt`: GLB archive filenames that are not referenced by any dataset row.
58
+
59
+ A total of **53,172 mapped data entries** were identified through this process.
60
+
61
+ ## Usage
62
+
63
+ Install the required dependencies:
64
+
65
+ ```bash
66
+ pip install -U datasets pandas pyarrow
67
+ ```
68
+
69
+ Load the dataset:
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ ds = load_dataset(
75
+ "prithivMLmods/OpenSCAD-Code-to-3D-HF",
76
+ data_files="dataset.parquet"
77
+ )
78
+
79
+ print(ds["train"][0])
80
+ ```
81
+
82
+ To access the GLB assets, download `glb.zip` from the dataset repository and extract the archive. The `3d_glb` references can then be matched to the extracted files using the mapping procedure.
83
+
84
  ## Dataset and GLB File Mapping
85
 
86
  ```
 
198
  print(f"\nSaved -> {MAPPED} (row_index | 3d_glb value | path in zip folder)")
199
  print(f"Saved -> {UNMAPPED} (row_index | 3d_glb value)")
200
  print(f"Saved -> {ZIP_ONLY} (file names present in zip but not referenced)")
201
+ ```
202
+
203
+ ## Source Dataset
204
+
205
+ This dataset is derived from [CodeCAD-HF-v2](https://huggingface.co/datasets/prithivMLmods/CodeCAD-HF-v2).
206
+
207
+ ## License
208
+
209
+ Please refer to the original [CodeCAD paper](https://dl.acm.org/doi/10.1145/3770855.3817592) for source data license terms.