Atlantis: Enabling Underwater Depth Estimation with Stable Diffusion

Fan Zhang, Shaodi You, Yu Li, Ying Fu

TL;DR

Researchers have developed Atlantis, a novel pipeline that uses Stable Diffusion and ControlNet to generate a photorealistic synthetic dataset for underwater depth estimation. By conditioning generative AI on accurate terrestrial depth maps, the method creates realistic, non-existent underwater scenes that effectively bridge the domain gap. Models trained on Atlantis show massive performance leaps when evaluating real, unseen underwater environments.

What Problem Does This Paper Address?

Monocular depth estimation—predicting distance from a single image—has come a long way on land, thanks to massive datasets and deep learning. But take those same models underwater, and they completely fall apart.

Why? Physics and data scarcity. Light attenuation and backscattering create haze, blur, and color casts, making it incredibly difficult and expensive to capture accurate ground-truth depth maps underwater. Existing real-world datasets are small and contain sparse, unreliable depth data. To fix this, researchers previously turned to Generative Adversarial Networks (GANs) to synthesize data. However, these methods usually just apply a watery "style transfer" to terrestrial images without changing the underlying scene content, leaving a massive domain gap that fails to fool modern computer vision models.

Figure 2. Comparisions of real dataset [5], GAN-based synthetic dataset [23] and ours proposed underwater depth dataset Atlantis.

Methods

The authors introduce a smart workaround: instead of trying to capture depth underwater, why not take highly accurate terrestrial depth layouts and use generative AI to "fill them in" with realistic underwater imagery?

The pipeline consists of four main phases:

  1. Data Preparation: The authors took real underwater images from the UIEB dataset, estimated their relative depth using a pre-trained MiDaS model, and generated text descriptions using the BLIP2 vision-language model. This formed a set of {Underwater, Depth, Text} triplets.
  2. ControlNet Learning: They trained a customized Depth2Underwater ControlNet on these triplets. This network learns how to map structural depth layouts to realistic underwater textures and objects.
  3. Data Generation: Using the trained ControlNet alongside Stable Diffusion v1.5, they fed in 400 clean, terrestrial depth maps from the DIODE dataset. By pairing these maps with text prompts like "an underwater view of Atlantis", the system generated brand-new, photorealistic underwater scenes that perfectly adhered to the original terrestrial geometry.
  4. Depth Uncertainty Filtering: To ensure the training data was reliable, they introduced a Depth Uncertainty (DU) metric. By measuring the variance in depth estimation when an image is horizontally flipped, they filtered out highly uncertain pixels using a validity mask and capped maximum depth at 20 meters to mimic real-world underwater visibility.
Figure 3. Overview of our method for generating the underwater depth dataset. The process begins by creating an intermediate dataset containing underwater images, depth maps, and text descriptions. This dataset is used to train the Depth2Underwater ControlNet for generating underwater images from depth maps. The resulting dataset facilitates the training and performance improvement of terrestrial depth models for unseen underwater scenes, as well as application to underwater image enhancement.

Datasets

The paper utilizes several datasets across its pipeline:

  • UIEB: 700 real underwater images used for initial triplet creation and ControlNet training.
  • DIODE-outdoor: 400 terrestrial images providing the high-accuracy structural depth maps used to seed the generation process.
  • Atlantis (New): The resulting synthetic dataset, consisting of 3,200 photorealistic underwater image-depth pairs.
  • Sea-thru & SQUID: Two independent, real-world underwater datasets used strictly for testing and evaluation.

Key Insights and Ideas

  • Generative AI as a Domain Bridge: Instead of altering an image's style (like GANs), Stable Diffusion reimagines the semantic content entirely while preserving the geometric skeleton provided by the depth map.
  • The LLVM "Turing Test": The authors used a Large Language Vision Model (LLaVA) to evaluate their data. When shown GAN-synthesized underwater images, LLaVA saw right through them, calling them "a kitchen with a refrigerator." When shown Atlantis images, LLaVA confidently identified them as authentic underwater scenes containing coral reefs and sea creatures.
  • Consistency via Flipping: Using horizontal flip variance as a proxy for depth uncertainty proved to be a simple, effective way to clean up out-of-distribution noise in the dataset generation phase.

Key Results

The authors tested two state-of-the-art monocular depth estimation models, iDisc and NewCRFs, comparing versions trained on Atlantis against versions pre-trained on massive terrestrial datasets (KITTI and NYU Depthv2).

  • Quantitative Gains: On the real-world Sea-thru dataset, iDisc trained on Atlantis cut the Root Mean Squared Error (RMSE) from 5.891 (KITTI pre-trained) down to 1.371. Similar dramatic improvements were observed on the SQUID dataset.
  • Qualitative Improvements: Models trained on Atlantis successfully eliminated heavy haze artifacts in open water areas and accurately mapped out distinct boundaries and relative distances, avoiding the depth ambiguities common in underwater imagery.
Figure 5. Qualitative results on test set of Sea-thru dataset [2]. K and N denote models pretrained on KITTI [18] and NYU Depthv2 [39] datasets. A represents the models trained on our dataset Atlantis. Our method gets the best visual results. Please zoom in for details.
  • Downstream Utility: The authors plugged their improved depth maps into the popular Sea-thru image restoration algorithm. The highly accurate depth maps enabled superior "de-watering," effectively restoring true colors and clarity to single underwater images.

Limitations and Future Work

While highly effective, the Atlantis dataset is still relatively small at 3,200 pairs. The authors note that expanding the scale of the dataset could yield even more pronounced improvements. Additionally, they suggest that future work should explore hybrid training approaches—combining this synthetic diffusion-based data with real-world data—to unlock better model generalization across diverse, real-ocean environments.

Summary updated

BibTeX
@misc{zhang2023atlantis,
  author = {Fan Zhang and Shaodi You and Yu Li and Ying Fu},
  title = {{Atlantis: Enabling Underwater Depth Estimation with Stable Diffusion}},
  year = {2023},
  eprint = {2312.12471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.12471},
}
Figure