Datasets:
Add native-aspect ShapeNetPU overview and simplify dataset card
Browse filesPreserve the selected airplane, chair and gray table. Show full native-resolution rendered frames and uniformly scaled point clouds; unify local paths and fold category counts. Only README.md and the overview PNG are changed.
- README.md +11 -4
- assets/shapenetpu_overview.png +3 -0
README.md
CHANGED
|
@@ -26,6 +26,8 @@ license_link: https://huggingface.co/spaces/ShapeNet/README/blob/main/TERMS.md
|
|
| 26 |
|
| 27 |
[Dataset summary](#dataset-summary) · [Download](#download) · [Directory structure](#directory-structure) · [Point groupings](#point-groupings) · [Point cloud format](#point-cloud-format) · [Use with ControlFlow3D](#using-shapenetpu-with-controlflow3d) · [Citation](#citation-and-acknowledgments)
|
| 28 |
|
|
|
|
|
|
|
| 29 |
<a id="news"></a>
|
| 30 |
|
| 31 |
## 📰 News
|
|
@@ -44,8 +46,6 @@ license_link: https://huggingface.co/spaces/ShapeNet/README/blob/main/TERMS.md
|
|
| 44 |
| Sparse input points per shape | 2,048 | 2,048 |
|
| 45 |
| Dense reference points per shape | 8,192 | 8,192 |
|
| 46 |
| Upsampling factor | 4× | 4× |
|
| 47 |
-
| Contiguous blocks per shape (derived) | 8 | 8 |
|
| 48 |
-
| Overlapping patches per PLY file (stored) | 10 | 10 |
|
| 49 |
| Rendered views per shape | 8 | Not included |
|
| 50 |
| Reference meshes | Not included | OBJ |
|
| 51 |
|
|
@@ -55,6 +55,9 @@ There are **35,762 shapes** in total. Each shape is identified by its ShapeNet c
|
|
| 55 |
|
| 56 |
## 🗂️ Categories and Splits
|
| 57 |
|
|
|
|
|
|
|
|
|
|
| 58 |
| Synset ID | Category | Train | Test |
|
| 59 |
| :--- | :--- | ---: | ---: |
|
| 60 |
| `02691156` | airplane | 2,705 | 478 |
|
|
@@ -72,6 +75,8 @@ There are **35,762 shapes** in total. Each shape is identified by its ShapeNet c
|
|
| 72 |
| `04530566` | watercraft | 1,229 | 217 |
|
| 73 |
| **Total** | **13 categories** | **30,395** | **5,367** |
|
| 74 |
|
|
|
|
|
|
|
| 75 |
<a id="download"></a>
|
| 76 |
|
| 77 |
## ⬇️ Download
|
|
@@ -80,7 +85,7 @@ Install the Hub client and the dependencies for the minimal reading example, the
|
|
| 80 |
|
| 81 |
```bash
|
| 82 |
pip install -U huggingface_hub numpy plyfile
|
| 83 |
-
hf download BaldFatTiger/ShapeNetPU --repo-type dataset --local-dir ShapeNetPU
|
| 84 |
```
|
| 85 |
|
| 86 |
For the test split only, append `--include "test/*"` to the download command.
|
|
@@ -155,10 +160,12 @@ The header comment `patch_index_space local_vertex` records this indexing conven
|
|
| 155 |
After downloading, this example reads one sparse cloud and constructs both grouping views:
|
| 156 |
|
| 157 |
```python
|
|
|
|
| 158 |
import numpy as np
|
| 159 |
from plyfile import PlyData
|
| 160 |
|
| 161 |
-
|
|
|
|
| 162 |
v = ply["vertex"].data
|
| 163 |
points = np.column_stack([v["x"], v["y"], v["z"]])
|
| 164 |
blocks = points.reshape(8, -1, 3) # 8 contiguous, non-overlapping blocks
|
|
|
|
| 26 |
|
| 27 |
[Dataset summary](#dataset-summary) · [Download](#download) · [Directory structure](#directory-structure) · [Point groupings](#point-groupings) · [Point cloud format](#point-cloud-format) · [Use with ControlFlow3D](#using-shapenetpu-with-controlflow3d) · [Citation](#citation-and-acknowledgments)
|
| 28 |
|
| 29 |
+

|
| 30 |
+
|
| 31 |
<a id="news"></a>
|
| 32 |
|
| 33 |
## 📰 News
|
|
|
|
| 46 |
| Sparse input points per shape | 2,048 | 2,048 |
|
| 47 |
| Dense reference points per shape | 8,192 | 8,192 |
|
| 48 |
| Upsampling factor | 4× | 4× |
|
|
|
|
|
|
|
| 49 |
| Rendered views per shape | 8 | Not included |
|
| 50 |
| Reference meshes | Not included | OBJ |
|
| 51 |
|
|
|
|
| 55 |
|
| 56 |
## 🗂️ Categories and Splits
|
| 57 |
|
| 58 |
+
<details>
|
| 59 |
+
<summary>View category-level train/test counts</summary>
|
| 60 |
+
|
| 61 |
| Synset ID | Category | Train | Test |
|
| 62 |
| :--- | :--- | ---: | ---: |
|
| 63 |
| `02691156` | airplane | 2,705 | 478 |
|
|
|
|
| 75 |
| `04530566` | watercraft | 1,229 | 217 |
|
| 76 |
| **Total** | **13 categories** | **30,395** | **5,367** |
|
| 77 |
|
| 78 |
+
</details>
|
| 79 |
+
|
| 80 |
<a id="download"></a>
|
| 81 |
|
| 82 |
## ⬇️ Download
|
|
|
|
| 85 |
|
| 86 |
```bash
|
| 87 |
pip install -U huggingface_hub numpy plyfile
|
| 88 |
+
hf download BaldFatTiger/ShapeNetPU --repo-type dataset --local-dir data/ShapeNetPU
|
| 89 |
```
|
| 90 |
|
| 91 |
For the test split only, append `--include "test/*"` to the download command.
|
|
|
|
| 160 |
After downloading, this example reads one sparse cloud and constructs both grouping views:
|
| 161 |
|
| 162 |
```python
|
| 163 |
+
from pathlib import Path
|
| 164 |
import numpy as np
|
| 165 |
from plyfile import PlyData
|
| 166 |
|
| 167 |
+
sample_path = next(Path("data/ShapeNetPU/test").glob("*/*/input/sparse_xyz.ply"))
|
| 168 |
+
ply = PlyData.read(str(sample_path))
|
| 169 |
v = ply["vertex"].data
|
| 170 |
points = np.column_stack([v["x"], v["y"], v["z"]])
|
| 171 |
blocks = points.reshape(8, -1, 3) # 8 contiguous, non-overlapping blocks
|
assets/shapenetpu_overview.png
ADDED
|
Git LFS Details
|