How tumftm/camradepth works
CamRaDepth estimates dense depth from monocular images and sparse radar, with optional semantic supervision. Its main workflow prepares NuScenes inputs, loads multimodal samples, trains or tests the fusion model, and can visualize predictions. The graph also preserves the documented LiDAR/radar preparation and semantic-label branches. Source excerpts show the runner’s principal dependencies and selected preprocessing calls; README statements support the broader preparation workflow, while unsampled integrations are not asserted as direct calls.
Main entry points: runner.py Train and test runner · scripts Preparation scripts · CamRaDepth.py CamRaDepth model · visualization.py Prediction visualization
Components 16
Data preparation
- Preparation scripts
scripts - Library path setup
scripts/_init_paths.py - LiDAR fusion
lib/fuse_lidar.py - Radar fusion
lib/fuse_radar.py - Semantic labels
scripts/vehicle_seg.py
Model runtime
- Train and test runner
src/main/runner.py - Runtime arguments
src/utils/args.py - Multimodal dataset
src/data/dataloader.py
Network and objectives
- CamRaDepth model
src/models/CamRaDepth.py - Transformer backbone
src/models/simplified_attention.py - Decoder blocks
src/utils/utils.py - Depth and smoothness losses
src/utils/loss_funcs.py - diffGradNorm optimizer
src/models/diffGradNorm.py
Evaluation and visualization
- Prediction visualization
src/visualization/visualization.py
Other components
- Research user
- NuScenes data
Connections 19
- Research user → Preparation scripts: prepares data
README.md - NuScenes data → Preparation scripts: supplies samples
README.md - Preparation scripts → LiDAR fusion: calls LiDAR fusion
scripts/cal_gt.py - Preparation scripts → Radar fusion: calls radar fusion
scripts/cal_radar.py - Preparation scripts → Library path setup: loads paths
scripts/cal_gt.py - Research user → Semantic labels: generates labels
README.md - Research user → Train and test runner: starts run
README.md - Train and test runner → Runtime arguments: reads settings
src/main/runner.py - Train and test runner → Multimodal dataset: creates loaders
src/main/runner.py - Multimodal dataset → Runtime arguments: reads options
src/data/dataloader.py - Train and test runner → CamRaDepth model: trains or evaluates
src/main/runner.py - CamRaDepth model → Transformer backbone: uses backbone
src/models/CamRaDepth.py - CamRaDepth model → Decoder blocks: uses decoder blocks
src/models/CamRaDepth.py - CamRaDepth model → Runtime arguments: reads settings
src/models/CamRaDepth.py - Train and test runner → Depth and smoothness losses: computes objectives
src/main/runner.py - Train and test runner → diffGradNorm optimizer: uses optimizer
src/main/runner.py - Train and test runner → Prediction visualization: offers inspection
- Prediction visualization → Multimodal dataset: loads samples
src/visualization/visualization.py - Prediction visualization → CamRaDepth model: runs predictions
src/visualization/visualization.py