How gynjn/mvp works
MVP is a multi-view reconstruction system: it accepts posed image views, runs a pyramid-transformer model, and produces rendered results that can be exported and evaluated. It also supports staged model training and optional faster attention and CUDA spherical-harmonics computation. The graph follows documented inference and training entry points and source-index references; training internals and some rendering details were not sampled, so those connections are omitted where their callers are unclear.
Main entry points: mvp.py MVP model · inference.py Inference runner · train.py Distributed training · train_single.py Single-GPU training
Components 20
View data
- Scene dataset
data/dataset.py - Dataset base
data/base_dataset.py - Dynamic sampler
data/batched_sampler.py
Reconstruction model
- MVP model
model/mvp.py - Transformer blocks
model/transformer.py - Camera geometry
model/camera_utils.py - DPT head
model/dpt_head.py - Model utilities
model/utils.py - PRoPE attention
model/prope_custom.py - Flash attention PRoPE
model/prope_custom_fa.py - Loss computer
model/loss.py - SH opacity kernel
sh_cuda/mvp_cuda/spherical_harmonics.py
Inference and evaluation
- Inference runner
inference.py - Result export and metrics
metric_utils.py
Training
- Distributed training
train.py - Single-GPU training
train_single.py - Stage-three training
train_stage3.py - Training utilities
training_utils.py - Runtime configuration
setup.py
Other components
- User
Connections 22
- User → Inference runner: runs inference
README.md - Inference runner → Scene dataset: loads batches
inference.py - Inference runner → MVP model: runs model
inference.py - Inference runner → Result export and metrics: exports results
inference.py - Dataset base → Dynamic sampler: creates sampler
data/base_dataset.py - Scene dataset → Dataset base: inherits
data/dataset.py - MVP model → Transformer blocks: uses blocks
model/mvp.py - MVP model → Camera geometry: uses geometry
model/mvp.py - MVP model → DPT head: uses head
model/mvp.py - MVP model → Model utilities: uses utilities
model/mvp.py - MVP model → PRoPE attention: uses attention
model/mvp.py - MVP model → Flash attention PRoPE: uses attention
model/mvp.py - MVP model → Loss computer: creates loss
model/mvp.py - MVP model → SH opacity kernel: uses opacity kernel
model/mvp.py - User → Distributed training: starts training
README.md - User → Single-GPU training: starts training
README.md - Distributed training → Runtime configuration: configures runtime
train.py - Distributed training → Training utilities: uses utilities
train.py - Single-GPU training → Runtime configuration: configures runtime
train_single.py - Single-GPU training → Training utilities: uses utilities
train_single.py - Stage-three training → Runtime configuration: configures runtime
train_stage3.py - Stage-three training → Training utilities: uses utilities
train_stage3.py