How clvrai/n2m works
N2M learns a distribution over preferable robot starting poses from local-scene point clouds, then samples a collision-checked pose at inference. The documented workflow is raw labeled data → viewpoint augmentation → model training → inference. The graph also preserves PointBERT internals, training utilities and visualization, and the documented rendering stage. Edges are limited to README statements and relationships visible in the supplied excerpts or SOURCE INDEX; unsampled implementation details are not inferred.
Main entry points: train.py Training orchestration · N2Mmodule.py Inference wrapper · sample_camera_poses.py Camera pose sampling · point_encoder.py PointBERT transformer
Components 21
Data preparation
- Labeled point clouds
- Camera pose sampling
scripts/sample_camera_poses.py - Pose sampling utilities
n2m/utils/sample_utils.py - Point-cloud renderer
scripts/render/fpv_render.cpp - Augmented clouds and labels
Model and training
- Training dataset
n2m/data/dataset.py - Training orchestration
scripts/train.py - Training loss
n2m/utils/loss.py - GMM pose model
n2m/model/N2Mnet.py - PointBERT transformer
n2m/model/pointbert/point_encoder.py - Point grouping and VAE
n2m/model/pointbert/dvae.py - PointBERT checkpoint and logging
n2m/model/pointbert/checkpoint.py - Training logs and checkpoints
Pose inference
- Inference wrapper
n2m/module/N2Mmodule.py - Collision checker
- Valid initial pose
Shared utilities
- Point-cloud preprocessing
n2m/utils/point_cloud.py - Configuration loading
n2m/utils/config.py - Pose visualization
n2m/utils/visualizer.py
Other components
- Dataset operator
- Inference caller
Connections 22
- Dataset operator → Labeled point clouds: provides labels
README.md - Dataset operator → Camera pose sampling: runs augmentation
README.md - Camera pose sampling → Pose sampling utilities: uses sampling
scripts/sample_camera_poses.py - Camera pose sampling → Point-cloud renderer: invokes renderer
README.md - Point-cloud renderer → Augmented clouds and labels: generates augmentation
README.md - Dataset operator → Training orchestration: starts training
README.md - Training orchestration → Training dataset: loads samples
scripts/train.py - Training dataset → Point-cloud preprocessing: augments and sizes
n2m/data/dataset.py - Training orchestration → GMM pose model: trains model
scripts/train.py - Training orchestration → Training loss: computes loss
scripts/train.py - Training orchestration → Training logs and checkpoints: saves checkpoints
scripts/train.py - GMM pose model → PointBERT transformer: encodes clouds
n2m/model/N2Mnet.py - PointBERT transformer → Point grouping and VAE: uses grouping
n2m/model/pointbert/point_encoder.py - PointBERT transformer → PointBERT checkpoint and logging: imports helpers
n2m/model/pointbert/point_encoder.py - Inference caller → Inference wrapper: requests prediction
README.md - Inference wrapper → Point-cloud preprocessing: sizes input
n2m/module/N2Mmodule.py - Inference wrapper → GMM pose model: predicts distribution
n2m/module/N2Mmodule.py - Inference wrapper → Collision checker: checks collisions
README.md - Inference wrapper → Valid initial pose: returns pose
n2m/module/N2Mmodule.py - Training orchestration → Configuration loading: loads configuration
scripts/train.py - Training orchestration → Pose visualization: renders validation
scripts/train.py - Inference wrapper → Pose visualization: visualizes prediction
n2m/module/N2Mmodule.py