Papers
Topics
Authors
Recent
Search
2000 character limit reached

FlexDepth: Adaptive Monocular Depth Models

Updated 6 July 2026
  • FlexDepth is a flexible family of self-supervised monocular depth estimation models that adapts to varying scales and dynamic scenes in driving environments.
  • It employs a two-stage training strategy with a static-dynamic decoupling mechanism and a Scale-Driven Decoder to overcome fixed design limitations and improve key performance metrics.
  • Variants from Flex-Nano to Flex-X-Large enable tailored trade-offs in accuracy and efficiency, facilitating robust deployment on edge devices in real-world scenarios.

FlexDepth is a scale-driven and flexible family of self-supervised monocular depth estimation models tailored for challenging road scenarios. In its explicit formulation, it addresses two recurrent weaknesses of self-supervised driving depth systems: fixed decoder designs that do not scale well across model sizes, and the failure of static-scene photometric assumptions in the presence of dynamic traffic participants. The framework combines a two-stage static-dynamic decoupled training strategy with a Scale-Driven Decoder (SDD), and is instantiated as a model family ranging from Flex-Nano to Flex-X-Large (Zhu et al., 1 Jul 2026). A broader methodological reading is also suggested by adjacent work: “FlexDepth” can denote a class of depth systems that adapt depth representations across scales, tasks, domains, modalities, and temporal regimes, rather than treating depth as a single fixed output format.

1. Definition and problem setting

FlexDepth addresses self-supervised monocular depth estimation from driving videos. The training signal comes from unlabeled monocular sequences: given a target frame ItI_t, the network predicts a dense depth or disparity map DtD_t or dispt\text{disp}_t, and supervision is induced by view synthesis and photometric consistency with adjacent frames. The design is explicitly motivated by two limitations of prior self-supervised MDE systems. First, many methods use a fixed encoder-decoder pipeline with hand-designed upsampling that compresses already low-resolution deep features before spatial recovery, which degrades high-level cues and harms boundary quality, especially in lightweight models. Second, the rigid-scene assumption behind photometric reprojection is violated by moving vehicles, cyclists, pedestrians, occlusions, and disocclusions, while many dynamic-scene remedies rely on semantics, optical flow, pseudo-labels, or heavy multi-frame pipelines that are difficult to deploy on edge hardware (Zhu et al., 1 Jul 2026).

The framework defines a model family—Flex-Nano, Flex-Small, Flex-Medium, Flex-Large, and Flex-X-Large—built around three components: a YOLOv11-derived multi-scale encoder, a scale-aware decoder that changes with model size, and a two-stage training procedure that first learns standard self-supervised depth and then re-trains the depth network with an adaptive static-dynamic mask. The same design is intended to cover multiple accuracy-efficiency operating points, rather than optimizing a single architecture for a single budget (Zhu et al., 1 Jul 2026).

2. Self-supervised formulation and static-dynamic decoupling

In Stage 1, FlexDepth jointly trains a depth network and a PoseNet. PoseNet uses a ResNet-18 encoder with a 4-layer decoder to estimate the relative pose PtsP_{t\to s} between the target frame ItI_t and source frames IsI_s. The target image is reconstructed by differentiable warping,

I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,

where KK is the camera intrinsic matrix. The photometric loss is

Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,

with α=0.85\alpha = 0.85. For multiple source views, FlexDepth uses minimum reprojection with auto-masking,

DtD_t0

and combines it with edge-aware smoothness on mean-normalized inverse depth,

DtD_t1

The Stage-1 multi-scale objective is

DtD_t2

After Stage 1, early-stage and late-stage depth snapshots are retained, producing DtD_t3 and DtD_t4 (Zhu et al., 1 Jul 2026).

The central observation behind Stage 2 is that dynamic regions are less stable across epochs than static background regions. FlexDepth therefore defines a static-dynamic decoupled mask

DtD_t5

with DtD_t6. Here DtD_t7 and DtD_t8 are intermediate feature maps from early and late stages, DtD_t9 is a discrepancy representation, and dispt\text{disp}_t0 is a small CNN that predicts an image-specific threshold. Stage 2 freezes PoseNet and re-trains only the depth network using a masked probabilistic loss

dispt\text{disp}_t1

with dispt\text{disp}_t2, together with anisotropic geometric depth smoothing,

dispt\text{disp}_t3

where dispt\text{disp}_t4. The Stage-2 loss is

dispt\text{disp}_t5

This decoupling is empirically nontrivial. On KITTI, Flex-X-Large without Stage 2 reports AbsRel dispt\text{disp}_t6, SqRel dispt\text{disp}_t7, RMSE dispt\text{disp}_t8, and dispt\text{disp}_t9; with Stage 2 and the adaptive mask, these become AbsRel PtsP_{t\to s}0, SqRel PtsP_{t\to s}1, RMSE PtsP_{t\to s}2, and PtsP_{t\to s}3. In dynamic-region analysis, it reports moving-object AbsRel PtsP_{t\to s}4 versus PtsP_{t\to s}5 for DSI-MonoViT, and moving-object SqRel PtsP_{t\to s}6 versus PtsP_{t\to s}7 (Zhu et al., 1 Jul 2026).

3. Scale-Driven Decoder

The architectural core of FlexDepth is the Scale-Driven Decoder. At level PtsP_{t\to s}8, the decoder is written as

PtsP_{t\to s}9

where ItI_t0 is the encoder feature, ItI_t1 is the coarser decoder feature, ItI_t2 is the upsampling operator, ItI_t3 is the post-convolution module, and ItI_t4 is the prediction head. A defining design choice is the removal of the pre-convolution stage found in many U-Net-like decoders, on the grounds that deep features are already information-sparse and should not be compressed before spatial recovery (Zhu et al., 1 Jul 2026).

For small models, ItI_t5 is instantiated as the High-Efficiency Bottleneck (HEB). Given ItI_t6, a convolution and channel split produce

ItI_t7

followed by a dense sequence

ItI_t8

and an output fusion

ItI_t9

For larger models, IsI_s0 becomes the High-Performance Bottleneck (HPB), using a CSP-style structure,

IsI_s1

The decoder therefore changes with scale: HEB emphasizes optimization and dense gradient flow in low-FLOP regimes, whereas HPB prioritizes richer local feature modeling in higher-capacity models (Zhu et al., 1 Jul 2026).

Upsampling is likewise content-aware. Rather than fixed bilinear interpolation, FlexDepth predicts sampling offsets and applies GridSample after PixelShuffle:

IsI_s2

where IsI_s3 is the regular sampling grid, IsI_s4 are learned offsets, and IsI_s5 is the upsampling scale. The prediction head is also scale-dependent: smaller models use a conventional “predict then upsample” head, while larger ones use an inverted head that upsamples features first and predicts depth afterward. This scale-aware decoder is not confined to the FlexDepth family; when plugged into MonoViT, the reported configuration reduces computation from IsI_s6 GFLOPs to IsI_s7 GFLOPs and improves KITTI AbsRel from IsI_s8 to IsI_s9 (Zhu et al., 1 Jul 2026).

4. Model family, efficiency, and empirical performance

FlexDepth is explicitly organized as a deployment-oriented family rather than a single network.

Variant GFLOPs Representative figures
Flex-Nano 0.718 1.52 M parameters; 37.6 FPS on Snapdragon 8 Elite
Flex-Small 2.78 6.06 M parameters; 18.6 FPS on Snapdragon 8 Elite
Flex-Medium 9.99 12.7 M parameters; 5.8 FPS on Snapdragon 8 Elite
Flex-Large 11.52 15.2 M parameters
Flex-X-Large 24.56 32.3 M parameters; 3.0 FPS on Snapdragon 8 Elite

On KITTI, Flex-Nano reports AbsRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,0 at I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,1 GFLOPs, Flex-Small reports AbsRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,2, SqRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,3, RMSE I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,4, and I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,5 at I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,6 GFLOPs, Flex-Medium reports AbsRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,7, and Flex-Large reports AbsRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,8. Flex-X-Large reports AbsRel I^t=Isproj(D^t,Pts,K),\hat{I}_t = I_s\big\langle \text{proj}(\hat{D}_t, P_{t\to s}, K)\big\rangle,9, SqRel KK0, RMSE KK1, and KK2, outperforming reported self-supervised baselines such as MonoViT, FGTO, DSI-MonoViT, and Self-Distillation while using substantially fewer FLOPs. On Cityscapes, Flex-X-Large reports AbsRel KK3, SqRel KK4, RMSE KK5, and KK6, again surpassing prior dynamic-scene methods such as ProDepth, FGTO, and DSI-MonoViT at lower computational cost (Zhu et al., 1 Jul 2026).

The family also emphasizes zero-shot behavior. On Make3D, KITTI-trained Flex-X-Large reports AbsRel KK7, RMSE KK8, and RMSElog KK9, better than the self-supervised baselines listed in the comparison. Under fair LS alignment and improved KITTI ground truth, Flex-X-Large at Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,0 reports AbsRel Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,1, Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,2, Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,3 M parameters, and Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,4 GFLOPs, compared with Depth Anything v2 ViT-L at Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,5, which reports AbsRel Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,6, Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,7, Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,8 M parameters, and Lp=α1SSIM(I^t,It)2+(1α)I^tIt1,L_p = \alpha \frac{1 - \text{SSIM}(\hat{I}_t, I_t)}{2} + (1-\alpha)\|\hat{I}_t - I_t\|_1,9 GFLOPs. This comparison suggests that in-domain self-supervision can rival or exceed zero-shot foundation depth models at much lower cost in the driving regime (Zhu et al., 1 Jul 2026).

5. Broader “FlexDepth” interpretations in depth research

A broader interpretation of FlexDepth is suggested by several adjacent systems: depth is treated as a representation that should be adaptable across domains, tasks, temporal horizons, resolutions, and conditioning signals, rather than as a fixed dense map predicted in one shot.

Work Setting Flexibility axis
PopNet (Wu et al., 2022) Source-free depth for object pop-out and segmentation Frozen depth model adapted to SOD/COD via OPN and contact surface
PDDM (Yang et al., 2024) Image-guided depth completion Scene-adaptive depth bins, progressive decoupling, multi-scale supervision
FlashDepth (Chou et al., 9 Apr 2025) Streaming video depth estimation 2K, 24 FPS, high/low-resolution hybrid with temporal alignment
Amodal Depth Anything (Li et al., 2024) Object-conditioned amodal relative depth Occluded geometry from α=0.85\alpha = 0.850
DD3Dv2 (Park et al., 2022) Monocular 3D detection In-domain depth adaptation using LiDAR or RGB videos
Depth Any Video (Yang et al., 2024) Variable-length video depth estimation Mixed-duration training and keyframe interpolation up to 150 frames

In "Source-free Depth for Object Pop-out" (Wu et al., 2022), a frozen DPT+Boosting depth network is adapted to salient and camouflaged object detection through an Object Popping Network and a learned contact surface α=0.85\alpha = 0.851, enabling a depth-based pseudo-mask α=0.85\alpha = 0.852. In "Progressive Depth Decoupling and Modulating for Flexible Depth Completion" (Yang et al., 2024), flexibility is identified with scene-adaptive discretization: the Bins Initializing Module derives seed bins from sparse depth, an incremental depth decoupling branch refines them from global to local, and a modulating branch refines probability maps from coarse to fine; the reported ablation shows PDDM improving from UD α=0.85\alpha = 0.853 and SID α=0.85\alpha = 0.854 to AbsRel α=0.85\alpha = 0.855 and RMSE α=0.85\alpha = 0.856.

In video, "FlashDepth" (Chou et al., 9 Apr 2025) converts a pretrained single-image model into a streaming 2K depth system, running at α=0.85\alpha = 0.857 and α=0.85\alpha = 0.858 FPS by inserting a small Mamba temporal module into decoder features and pairing a high-resolution small model with a low-resolution large model via cross-attention. "Depth Any Video with Scalable Synthetic Data" (Yang et al., 2024) extends flexibility differently: it builds a synthetic dataset of α=0.85\alpha = 0.859 video clips and about DtD_t00M frames, adopts mixed-duration training with frame dropout and RoPE, and uses keyframe-based interpolation to handle videos up to about DtD_t01 frames. "Amodal Depth Anything" (Li et al., 2024) defines amodal depth estimation as object-conditioned prediction of invisible geometry from DtD_t02, introduces the DtD_t03K-image ADIW dataset, and reports a DtD_t04 improvement in accuracy over the previous SoTA on ADIW. "Depth Is All You Need for Monocular 3D Detection" (Park et al., 2022) treats depth as the central transferable representation for 3D detection and shows DD3Dv2 improving nuScenes test performance from mAP DtD_t05, NDS DtD_t06 to mAP DtD_t07, NDS DtD_t08 when depth is adapted in-domain with LiDAR supervision.

Taken together, these systems suggest that “FlexDepth” is not only a model family name but also a design stance: depth models should be target-adaptive, modular, and able to bend toward different downstream constraints without discarding pretrained geometric knowledge.

6. Limitations and research directions

As a concrete self-supervised driving system, FlexDepth remains driving-centric. Its reported limitations include limited applicability to indoor scenes with irregular textures, clutter, and close-range occlusions; no explicit treatment of severe weather, night-time, lens dirt, or sensor noise; an assumption of fixed camera intrinsics and reasonably calibrated pinhole geometry; and the standard scale ambiguity of self-supervised monocular depth, which still requires alignment for metric evaluation (Zhu et al., 1 Jul 2026).

The broader literature suggests several plausible extensions. One direction is stronger temporal and streaming support: FlashDepth emphasizes recurrent temporal alignment at real-time 2K resolution, while Depth Any Video emphasizes mixed-duration training and long-sequence interpolation (Chou et al., 9 Apr 2025, Yang et al., 2024). Another is extending beyond visible surfaces: Amodal Depth Anything frames occluded geometry as a relative-depth problem conditioned on amodal masks, and PopNet frames foreground extraction as reasoning over a contact surface in 3D (Li et al., 2024, Wu et al., 2022). A third is deeper task adaptation: DD3Dv2 uses depth as an in-domain auxiliary task for monocular 3D detection, and PDDM uses scene-adaptive discretization to tailor depth completion to the observed depth distribution (Park et al., 2022, Yang et al., 2024). A plausible implication is that future FlexDepth systems will combine scale-aware self-supervised training with temporal adaptation, amodal conditioning, and scene-adaptive depth representations, while preserving the deployment discipline that motivated the original FlexDepth family.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FlexDepth.