Skip to content

kongdai123/SLURPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💦 [IEEE TPAMI 2025] SLURPP Single-step Latent Underwater Restoration with Pretrained Priors

Website Paper Model License

This repository represents the official implementation of the paper titled "Single-Step Latent Diffusion for Underwater Image Restoration".

Team: Jiayi Wu, Tianfu Wang, Md Abu Bakr Siddique, Md Jahidul Islam, Cornelia Fermuller, Yiannis Aloimonos, Christopher A. Metzler.

Install envrionment

We use conda for our envrionment mangement, use the environment.yml file to install

Inference

run python scripts/download_models.py to download pretrained models then run sh scripts/inference/infer_real.sh to run inference on the set of example test images

Training

Step 0: Training Data

Our method accepts any folder containing terrestrial image, along with the generated metric depth map from Depth-Pro.
The image and depth map should be in the same folder. The depth map should have the same file name as the image with the depth_pro suffix.
In training scripts set SCRATCH_DATA_DIR location for training data.
Please inspect slurpp/datasets/UR_revised_dataloader.py for more details.

Step 1: Diffusion Fine Tuning

diffusion unet training script is in scripts/training/learn.sh
run scripts/training/learn.sh <NAME_OF_YAML_CONFIG_FILE>

Step 2: Cross-Latent Decoder

first run scripts/training/infer_stage2.sh to generate pairs of diffusion output/gt data
then run scripts/training/stage2.sh to train cross-latent decoder using paried data

Acknowledgements

This code is modified from the following papers, we thank the authors for their work:

Wang Tianfu, Mingyang Xie, Haoming Cai, Sachin Shah, and Christopher A. Metzler. "Flash-split: 2d reflection removal with flash cues and latent diffusion separation." CVPR 2025.

Ke Bingxin, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, and Konrad Schindler. "Repurposing diffusion-based image generators for monocular depth estimation." CVPR 2024.

Citation

@article{wu2025single,
  title={Single-Step Latent Diffusion for Underwater Image Restoration},
  author={Wu, Jiayi and Wang, Tianfu and Siddique, Md Abu Bakr and Islam, Md Jahidul and Fermuller, Cornelia and Aloimonos, Yiannis and Metzler, Christopher A},
  journal={arXiv preprint arXiv:2507.07878},
  year={2025}
}

License

The code and models of this work are licensed under the Apache License, Version 2.0 (as defined in the LICENSE).

About

💦 [IEEE TPAMI 2025] SLURPP Single-step Latent Underwater Restoration with Pretrained Priors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published