Skip to content
/ RDNet Public

The official Impl for "Reversible Decoupling Network for Single Image Reflection Removal"

Notifications You must be signed in to change notification settings

lime-j/RDNet

Repository files navigation

RDNet for Single Image Reflection Removal

PWC PWC PWC PWC PWC

Reversible Decoupling Network for Single Image Reflection Removal

We present a Reversible Decoupling Network (RDNet), which employs a reversible encoder to secure valuable information while flexibly decoupling transmission-and-reflection-relevant features during the forward pass. Furthermore, we customize a transmission-rate-aware prompt generator to dynamically calibrate features, further boosting performance. Extensive experiments demonstrate the superiority of RDNet over existing SOTA methods on five widely-adopted benchmark datasets.

Requirements

We recommend torch 2.x for our code, but it should works fine with most of the modern versions.

pip install torch>=2.0 torchvision
pip install einops ema-pytorch fsspec fvcore huggingface-hub matplotlib numpy opencv-python omegaconf pytorch-msssim scikit-image scikit-learn scipy tensorboard tensorboardx wandb timm

Testing

The checkpoint for the main network is available at https://checkpoints.mingjia.li/rdnet.pth ; while the model for cls_model is at https://checkpoints.mingjia.li/cls_model.pth . Please put the cls_model.pth under "pretrained" folder.

python3 test_sirs.py --icnn_path <path to the main checkpoint> --resume

Training

Training script will be released in a few days.

About

The official Impl for "Reversible Decoupling Network for Single Image Reflection Removal"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages