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| 15 |
+
- abo
|
| 16 |
+
- 3d-front
|
| 17 |
+
- meshlex
|
| 18 |
+
size_categories:
|
| 19 |
+
- 100K<n<1M
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# MeshLex-Data-Source
|
| 23 |
+
|
| 24 |
+
A large-scale collection of **158,588 geometry-only GLB meshes** (281 GB) from four major 3D datasets, unified under a single sharded directory structure. Built as the source data layer for the [MeshLex](https://github.com/Pthahnix/MeshLex-Research) research project, but broadly useful for any 3D mesh generation, reconstruction, or analysis research.
|
| 25 |
+
|
| 26 |
+
## Overview
|
| 27 |
+
|
| 28 |
+
| | Files | Size | Categories | Median Faces | Median Vertices |
|
| 29 |
+
|---|---:|---:|---:|---:|---:|
|
| 30 |
+
| **ABO** | 7,952 | 6.4 GB | — | 18,239 | 10,990 |
|
| 31 |
+
| **ShapeNet** | 52,472 | 35.9 GB | 55 | 7,037 | 6,586 |
|
| 32 |
+
| **Objaverse** | 45,975 | 155.1 GB | 1,156 | 14,956 | 11,775 |
|
| 33 |
+
| **3D-Front** | 52,189 | 84.1 GB | 19,121 | 44,347 | 54,227 |
|
| 34 |
+
| **Total** | **158,588** | **281.5 GB** | **20,332** | **18,584** | **17,288** |
|
| 35 |
+
|
| 36 |
+
All meshes are stored as **geometry-only GLB** files — materials, textures, and non-geometry metadata have been stripped. Each file contains only vertices and faces, loaded via [trimesh](https://trimesh.org/) with `force="mesh"`.
|
| 37 |
+
|
| 38 |
+
## Directory Structure
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
data-abo/
|
| 42 |
+
00/ # shard 0: indices 0–9999
|
| 43 |
+
00000-of-07952.glb
|
| 44 |
+
00001-of-07952.glb
|
| 45 |
+
...
|
| 46 |
+
data-shapenet/
|
| 47 |
+
00/ # shard 0: indices 0–9999
|
| 48 |
+
01/ # shard 1: indices 10000–19999
|
| 49 |
+
...
|
| 50 |
+
05/ # shard 5: indices 50000–52471
|
| 51 |
+
data-objaverse/
|
| 52 |
+
00/ ... 04/
|
| 53 |
+
data-3d-front/
|
| 54 |
+
00/ ... 05/
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
**Naming convention:** `{index:05d}-of-{total:05d}.glb`
|
| 58 |
+
|
| 59 |
+
**Sharding:** Files are split into subdirectories of up to 10,000 files each (`shard = index // 10000`) to stay within HuggingFace's per-directory file limit.
|
| 60 |
+
|
| 61 |
+
**Local flat layout:** When downloaded, the original flat filenames follow the pattern `{source}-{index:05d}-of-{total:05d}.glb` (e.g., `shapenet-00123-of-52472.glb`).
|
| 62 |
+
|
| 63 |
+
## Data Sources
|
| 64 |
+
|
| 65 |
+
### Amazon Berkeley Objects (ABO)
|
| 66 |
+
|
| 67 |
+
- **Origin:** [ABO Dataset](https://amazon-berkeley-objects.s3.amazonaws.com/index.html) — real product 3D models from Amazon catalog listings
|
| 68 |
+
- **Processing:** Downloaded GLBs → geometry extraction via trimesh → degenerate mesh filtering (< 4 faces removed)
|
| 69 |
+
- **License:** [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
| 70 |
+
- **Stats:** 7,952 meshes (1 failed conversion). Face count ranges from 20 to 11.5M (median 18K).
|
| 71 |
+
|
| 72 |
+
### ShapeNetCore v2
|
| 73 |
+
|
| 74 |
+
- **Origin:** [ShapeNet](https://shapenet.org/) — large-scale 3D model repository organized by WordNet synsets
|
| 75 |
+
- **Processing:** OBJ models → trimesh load with `force="mesh"` → geometry-only GLB export
|
| 76 |
+
- **License:** [ShapeNet Terms of Use](https://shapenet.org/terms) — research and educational purposes only
|
| 77 |
+
- **Stats:** 52,472 meshes across 55 categories. Top categories: table (8,436), chair (6,778), airplane (4,045), car (3,514), sofa (3,173).
|
| 78 |
+
|
| 79 |
+
### Objaverse-LVIS
|
| 80 |
+
|
| 81 |
+
- **Origin:** [Objaverse](https://objaverse.allenai.org/) — massive crowd-sourced 3D asset collection, filtered to the LVIS subset (objects with LVIS category annotations)
|
| 82 |
+
- **Processing:** Downloaded via `objaverse` Python package → GLB conversion → geometry extraction → degenerate mesh filtering
|
| 83 |
+
- **License:** Individual objects carry their own licenses; the majority are [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/). See the [Objaverse license page](https://objaverse.allenai.org/objaverse-1.0) for details.
|
| 84 |
+
- **Stats:** 45,975 meshes across 1,156 LVIS categories. Top categories: chair (453), seashell (370), antenna (174), shield (146), snowman (145).
|
| 85 |
+
|
| 86 |
+
### 3D-FRONT
|
| 87 |
+
|
| 88 |
+
- **Origin:** [3D-FRONT](https://tianchi.aliyun.com/specials/promotion/alibaba-3d-scene-dataset) — large-scale indoor scene dataset with professionally designed room layouts and furniture
|
| 89 |
+
- **Processing:** Concatenated tar.gz parts → streaming extraction via `tarfile` → per-furniture model deduplication (UUID-based) → geometry-only GLB conversion
|
| 90 |
+
- **License:** [3D-FRONT Terms of Use](https://tianchi.aliyun.com/specials/promotion/alibaba-3d-scene-dataset) — academic and research purposes only
|
| 91 |
+
- **Stats:** 52,189 unique furniture models deduplicated from scene data, across 19,121 model categories. Top categories: Cabinet (5,041), Sofa (1,928), Lighting (1,795), Chair (1,357).
|
| 92 |
+
|
| 93 |
+
## Usage
|
| 94 |
+
|
| 95 |
+
### Quick Start
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
from huggingface_hub import hf_hub_download
|
| 99 |
+
import trimesh
|
| 100 |
+
|
| 101 |
+
# Download a single mesh
|
| 102 |
+
path = hf_hub_download(
|
| 103 |
+
repo_id="Pthahnix/MeshLex-Data-Source",
|
| 104 |
+
filename="data-shapenet/00/00123-of-52472.glb",
|
| 105 |
+
repo_type="dataset",
|
| 106 |
+
)
|
| 107 |
+
mesh = trimesh.load(path, force="mesh")
|
| 108 |
+
print(f"Vertices: {len(mesh.vertices)}, Faces: {len(mesh.faces)}")
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
### Browse by Source
|
| 112 |
+
|
| 113 |
+
```python
|
| 114 |
+
from huggingface_hub import HfApi
|
| 115 |
+
|
| 116 |
+
api = HfApi()
|
| 117 |
+
|
| 118 |
+
# List all files under a source directory
|
| 119 |
+
files = api.list_repo_tree(
|
| 120 |
+
"Pthahnix/MeshLex-Data-Source",
|
| 121 |
+
path_in_repo="data-objaverse/00",
|
| 122 |
+
repo_type="dataset",
|
| 123 |
+
recursive=True,
|
| 124 |
+
)
|
| 125 |
+
glb_files = [f.rfilename for f in files if f.rfilename.endswith(".glb")]
|
| 126 |
+
print(f"Found {len(glb_files)} GLBs in shard 00")
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
### Bulk Download
|
| 130 |
+
|
| 131 |
+
```python
|
| 132 |
+
from huggingface_hub import snapshot_download
|
| 133 |
+
|
| 134 |
+
# Download an entire source (e.g., ShapeNet — 35.9 GB)
|
| 135 |
+
snapshot_download(
|
| 136 |
+
repo_id="Pthahnix/MeshLex-Data-Source",
|
| 137 |
+
repo_type="dataset",
|
| 138 |
+
allow_patterns="data-shapenet/**",
|
| 139 |
+
local_dir="./meshlex-data",
|
| 140 |
+
)
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
### Load and Inspect
|
| 144 |
+
|
| 145 |
+
```python
|
| 146 |
+
import trimesh
|
| 147 |
+
from pathlib import Path
|
| 148 |
+
|
| 149 |
+
data_dir = Path("./meshlex-data/data-shapenet")
|
| 150 |
+
for glb in sorted(data_dir.rglob("*.glb"))[:5]:
|
| 151 |
+
mesh = trimesh.load(str(glb), force="mesh")
|
| 152 |
+
print(f"{glb.name}: {len(mesh.faces)} faces, {len(mesh.vertices)} vertices")
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
## Mesh Statistics
|
| 156 |
+
|
| 157 |
+
### Face Count Distribution
|
| 158 |
+
|
| 159 |
+
| Source | Min | Median | Mean | Max |
|
| 160 |
+
|---|---:|---:|---:|---:|
|
| 161 |
+
| ABO | 20 | 18,239 | 42,448 | 11,540,224 |
|
| 162 |
+
| ShapeNet | 16 | 7,037 | 30,046 | 4,443,092 |
|
| 163 |
+
| Objaverse | 4 | 14,956 | 153,404 | 20,818,039 |
|
| 164 |
+
| 3D-Front | 4 | 44,347 | 59,642 | 3,361,058 |
|
| 165 |
+
|
| 166 |
+
### Vertex Count Distribution
|
| 167 |
+
|
| 168 |
+
| Source | Min | Median | Mean | Max |
|
| 169 |
+
|---|---:|---:|---:|---:|
|
| 170 |
+
| ABO | 56 | 10,990 | 24,386 | 5,870,562 |
|
| 171 |
+
| ShapeNet | 20 | 6,586 | 26,913 | 6,163,387 |
|
| 172 |
+
| Objaverse | 8 | 11,775 | 127,680 | 15,398,448 |
|
| 173 |
+
| 3D-Front | 6 | 54,227 | 74,556 | 5,206,898 |
|
| 174 |
+
|
| 175 |
+
### Category Breakdown (Top 10 across all sources)
|
| 176 |
+
|
| 177 |
+
| Category | Source | Count |
|
| 178 |
+
|---|---|---:|
|
| 179 |
+
| table | ShapeNet | 8,436 |
|
| 180 |
+
| chair | ShapeNet | 6,778 |
|
| 181 |
+
| Cabinet | 3D-Front | 5,041 |
|
| 182 |
+
| airplane | ShapeNet | 4,045 |
|
| 183 |
+
| car | ShapeNet | 3,514 |
|
| 184 |
+
| sofa | ShapeNet | 3,173 |
|
| 185 |
+
| Sofa | 3D-Front | 1,928 |
|
| 186 |
+
| Lighting | 3D-Front | 1,795 |
|
| 187 |
+
| Others | 3D-Front | 1,726 |
|
| 188 |
+
| Chair | 3D-Front | 1,357 |
|
| 189 |
+
|
| 190 |
+
## Processing Pipeline
|
| 191 |
+
|
| 192 |
+
This dataset was produced by the MeshLex v5.1 pipeline:
|
| 193 |
+
|
| 194 |
+
1. **Download** raw 3D assets from each source (GLB, OBJ, or tar.gz)
|
| 195 |
+
2. **Load** via trimesh with `force="mesh"` to collapse scene graphs into single meshes
|
| 196 |
+
3. **Strip** materials, textures, normals, and UV coordinates — retain only vertices and faces
|
| 197 |
+
4. **Filter** degenerate meshes (< 4 faces)
|
| 198 |
+
5. **Deduplicate** (3D-Front only: UUID-based model deduplication across scenes)
|
| 199 |
+
6. **Export** as geometry-only GLB
|
| 200 |
+
7. **Upload** in sharded batches to HuggingFace (500 files per commit)
|
| 201 |
+
|
| 202 |
+
## Limitations
|
| 203 |
+
|
| 204 |
+
- **Geometry only:** All material, texture, and color information has been removed. These meshes are not suitable for rendering without re-texturing.
|
| 205 |
+
- **No decimation applied:** Meshes retain their original polygon counts, which vary widely (4 to 20M faces). Downstream pipelines should apply their own decimation strategy.
|
| 206 |
+
- **Mixed quality:** Source datasets have varying levels of mesh quality. Some meshes may be non-manifold, have self-intersections, or contain disconnected components.
|
| 207 |
+
- **Category coverage:** ABO meshes lack category labels in this release (marked as "unknown").
|
| 208 |
+
|
| 209 |
+
## License
|
| 210 |
+
|
| 211 |
+
This dataset aggregates meshes from multiple sources, each with its own license:
|
| 212 |
+
|
| 213 |
+
| Source | License | Commercial Use |
|
| 214 |
+
|---|---|---|
|
| 215 |
+
| ABO | CC-BY 4.0 | Yes |
|
| 216 |
+
| ShapeNet | ShapeNet Terms of Use | No (research only) |
|
| 217 |
+
| Objaverse | Per-object (mostly CC-BY 4.0) | Varies |
|
| 218 |
+
| 3D-Front | 3D-FRONT Terms of Use | No (research only) |
|
| 219 |
+
|
| 220 |
+
**Important:** Due to ShapeNet and 3D-Front restrictions, this dataset as a whole should be treated as **research and educational use only**. If you need commercial-use data, filter to ABO and Objaverse subsets with compatible licenses.
|
| 221 |
+
|
| 222 |
+
The processing pipeline code is licensed under [Apache 2.0](https://github.com/Pthahnix/MeshLex-Research/blob/main/LICENSE).
|
| 223 |
+
|
| 224 |
+
## Citation
|
| 225 |
+
|
| 226 |
+
If you use this dataset in your research, please cite:
|
| 227 |
+
|
| 228 |
+
```bibtex
|
| 229 |
+
@misc{meshlex-data-source-2026,
|
| 230 |
+
title={MeshLex-Data-Source: A Unified Collection of Geometry-Only 3D Meshes},
|
| 231 |
+
author={Pthahnix},
|
| 232 |
+
year={2026},
|
| 233 |
+
howpublished={\url{https://huggingface.co/datasets/Pthahnix/MeshLex-Data-Source}},
|
| 234 |
+
}
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
Please also cite the original datasets:
|
| 238 |
+
|
| 239 |
+
<details>
|
| 240 |
+
<summary>Source dataset citations</summary>
|
| 241 |
+
|
| 242 |
+
**ABO:**
|
| 243 |
+
```bibtex
|
| 244 |
+
@inproceedings{collins2022abo,
|
| 245 |
+
title={ABO: Dataset and Benchmarks for Real-World 3D Object Understanding},
|
| 246 |
+
author={Collins, Jasmine and Goel, Shubham and Deng, Kenan and Lutber, Achleshwar and
|
| 247 |
+
Xu, Leon and Gundogdu, Erhan and Zhang, Xi and Vicente, Tomas F. Yago and
|
| 248 |
+
Dideriksen, Thomas and Arber, Himanshu and Metez, Govind and Bikber, Matthew},
|
| 249 |
+
booktitle={CVPR},
|
| 250 |
+
year={2022}
|
| 251 |
+
}
|
| 252 |
+
```
|
| 253 |
+
|
| 254 |
+
**ShapeNet:**
|
| 255 |
+
```bibtex
|
| 256 |
+
@article{chang2015shapenet,
|
| 257 |
+
title={ShapeNet: An Information-Rich 3D Model Repository},
|
| 258 |
+
author={Chang, Angel X. and Funkhouser, Thomas and Guibas, Leonidas and Hanrahan, Pat and
|
| 259 |
+
Huang, Qixing and Li, Zimo and Savarese, Silvio and Savva, Manolis and Song, Shuran and
|
| 260 |
+
Su, Hao and Xiao, Jianxiong and Yi, Li and Yu, Fisher},
|
| 261 |
+
journal={arXiv preprint arXiv:1512.03012},
|
| 262 |
+
year={2015}
|
| 263 |
+
}
|
| 264 |
+
```
|
| 265 |
+
|
| 266 |
+
**Objaverse:**
|
| 267 |
+
```bibtex
|
| 268 |
+
@inproceedings{deitke2023objaverse,
|
| 269 |
+
title={Objaverse: A Universe of Annotated 3D Objects},
|
| 270 |
+
author={Deitke, Matt and Schwenk, Dustin and Salvador, Jordi and Weihs, Luca and
|
| 271 |
+
Michel, Oscar and VanderBilt, Eli and Schmidt, Ludwig and Ehsani, Kiana and
|
| 272 |
+
Kembhavi, Aniruddha and Farhadi, Ali},
|
| 273 |
+
booktitle={CVPR},
|
| 274 |
+
year={2023}
|
| 275 |
+
}
|
| 276 |
+
```
|
| 277 |
+
|
| 278 |
+
**3D-FRONT:**
|
| 279 |
+
```bibtex
|
| 280 |
+
@inproceedings{fu20213dfront,
|
| 281 |
+
title={3D-FRONT: 3D Furnished Rooms with layOuts and fUrNiTure},
|
| 282 |
+
author={Fu, Huan and Cai, Bowen and Gao, Lin and Zhang, Ling-Xiao and Wang, Jiaming and
|
| 283 |
+
Li, Cao and Zeng, Qixun and Sun, Chengyue and Jia, Rongfei and Zhao, Binqiang and
|
| 284 |
+
Zhang, Hao},
|
| 285 |
+
booktitle={ICCV},
|
| 286 |
+
year={2021}
|
| 287 |
+
}
|
| 288 |
+
```
|
| 289 |
+
|
| 290 |
+
</details>
|
| 291 |
+
|
| 292 |
+
## Related
|
| 293 |
+
|
| 294 |
+
- **[MeshLex-Research](https://github.com/Pthahnix/MeshLex-Research)** — The research project that produced this dataset
|
| 295 |
+
- **[MeshLex-Patches](https://huggingface.co/datasets/Pthahnix/MeshLex-Patches)** — Pre-segmented patch dataset derived from earlier Objaverse+ShapeNet processing
|