GARfVDB: Cluster visualization enhancements#51
Merged
swahtz merged 13 commits intoopenvdb:mainfrom Feb 1, 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>
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>
Filtering outlier positions, opacities and scales in trained scene Filtering out spatially incoherent clusters 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 enhances the GARfVDB segmentation visualization capabilities by introducing a new clustering and filtering module for instance segmentation, along with a dedicated cluster visualization script. The changes move clustering logic into a reusable module and add filtering capabilities for outlier removal and spatial coherence validation.
Changes:
- Added a new clustering module (
garfvdb/evaluation/clustering) with PCA, UMAP, and HDBSCAN-based clustering pipeline - Created
visualize_segmentation_clusters.pyto visualize pre-computed segmentation clusters with spatial variance filtering - Refactored encoder grid sampling in
model.pyinto a reusable method and addedget_gaussian_affinity_outputfor per-Gaussian feature extraction - Added
world_to_cameraparameter toview_checkpoint.pyrendering pipeline - Updated dependencies to include cuml, cupy, and matplotlib
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| visualize_segmentation_clusters.py | New script for visualizing segmentation clusters with filtering options based on spatial variance |
| garfvdb/evaluation/clustering/clustering.py | New module implementing GPU-accelerated clustering pipeline (PCA → UMAP → HDBSCAN) |
| garfvdb/evaluation/clustering/init.py | Module initialization exposing clustering functions |
| garfvdb/model.py | Refactored encoder grid sampling into _sample_encoder_grids_at_gaussians() and added get_gaussian_affinity_output() for per-Gaussian feature extraction |
| view_checkpoint.py | Added world_to_camera parameter to rendering pipeline and reorganized imports |
| pyproject.toml | Added cuml dependency for GPU-accelerated machine learning |
| garfvdb_environment.yml | Added rapidsai cuml, cupy, and matplotlib to conda environment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
instance_segmentation/garfvdb/garfvdb/evaluation/clustering/clustering.py
Outdated
Show resolved
Hide resolved
instance_segmentation/garfvdb/garfvdb/evaluation/clustering/clustering.py
Show resolved
Hide resolved
instance_segmentation/garfvdb/visualize_segmentation_clusters.py
Outdated
Show resolved
Hide resolved
instance_segmentation/garfvdb/garfvdb/evaluation/clustering/clustering.py
Outdated
Show resolved
Hide resolved
instance_segmentation/garfvdb/garfvdb/evaluation/clustering/clustering.py
Show resolved
Hide resolved
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.
Moved clustering and filtering logic into a module
Added GaussianSplat3d filtering for outlier positions, opacities and scales
Added filtering of spatially incoherent clusters