TL;DR
$F^2Depth$ is a novel self-supervised framework that significantly improves indoor monocular depth estimation by leveraging optical flow and high-dimensional feature maps. By focusing on discriminative image patches and warping feature maps instead of raw pixels, it overcomes the "low-texture" problem that typically causes self-supervised models to fail in indoor environments like offices and hallways.
What Problem Does This Paper Address?
Monocular depth estimation—predicting 3D structure from a single 2D image—is a cornerstone of robotics and AR. While supervised methods perform well, they require massive, expensive datasets labeled with ground-truth depth. Self-supervised methods are the "holy grail" because they learn from raw video by checking if a predicted depth can successfully "warp" one frame into another (photometric consistency).
However, these methods struggle indoors. Unlike outdoor scenes filled with distinct textures (trees, asphalt, grass), indoor scenes are dominated by large, uninformative surfaces like white walls, smooth floors, and blank tables. In these "low-texture" regions, many different depth predictions can result in the same pixel color, leaving the model with no clear signal to learn from.
Methods
The authors introduce $F^2Depth$, which uses a two-stage approach to provide a stronger training signal for the depth network.
- Patch-based Optical Flow Finetuning: The researchers start with a pretrained optical flow network ($ARFlow$). To make it work indoors, they finetune it using a novel patch-based photometric loss. Instead of calculating loss for every pixel, they only look at $3 \times 3$ patches around "key points" (areas with high gradient variance). This prevents the network from being confused by massive, identical-looking regions of a wall.
- Optical Flow Consistency Loss ($L_{rigid}$): The depth estimation network predicts depth and camera pose, which together define a "rigid flow." $F^2Depth$ forces this rigid flow to be consistent with the high-accuracy optical flow generated by the finetuned "teacher" network.
- Multi-scale Feature Map Synthesis Loss ($L_{feature}$): Standard self-supervision warps 3-channel RGB images. $F^2Depth$ instead warps high-dimensional feature maps (ranging from 16 to 192 channels) produced by the flow network's encoder. Because these maps contain more complex information than raw pixels, they are far less likely to suffer from the ambiguity of low-texture areas.
Datasets
The paper evaluates the model across three main benchmarks:
- NYU Depth V2: The standard large-scale indoor dataset used for training and primary evaluation.
- 7-Scenes: A public dataset used for zero-shot generalization tests (testing the model on environments it never saw during training).
- Campus Indoor: A new dataset collected by the authors to further test generalization. It consists of 99 images across 18 scenes, with ground-truth depth measured via a laser rangefinder.
Key Insights and Ideas
- Selective Supervision: The "aha moment" here is that not all pixels are created equal for training. By ignoring the "boring" parts of the image during the flow-finetuning stage, the authors create a much more reliable "teacher" for the depth network.
- Dimensionality as a Cure for Ambiguity: RGB images are too simple for indoor scenes. By moving the loss calculation into a high-dimensional feature space, the model can distinguish between two parts of a white wall that look identical to the human eye but have different underlying neural signatures.
- Decoupled Pose Estimation: Unlike some previous indoor methods that use optical flow to estimate camera pose, $F^2Depth$ uses a dedicated ResNet18-based PoseCNN, which the authors found to be more stable.
Key Results
- State-of-the-Art Performance: On the NYU Depth V2 dataset, $F^2Depth$ outperformed the previous leading self-supervised method ($P^2Net$), reducing the Root Mean Squared (RMS) error by approximately 3.8% when using post-processing.
- Robust Generalization: In zero-shot experiments, the model achieved a $\delta_1$ accuracy (percentage of pixels within a specific error threshold) of 75.8% on 7-Scenes and 76.0% on the new Campus Indoor dataset.
- Qualitative Improvements: Visual results show that $F^2Depth$ is much better at capturing sharp boundaries for protruding objects (like bookshelves) and maintaining flat surfaces for walls compared to its predecessors.
Limitations and Future Work
The authors note that $F^2Depth$ is currently more sensitive to illumination changes than some other models. In very dark areas, the model tends to predict depths that are deeper than reality.
For future work, the team suggests:
- Joint Training: Moving from a "teacher-student" setup to a framework where optical flow and depth are trained simultaneously.
- Architectural Upgrades: Integrating Transformer architectures to further enhance feature extraction in low-texture regions.
- New Loss Functions: Developing specific losses to handle the illumination sensitivity discovered during testing.
Summary updated