Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
/ AdaNEC Public archive

Source code and pre-trained model for anonymous submission 3582

Notifications You must be signed in to change notification settings

Anonymous3582/AdaNEC

Repository files navigation

Update

The repository will be maintained at https://github.com/csmliu/AdaNEC.

AdaNEC

The implementation of Anonymous Submission 3582 "Adaptive Network Combination for Single-Image Reflection Removal: A Domain Generalization Perspective"

Envoronment

This repo has been tested in the following environment

  • Platforms: Ubuntu 20.04
  • Framework: We use PyTorch 1.8, and it should work with PyTorch 1.2 - PyTorch 1.10
  • Requirements: opencv-python, tensorboardX, visdom, dominate, scikit-image, etc
  • GPU: We use RTX 3090 with CUDA 11

Quick Start

Downloading this repository

We provide the pre-trained model via git-lfs (large file storage), please clone this repository via one of the following methods.

  1. git lfs clone https://github.com/Anonymous3582/AdaNEC or
  2. git clone https://github.com/Anonymous3582/AdaNEC, then download the pre-trained model from this page, and place it in the checkpoints/ERRNet_AdaNEC_OF folder.

Preparing your testing datasets

Note that we have provided the Real20 testing set in the datasets folder, and the SIR^2 subsets are not provided due to their policy. You can request for them and organize the SIR^2 sub-datasets as Real20.

Testing

We provide two working schemes of AdaNEC, i.e., output fusion (OF) and network interpolation (NI).

Output Fusion (OF)

The OF model has been provided, you can run the OF scheme via

$ bash test_AdaNEC_OF.sh

Network Interpolation (NI)

The NI model can be generated by running python merge_model.py under the checkpoints/ERRNet_AdaNEC_NI directory. And then the NI scheme can be excueted via

$ bash test_AdaNEC_NI.sh

Particularly note that you should generate an NI model for each testing dataset. Please see merge_model.py for more details.

Results

The results will be placed in the results folder.

Acknowledgments

The code is built upon ERRNet, one of the backbone models of our work. We will include their github commits when releasing the code publicly. We highly appreciate all the authors of ERRNet, IBCLN, and RAGNet for their efforts.

About

Source code and pre-trained model for anonymous submission 3582

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published