/FHDe2Net

Official Implementation for "FHDe2Net: Full High Definition Demoireing Network" (ECCV 20)

Primary LanguagePython

FHDe2Net

Official Implementation for "FHDe2Net: Full High Definition Demoireing Network" (ECCV 20)

Prerequisites:

  1. Linux
  2. python2 or 3
  3. NVIDIA GPU + CUDA CuDNN (CUDA 8.0)

Installation:

  1. Install PyTorch from http://pytorch.org
  2. Install Torch vision from https://github.com/pytorch/vision
  3. Install python package: numpy, scipy, PIL, math, skimage, visdom

Download the FHDMi dataset

You can download the training and testing dataset from
https://pan.baidu.com/s/19LTN7unSBAftSpNVs8x9ZQ with password jf2d or https://drive.google.com/drive/folders/1IJSeBXepXFpNAvL5OyZ2Y1yu4KPvDxN5?usp=sharing You accelerate the training with a subset of FHDMi described by FHDMi_thin.txt.

Testing

  1. Download pre-trained models You can download the pre-trained models from https://pan.baidu.com/s/14fo4gdBtx4GDohNNyYObpg with password t8vn And all the models are supposed to be placed in the ckpt folder.

  2. Build up the testing environment You can easily build the testing environment by: pip install -r requirements.txt

  3. testing Specify the --dataroot with the testing dataset path, and run bash run_test.sh

Training

  1. Download Vgg19 ckpt from https://pan.baidu.com/s/1c3eEh29uAfZTzTe0X9Jz_Q by password: zvcy And put it in models/

  2. open visdom by python -m visdom.server -port 8099

  3. change the dataroot in run_GDN.sh and train GND by running bash run_GDN.sh

  4. change the dataroot in run_LRN.sh and train LRN by running bash run_LRN.sh (For trainnig LRN, you can either use the distilled dataset generated by rank2_edge_batch.py or directly use the whole dataset. A subset image list for FHDMi has been generated ahead in list_7000_f1000.txt.)

  5. change the dataroot in run_FDN_FRN.sh and train FDN and FRN by running bash run_FDN_FRN.sh

Citation

@article{hefhde2net,
  title={FHDe2Net: Full High Definition Demoireing Network},
  author={He, Bin and Wang, Ce and Shi, Boxin and Duan, Ling-Yu},
  publisher={Springer}
}

Contactor

If you have any question, please feel free to contact me with 1801213742@pku.edu.cn