Skip to content

tsingqguo/misf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MISF: Multi-level Interactive Siamese Filtering for High-Fidelity Image Inpainting in CVPR2022

We proposed a novel approach for high-fidelity image inpainting. Specifically, we use a single predictive network to conduct predictive filtering at the image level and deep feature level, simultaneously. The image-level filtering is to recover details, while the deep feature-level filtering is to complete semantic information, which leads to high-fidelity inpainting results. Our method outperforms state-of-the-art methods on three public datasets.

[ArXiv] colab

example_a

example_a example_b example_c example_d example_e example_f example_g example_h example_i example_l

Prerequisites

  • Python 3.7
  • PyTorch >= 1.0 (test on PyTorch 1.0 and PyTorch 1.7.0)

Dataset

  1. For data folder path (CelebA) organize them as following:
--CelebA
   --train
      --1-1.png
   --valid
      --1-1.png
   --test
      --1-1.png
   --mask-train
	  --1-1.png
   --mask-valid
      --1-1.png
   --mask-test
      --0%-20%
        --1-1.png
      --20%-40%
        --1-1.png
      --40%-60%
        --1-1.png
  1. Run the code ./data/data_list.py to generate the data list

Architecture details



Framework

Pretrained models

CelebA

Places2

Dunhuang

Train

python train.py
For the parameters: checkpoints/config.yml

Test

Such as test on the face dataset, please follow the following:

  1. Make sure you have downloaded the "celebA_InpaintingModel_dis.pth" and "celebA_InpaintingModel_gen.pth" and put that inside the checkpoints folder.
  2. Change "MODEL_LOAD: celebA_InpaintingModel" in checkpoints/config.yml.
  3. python test.py #For the parameters: checkpoints/config.yml

Comparsion with SOTA

Framework

Bibtex

@article{li2022misf,
  title={MISF: Multi-level Interactive Siamese Filtering for High-Fidelity Image Inpainting},
  author={Li, Xiaoguang and Guo, Qing and Lin, Di and Li, Ping and Feng, Wei and Wnag, Song},
  journal={CVPR},
  year={2022}
}

Acknowledgments

Parts of this code were derived from:
https://github.com/tsingqguo/efficientderain
https://github.com/knazeri/edge-connect

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages