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+
- cad
|
| 8 |
+
- multi-view
|
| 9 |
+
- synthetic-data
|
| 10 |
+
- image-to-cad
|
| 11 |
+
- qwen-image-edit
|
| 12 |
+
size_categories:
|
| 13 |
+
- 100K<n<1M
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: sketch
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: data/sketch/train/*.tar
|
| 19 |
+
- split: validation
|
| 20 |
+
path: data/sketch/validation/*.tar
|
| 21 |
+
- split: test
|
| 22 |
+
path: data/sketch/test/*.tar
|
| 23 |
+
- config_name: realistic
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path: data/realistic/train/*.tar
|
| 27 |
+
- split: validation
|
| 28 |
+
path: data/realistic/validation/*.tar
|
| 29 |
+
- split: test
|
| 30 |
+
path: data/realistic/test/*.tar
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# UniCAD Synthetic Multi-View CAD Images
|
| 34 |
+
|
| 35 |
+
This dataset contains the synthetic multi-view image data created for training
|
| 36 |
+
UniCAD. It provides four 1024 x 1024 RGB views of CAD objects in two visual
|
| 37 |
+
styles:
|
| 38 |
+
|
| 39 |
+
- `sketch`: hand-drawn-style images.
|
| 40 |
+
- `realistic`: photorealistic-style images.
|
| 41 |
+
|
| 42 |
+
The release contains only the UniCAD team's generated images and lightweight
|
| 43 |
+
provenance metadata. It does **not** redistribute Text2CAD descriptions,
|
| 44 |
+
Text2CAD CadQuery programs, or the original DeepCAD renders. Records retain the
|
| 45 |
+
upstream UID so that users who obtain those datasets under their own terms can
|
| 46 |
+
join them locally.
|
| 47 |
+
|
| 48 |
+
## Dataset size
|
| 49 |
+
|
| 50 |
+
| Style | Train CADs / images | Validation CADs / images | Test CADs / images | Total images |
|
| 51 |
+
|---|---:|---:|---:|---:|
|
| 52 |
+
| Sketch | 67,457 / 269,828 | 5,690 / 22,760 | 7,105 / 28,420 | 321,008 |
|
| 53 |
+
| Realistic | 69,144 / 276,576 | 5,849 / 23,396 | 7,934 / 31,736 | 331,708 |
|
| 54 |
+
| **Total** | **136,601 / 546,404** | **11,539 / 46,156** | **15,039 / 60,156** | **652,716** |
|
| 55 |
+
|
| 56 |
+
Some UIDs occur in both visual styles. Each CAD has exactly four views within a
|
| 57 |
+
style and split. The source PNG release is approximately 715 GiB.
|
| 58 |
+
|
| 59 |
+
## Format
|
| 60 |
+
|
| 61 |
+
The images are stored as WebDataset tar shards. Each image is one WebDataset
|
| 62 |
+
sample with the following pair of members:
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
<uid>_<view>.png
|
| 66 |
+
<uid>_<view>.json
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
The JSON metadata fields are:
|
| 70 |
+
|
| 71 |
+
- `uid`: the upstream CAD identifier.
|
| 72 |
+
- `split`: `train`, `validation`, or `test`.
|
| 73 |
+
- `style`: `sketch` or `realistic`.
|
| 74 |
+
- `view_index`: integer from 1 through 4.
|
| 75 |
+
- `source_dataset`: upstream source family used for provenance.
|
| 76 |
+
- `source_sha256`: checksum of the generated source PNG.
|
| 77 |
+
- `image_sha256`: checksum of the released image bytes.
|
| 78 |
+
- `encoding`, `width`, and `height`: released image properties.
|
| 79 |
+
|
| 80 |
+
Four records with the same `(uid, split, style)` form one multi-view CAD sample.
|
| 81 |
+
Shard manifests and SHA-256 checksums are included in `manifests/` and
|
| 82 |
+
`checksums/`.
|
| 83 |
+
|
| 84 |
+
## Loading
|
| 85 |
+
|
| 86 |
+
The dataset can be streamed with the Hugging Face `datasets` library or any
|
| 87 |
+
WebDataset-compatible reader:
|
| 88 |
+
|
| 89 |
+
```python
|
| 90 |
+
from datasets import load_dataset
|
| 91 |
+
|
| 92 |
+
dataset = load_dataset(
|
| 93 |
+
"webdataset",
|
| 94 |
+
data_files={
|
| 95 |
+
"train": "hf://datasets/Chen8566/UniCAD-Synthetic-Views/data/sketch/train/*.tar"
|
| 96 |
+
},
|
| 97 |
+
split="train",
|
| 98 |
+
streaming=True,
|
| 99 |
+
)
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
## Creation and provenance
|
| 103 |
+
|
| 104 |
+
The image-editing model was `Qwen/Qwen-Image-Edit`. Archived generation scripts
|
| 105 |
+
use seed 0 and `true_cfg_scale=4.0`. The realistic prompt was
|
| 106 |
+
`Transform the image into photorealistic style.` The sketch generation scripts
|
| 107 |
+
used either `Transform the image into hand-drawn sketch style.` or a longer
|
| 108 |
+
prompt requesting a faithful hand-drawn rendition without adding parts.
|
| 109 |
+
Inference steps vary across generation batches (6, 8, 10, or 50). Per-image
|
| 110 |
+
generation parameters were not logged, so the exact batch settings cannot be
|
| 111 |
+
recovered for every individual image.
|
| 112 |
+
|
| 113 |
+
UID selection and train/validation/test membership follow Text2CAD annotations.
|
| 114 |
+
The underlying CAD render family comes from DeepCAD. Invalid, undecodable, and
|
| 115 |
+
all-black images were excluded by the UniCAD training data loader; a CAD is
|
| 116 |
+
included only when all four views for that style can be decoded and are not
|
| 117 |
+
all-black.
|
| 118 |
+
|
| 119 |
+
## Upstream resources and attribution
|
| 120 |
+
|
| 121 |
+
- DeepCAD: <https://github.com/rundiwu/DeepCAD>
|
| 122 |
+
- Text2CAD: <https://github.com/SadilKhan/Text2CAD>
|
| 123 |
+
- Qwen-Image-Edit: <https://huggingface.co/Qwen/Qwen-Image-Edit>
|
| 124 |
+
|
| 125 |
+
Please cite and comply with the applicable upstream terms when combining this
|
| 126 |
+
release with upstream descriptions, CAD programs, or original renders.
|
| 127 |
+
|
| 128 |
+
## License
|
| 129 |
+
|
| 130 |
+
The UniCAD-generated portion of this release is distributed under
|
| 131 |
+
[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
| 132 |
+
(CC BY-NC-SA 4.0). See [LICENSE.md](LICENSE.md) for attribution and scope.
|
| 133 |
+
|
| 134 |
+
## Limitations
|
| 135 |
+
|
| 136 |
+
- These are synthetic image edits rather than photographs or human drawings.
|
| 137 |
+
- Generated images may contain image-model artifacts or geometric deviations.
|
| 138 |
+
- Coverage differs between the sketch and realistic styles.
|
| 139 |
+
- The dataset does not by itself contain target CAD code or natural-language
|
| 140 |
+
descriptions; join by `uid` with properly obtained upstream resources.
|