GARfVDB: Segmentation cluster visualization#49
Merged
swahtz merged 10 commits intoopenvdb:mainfrom Jan 30, 2026
Merged
Conversation
…aussian Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds functionality to visualize segmentation clusters in GARfVDB by introducing a new visualization script that performs dimensionality reduction (PCA + UMAP) and clustering (HDBSCAN) on Gaussian splat features, then displays the results in an interactive 3D viewer.
Changes:
- New visualization script for segmentation cluster analysis using cuML-accelerated algorithms
- Enhanced view_checkpoint.py to properly handle world_to_camera transformations
- Added cuML, cuPy, and matplotlib dependencies for GPU-accelerated clustering
- Refactored model.py to extract common encoder grid sampling logic and add per-Gaussian affinity feature extraction
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| visualize_segmentation_clusters.py | New script for clustering and visualizing segmentation features with PCA/UMAP reduction and HDBSCAN clustering |
| view_checkpoint.py | Added world_to_camera parameter to render_segmentation_image method and reordered imports |
| pyproject.toml | Added cuml dependency to Python package requirements |
| garfvdb_environment.yml | Added cuml, cupy, and matplotlib conda dependencies |
| garfvdb/model.py | Extracted _sample_encoder_grids_at_gaussians helper method and added get_gaussian_affinity_output for per-Gaussian feature extraction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
instance_segmentation/garfvdb/visualize_segmentation_clusters.py
Outdated
Show resolved
Hide resolved
instance_segmentation/garfvdb/visualize_segmentation_clusters.py
Outdated
Show resolved
Hide resolved
instance_segmentation/garfvdb/visualize_segmentation_clusters.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run with
python visualize_segmentation_clusters.py -s garfvdb_logs/run_2026-01-30-16-14-51/checkpoints/00036608/train_ckpt.pt -r out.ply --scale 0.2