Skip to content

Commit 45010f0

Browse files
fwilliamsharrism
andauthored
JaggedTensor Python docs (#283)
Cleans up formatting of JaggedTensor docstrings and adds more detailed examples. --------- Signed-off-by: Francis Williams <francis@fwilliams.info> Signed-off-by: Francis Williams <fwilliams@users.noreply.github.com> Co-authored-by: Mark Harris <mharris@nvidia.com>
1 parent 85d37dc commit 45010f0

File tree

5 files changed

+461
-186
lines changed

5 files changed

+461
-186
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# List of patterns, relative to source directory, that match files and
5656
# directories to ignore when looking for source files.
5757
# This pattern also affects html_static_path and html_extra_path.
58-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "wip", "tutorials/wip/"]
58+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "wip", "tutorials"]
5959

6060
autodoc_default_options = {"undoc-members": "forward, extra_repr"}
6161

docs/index.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,16 @@ The videos below show fVDB being used for large-scale 3D reconstruction, simulat
4040
.. raw:: html
4141

4242
<p style="text-align: center; font-weight: bold; font-style: italic; text-decoration: underline; font-size: medium; text-decoration-skip-ink: none; margin-bottom: 0.5em;">
43-
fVDB being used to reconstruct radiance fields and TSDF volumes from images and points</p>
43+
fVDB being used to reconstruct radiance (25 million splats) fields and TSDF volumes (100 million voxels) from images and points</p>
4444
<video autoplay loop controls muted width="90%" style="display: block; margin: 0 auto;">
4545
<source src="https://fvdb-data.s3.us-east-2.amazonaws.com/fvdb-reality-capture/spot_airport_480p.mp4" type="video/mp4" />
4646
</video>
4747

4848
<br>
49-
5049
<p style="text-align: center; font-weight: bold; font-style: italic; text-decoration: underline; font-size: medium; text-decoration-skip-ink: none; margin-bottom: 0.5em;">
51-
fVDB being used to visualize large scale volumetric data in a web browser</p>
50+
fVDB being used to process a sparse SDF on a grid with 181 million voxels. Visualized in a browser.</p>
5251
<video autoplay loop controls muted width="90%" style="display: block; margin: 0 auto;">
53-
<source src="https://fvdb-data.s3.us-east-2.amazonaws.com/fvdb-reality-capture/large_recon_480p.mp4" type="video/mp4" />
52+
<source src="https://fvdb-data.s3.us-east-2.amazonaws.com/fvdb-reality-capture/crawler_480p.mp4" type="video/mp4" />
5453
</video>
5554

5655
|
@@ -71,11 +70,7 @@ spatial intelligence research and applications.
7170

7271
.. toctree::
7372
:maxdepth: 1
74-
:caption: Basic Concepts
75-
76-
.. toctree::
77-
:maxdepth: 1
78-
:caption: API References
73+
:caption: Documentation
7974

8075
api/jagged_tensor
8176
api/convolution_plan

fvdb/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,8 @@ def jcat(things_to_cat, dim=None):
219219
"ShOrderingMode",
220220
"ConvolutionPlan",
221221
# GridBatch operations
222-
"load_gridbatch",
223-
"save_gridbatch",
224222
# Grid operations
225223
"Grid",
226-
"load_grid",
227-
"save_grid",
228224
# JaggedTensor operations
229225
"jcat",
230226
"jrand",

fvdb/__init__.pyi

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ from ._Cpp import ConvPackBackend, config, volume_render
2121
from .convolution_plan import ConvolutionPlan
2222
from .enums import ProjectionType, ShOrderingMode
2323
from .gaussian_splatting import GaussianSplat3d, ProjectedGaussianSplats
24-
from .grid import Grid, load_grid, save_grid
25-
from .grid_batch import GridBatch, load_gridbatch, save_gridbatch
24+
from .grid import Grid
25+
from .grid_batch import GridBatch
2626
from .jagged_tensor import JaggedTensor, jempty, jones, jrand, jrandn, jzeros
2727
from .torch_jagged import (
2828
add,
@@ -103,13 +103,7 @@ __all__ = [
103103
"GaussianSplat3d",
104104
"ProjectedGaussianSplats",
105105
"ConvolutionPlan",
106-
# GridBatch operations
107-
"load_gridbatch",
108-
"save_gridbatch",
109-
# Grid operations
110106
"Grid",
111-
"load_grid",
112-
"save_grid",
113107
# JaggedTensor operations
114108
"jcat",
115109
"jrand",

0 commit comments

Comments
 (0)