Datasets:
Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- 3d
|
| 7 |
+
- point-cloud
|
| 8 |
+
- mesh
|
| 9 |
+
- modelnet40
|
| 10 |
+
- cad
|
| 11 |
+
pretty_name: ModelNet40 Auto Aligned
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: default
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: data/train-*
|
| 19 |
+
- split: test
|
| 20 |
+
path: data/test-*
|
| 21 |
+
dataset_info:
|
| 22 |
+
features:
|
| 23 |
+
- name: object_id
|
| 24 |
+
dtype: large_string
|
| 25 |
+
- name: class
|
| 26 |
+
dtype: large_string
|
| 27 |
+
- name: split
|
| 28 |
+
dtype: large_string
|
| 29 |
+
- name: object_path
|
| 30 |
+
dtype: large_string
|
| 31 |
+
- name: __index_level_0__
|
| 32 |
+
dtype: int64
|
| 33 |
+
splits:
|
| 34 |
+
- name: train
|
| 35 |
+
num_bytes: 186438
|
| 36 |
+
num_examples: 9843
|
| 37 |
+
- name: test
|
| 38 |
+
num_bytes: 48215
|
| 39 |
+
num_examples: 2468
|
| 40 |
+
download_size: 234653
|
| 41 |
+
dataset_size: 234653
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
# ModelNet40 Auto Aligned
|
| 45 |
+
|
| 46 |
+
Auto-aligned version of the [ModelNet40](https://modelnet.cs.princeton.edu/) 3D CAD dataset. Each sample is an OFF mesh file organized by class and train/test split.
|
| 47 |
+
|
| 48 |
+
This dataset mirrors the layout of [`naderalfares/ModelNet40`](https://huggingface.co/datasets/naderalfares/ModelNet40), but uses the auto-aligned meshes from the Princeton ModelNet release.
|
| 49 |
+
|
| 50 |
+
## Dataset structure
|
| 51 |
+
|
| 52 |
+
```
|
| 53 |
+
modelnet40_auto_aligned/
|
| 54 |
+
{class}/
|
| 55 |
+
train/{class}_{id}.off
|
| 56 |
+
test/{class}_{id}.off
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
- **40 classes** (airplane, bathtub, bed, …, xbox)
|
| 60 |
+
- **9,843** training meshes
|
| 61 |
+
- **2,468** test meshes
|
| 62 |
+
- **12,311** meshes total (~9.7 GB)
|
| 63 |
+
|
| 64 |
+
The parquet manifest stores metadata only. Mesh files live under `modelnet40_auto_aligned/` and are referenced by the `object_path` column (without that prefix).
|
| 65 |
+
|
| 66 |
+
## Load metadata with 🤗 Datasets
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from datasets import load_dataset
|
| 70 |
+
|
| 71 |
+
ds = load_dataset("naderalfares/ModelNet40_Auto_aligned")
|
| 72 |
+
|
| 73 |
+
print(ds)
|
| 74 |
+
# DatasetDict({
|
| 75 |
+
# train: Dataset({ features: ['object_id', 'class', 'split', 'object_path', '__index_level_0__'], num_rows: 9843 })
|
| 76 |
+
# test: Dataset({ features: ['object_id', 'class', 'split', 'object_path', '__index_level_0__'], num_rows: 2468 })
|
| 77 |
+
# })
|
| 78 |
+
|
| 79 |
+
row = ds["train"][0]
|
| 80 |
+
print(row)
|
| 81 |
+
# {'object_id': 'airplane_0001', 'class': 'airplane', 'split': 'train',
|
| 82 |
+
# 'object_path': 'airplane/train/airplane_0001.off', '__index_level_0__': 100}
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Download a mesh file
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from huggingface_hub import hf_hub_download
|
| 89 |
+
|
| 90 |
+
repo_id = "naderalfares/ModelNet40_Auto_aligned"
|
| 91 |
+
row = ds["train"][0]
|
| 92 |
+
|
| 93 |
+
mesh_path = hf_hub_download(
|
| 94 |
+
repo_id=repo_id,
|
| 95 |
+
repo_type="dataset",
|
| 96 |
+
filename=f"modelnet40_auto_aligned/{row['object_path']}",
|
| 97 |
+
)
|
| 98 |
+
print(mesh_path) # local path to airplane_0001.off
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
## Citation
|
| 102 |
+
|
| 103 |
+
If you use this dataset, please cite the original ModelNet paper and the auto-alignment work:
|
| 104 |
+
|
| 105 |
+
```bibtex
|
| 106 |
+
@inproceedings{wu20153d,
|
| 107 |
+
title={3D ShapeNets: A Deep Representation for Volumetric Shapes},
|
| 108 |
+
author={Wu, Zhirong and Song, Shuran and Khademi, Adarsh and Zhao, Tian and others},
|
| 109 |
+
booktitle={CVPR},
|
| 110 |
+
year={2015}
|
| 111 |
+
}
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
## License
|
| 115 |
+
|
| 116 |
+
MIT
|