depth_fm.models.experimental¶
experimental ¶
DebugUNet ¶
Bases: Module
A tiny CNN backbone to test the Flow Matching training loop. Replaces the heavy CompVis UNet to isolate data/loop bugs.
Source code in src/depth_fm/models/experimental.py
forward ¶
Matches the signature called by MarsDepthFM.predict_velocity. x: (B, 4, h, w) t: (B,) context: (B, 4, h, w) context_ca: (B, seq_len, dim) - Ignored in debug model
Source code in src/depth_fm/models/experimental.py
SinusoidalTimeEmbedding ¶
FiLMResBlock ¶
Bases: Module
Residual Block with Feature-wise Linear Modulation (FiLM). The time embedding controls the scale (gamma) and shift (beta) of the features.
Source code in src/depth_fm/models/experimental.py
SelfAttention2D ¶
Bases: Module
Global spatial self-attention to understand macroscopic terrain features.
Source code in src/depth_fm/models/experimental.py
ModulatedMicroFlowNet ¶
Bases: Module
A modernized, lightweight Flow Matching backbone. Replaces the heavy CompVis UNet with a FiLM-modulated, attention-augmented CNN.
Source code in src/depth_fm/models/experimental.py
forward ¶
x: (B, 4, h, w) - The noisy latent z_t t: (B,) - Continuous timestep in [0, 1] context: (B, 4, h, w) - Clean orthoimage conditioning