Louis Martinez commited on
Commit ·
63599c7
1
Parent(s): 845046e
Added readme
Browse files- README.md +136 -0
- static/donut_distrib.png +3 -0
- static/donut_samples.png +3 -0
README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DONUT (Dataset Of MaNifold strUcTures)
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
This repository contains a dataset of 3D samples made of watertight meshes and corresponding point clouds. Each sample is composed of one or several watertight mesh components and one 8192-point cloud representation.
|
| 5 |
+
|
| 6 |
+
The dataset contains **29,517 samples** in total.
|
| 7 |
+
|
| 8 |
+
## Overview
|
| 9 |
+
|
| 10 |
+
The figure below shows a few samples from the dataset together with their labels.
|
| 11 |
+
|
| 12 |
+

|
| 13 |
+
|
| 14 |
+
## Contents
|
| 15 |
+
|
| 16 |
+
The repository is organized as follows:
|
| 17 |
+
|
| 18 |
+
```text
|
| 19 |
+
.
|
| 20 |
+
├── metadata.csv
|
| 21 |
+
├── obj/
|
| 22 |
+
│ ├── shard_0/
|
| 23 |
+
│ ├── shard_1/
|
| 24 |
+
│ └── shard_2/
|
| 25 |
+
└── pcd/
|
| 26 |
+
├── shard_0/
|
| 27 |
+
├── shard_1/
|
| 28 |
+
└── shard_2/
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
- `obj/` contains the mesh files as `.npz` archives.
|
| 32 |
+
- `pcd/` contains the point clouds as `.npy` files.
|
| 33 |
+
- `metadata.csv` contains one row per sample with topological metadata.
|
| 34 |
+
|
| 35 |
+
There are **29,517** mesh files in `obj/` and **29,517** point cloud files in `pcd/`.
|
| 36 |
+
|
| 37 |
+
## File Format
|
| 38 |
+
|
| 39 |
+
### Meshes
|
| 40 |
+
|
| 41 |
+
Each mesh sample is stored as an `.npz` file in `obj/`. The archive contains:
|
| 42 |
+
|
| 43 |
+
- `vertices.npy`
|
| 44 |
+
- `faces.npy`
|
| 45 |
+
|
| 46 |
+
A sample may contain one or several watertight connected mesh components.
|
| 47 |
+
|
| 48 |
+
### Point Clouds
|
| 49 |
+
|
| 50 |
+
Each point cloud sample is stored as a `.npy` file in `pcd/`.
|
| 51 |
+
|
| 52 |
+
Each point cloud contains **8192 points** and corresponds to the sample with the same `id`.
|
| 53 |
+
|
| 54 |
+
## Sample Identification
|
| 55 |
+
|
| 56 |
+
Each sample is identified by a unique `id` string.
|
| 57 |
+
|
| 58 |
+
The same `id` is used in:
|
| 59 |
+
|
| 60 |
+
- the filename in `obj/`
|
| 61 |
+
- the filename in `pcd/`
|
| 62 |
+
- the `id` column in `metadata.csv`
|
| 63 |
+
|
| 64 |
+
For example, if a sample has id `abc123`, its files are:
|
| 65 |
+
|
| 66 |
+
- `obj/.../abc123.npz`
|
| 67 |
+
- `pcd/.../abc123.npy`
|
| 68 |
+
|
| 69 |
+
## Metadata
|
| 70 |
+
|
| 71 |
+
`metadata.csv` contains the following columns:
|
| 72 |
+
|
| 73 |
+
- `id`: unique identifier of the sample
|
| 74 |
+
- `genus`: total number of holes across all mesh components in the sample
|
| 75 |
+
- `components`: total number of connected mesh components in the sample
|
| 76 |
+
- `sample_code`: array of 6 integers describing how many components of each genus are present
|
| 77 |
+
|
| 78 |
+
## Meaning of `sample_code`
|
| 79 |
+
|
| 80 |
+
`sample_code` is an array of 6 integers:
|
| 81 |
+
|
| 82 |
+
```text
|
| 83 |
+
[n0, n1, n2, n3, n4, n5]
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
Here, `ni` is the number of mesh components in the sample whose genus is `i`.
|
| 87 |
+
|
| 88 |
+
So:
|
| 89 |
+
|
| 90 |
+
- `n0` is the number of genus-0 components
|
| 91 |
+
- `n1` is the number of genus-1 components
|
| 92 |
+
- `n2` is the number of genus-2 components
|
| 93 |
+
- `n3` is the number of genus-3 components
|
| 94 |
+
- `n4` is the number of genus-4 components
|
| 95 |
+
- `n5` is the number of genus-5 components
|
| 96 |
+
|
| 97 |
+
From `sample_code`, the metadata values are computed as:
|
| 98 |
+
|
| 99 |
+
```text
|
| 100 |
+
genus = sum(i * ni for i in [0, 1, 2, 3, 4, 5])
|
| 101 |
+
components = sum(ni for i in [0, 1, 2, 3, 4, 5])
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
In other words:
|
| 105 |
+
|
| 106 |
+
- `genus` is the total number of holes in the full sample
|
| 107 |
+
- `components` is the total number of connected components in the full sample
|
| 108 |
+
|
| 109 |
+
The distribution of labels in the dataset is shown below.
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
|
| 113 |
+
## Examples
|
| 114 |
+
|
| 115 |
+
```text
|
| 116 |
+
sample_code = [2, 1, 0, 0, 0, 0]
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
This means:
|
| 120 |
+
|
| 121 |
+
- 2 components of genus 0
|
| 122 |
+
- 1 component of genus 1
|
| 123 |
+
- total genus = 0 * 2 + 1 * 1 = 1
|
| 124 |
+
- total components = 2 + 1 = 3
|
| 125 |
+
|
| 126 |
+
## Summary
|
| 127 |
+
|
| 128 |
+
DONUT is a dataset of **29,517** samples of manifold 3D structures.
|
| 129 |
+
|
| 130 |
+
Each sample provides:
|
| 131 |
+
|
| 132 |
+
- one mesh file in `.npz` format
|
| 133 |
+
- one 8192-point cloud in `.npy` format
|
| 134 |
+
- one metadata entry in `metadata.csv`
|
| 135 |
+
|
| 136 |
+
The metadata describes the global topology of each sample through its total genus, number of connected components, and component-wise genus distribution.
|
static/donut_distrib.png
ADDED
|
Git LFS Details
|
static/donut_samples.png
ADDED
|
Git LFS Details
|