/generative-inpainting-2.0-pytorch

Unofficial implementation of DeepFill v2, ICCV2019 paper Free-Form Image Inpainting with Gated Convolution

Primary LanguagePython

generative-inpainting-2.0-pytorch

Unofficial pytorch implementation of DeepFill v2, ICCV2019 paper Free-Form Image Inpainting with Gated Convolution

Link

usage

  • check out the requirement
  • download the pretrained model of 68-points facial landmark predictor and unzip it to ./facial_landmark_detector folder.
  • download CelebA Dataset
  • preproccess the edge maps of CelebA Dataset:
    python preproccess_edge.py --face_preddictor_path xxx --img_read_path xxx --mask_save_path xxx
  • run the train code after modifying config.py:
    python run.py