The implementation and improvement of CVPR 2019 paper "Single Image Reflection Removal Exploiting Misaligned Training Data and Network Enhancements"
- Python >=3.5, PyTorch >= 0.4.1
- Requirements: opencv-python, tensorboardX, visdom
- Platforms: Ubuntu 16.04, cuda-8.0
ERRNet-ref
folder contains the debugged original code of ERRNetERRNet-mydata
folder contains the code for training using our own synthetic data (Code for data generating is insync_model
folder)ERRNet-TR
folder contains our newly proposed network: ERRNet-TR and the relating training and test codeERRNet-TR-lite
folder contains our newly proposed network: ERRNet-TR-lite and the relating training and test codesync_model
folder contains code for data generating and a data sample
- Running the following command after entering the corresponding folder
python test_errnet.py --name errnet -r --icnn_path checkpoints/errnet/ourmodel.pt --hyper --gpu_ids -1
(gpu_ids=-1 means using CPU to test)
- Running the following command after entering the corresponding folder
python train_errnet.py --name errnet --hyper
(Need to prepare the dataset in the folderreflection_data
before training) - Viewing
options/errnet/train_options.py
for more training options