Trellis_512v_SF / README.md
dannyhabibs's picture
Add dataset card and preview
ccfb0c3 verified
|
Raw History Blame Contribute Delete
4.22 kB
---
pretty_name: Trellis 512v SF
language:
- en
task_categories:
- text-to-3d
- image-to-3d
tags:
- 3d
- voxel
- nanovdb
- objaverse
- trellis
size_categories:
- 100K<n<1M
configs:
- config_name: index
data_files: Trellis_500k_Objaverse_SF_512v.csv
---
# Trellis 512v SF
244,733 captioned 3D objects, each voxelized into a colored 512³ sparse grid and stored as a NanoVDB file.
![Eight sample objects rendered from their 512³ voxel grids](preview.jpg)
The objects are the Objaverse-XL portion of [TRELLIS-500K](https://huggingface.co/datasets/JeffreyXiang/TRELLIS-500K). True3D voxelized each one at 512 cells along its longest side, with one RGB color per occupied voxel. "SF" means single frame: every object is one static grid.
You can orbit a few samples in the browser in the [True3D Voxel Viewer](https://huggingface.co/spaces/true3d/voxel-viewer).
## Contents
| Subset (`dataset` column) | Objects | `voxel_grid_path` prefix | Archive |
|---|---|---|---|
| `Objaverse_Github` | 90,886 | `Trellis_512v_SF/` | `Trellis_SF_512v.z01`–`.z05` + `.zip` (148 GB) |
| `Objaverse_Sketchfab` | 56,344 | `Trellis_Sketchfab_512v_SF/` | `Trellis_500k_Sketchfab_SF_512v.z01`–`.z05` + `.zip` (136 GB) |
| `Objaverse_Sketchfab` | 97,503 | `Trellis_Sketchfab_512v_SF_2/` | `Trellis_500k_Sketchfab_SF_512v_2.zip.001`–`.011` (273 GB) |
Total download is about 558 GB. The first two archives expand to roughly 335 GB and 278 GB.
Inside every archive the layout is one folder per object holding one file:
```
<object id>/frame_00000.nvdb
```
The object id is the `uuid` column of the index. Ids are 32-character hex strings or 64-character SHA-256 hashes.
## Index
`Trellis_500k_Objaverse_SF_512v.csv` has one row per object:
| Column | Meaning |
|---|---|
| `type` | Always `Trellis_500k_512v` |
| `dataset` | `Objaverse_Sketchfab` or `Objaverse_Github` |
| `uuid` | Object id, also the folder name in the archive |
| `num_of_frames` | Always `1` |
| `voxel_grid_path` | `<prefix>/<uuid>`, see the table above |
| `thumbnail_path` | Empty |
| `captions` | A Python-style list of alternative captions for the object, from long descriptions to a few words |
The captions come from TRELLIS-500K.
## Extracting
The archives use two different splitting schemes.
```bash
# .z01 … .zip are a standard split zip
7z x Trellis_SF_512v.zip
7z x Trellis_500k_Sketchfab_SF_512v.zip
# .zip.001 … .zip.011 are one zip cut into pieces
7z x Trellis_500k_Sketchfab_SF_512v_2.zip.001
```
Three things to know about the folder names once extracted:
- The top-level folder inside each archive does not match the `voxel_grid_path` prefix in the index. Match objects by `uuid` instead of by full path.
- `Trellis_500k_Sketchfab_SF_512v.zip` stores its entries under a long absolute path. The object folders are the last two path components.
- `Trellis_500k_Sketchfab_SF_512v_2` also contains macOS `._*` sidecar files, which you can delete.
## Loading
Each file is a standard NanoVDB grid. Voxel indices start at the origin and the longest side of the object spans up to 512 cells. The sample objects checked for this card have between 165,000 and 870,000 occupied voxels.
With True3D's [`spatialstudio`](https://pypi.org/project/spatialstudio/) package:
```python
from spatialstudio import splv
frame = splv.Frame.load_from_nvdb(
"Trellis_SF_512v/<uuid>/frame_00000.nvdb", (0, 0, 0), (511, 511, 511)
)
print(frame.get_dims(), frame.get_num_voxels())
rgb = frame.get_voxel(x, y, z) # (r, g, b), or None if the voxel is empty
```
With [fVDB](https://github.com/openvdb/fvdb-core) for training:
```python
import fvdb
grid, features, _ = fvdb.load(path, device="cuda")
```
## Source and licensing
The geometry and textures come from Objaverse-XL objects selected by TRELLIS-500K. Each object keeps the license its original author chose on Sketchfab or GitHub, and those licenses vary from object to object. Check the license of the original object before you redistribute it or use it commercially. The TRELLIS-500K index and captions are published under the MIT license.
If you use this data, please cite [Objaverse-XL](https://arxiv.org/abs/2307.05663) and [TRELLIS](https://arxiv.org/abs/2412.01506).