SHI-Labs / FcF-Inpainting

[WACV 2023] Keys to Better Image Inpainting: Structure and Texture Go Hand in Hand
https://praeclarumjj3.github.io/fcf-inpainting/
Other
173 stars 13 forks source link
fast-fourier-convolution fcfgan image-inpainting pytorch stylegan2

FcF-Inpainting

Open In Colab Huggingface space Framework: PyTorch License

Jitesh Jain, Yuqian Zhou, Ning Yu, Humphrey Shi, WACV 2023

Equal Contribution

[Project Page] [arXiv] [pdf] [BibTeX]

This repo contains the code for our paper Keys to Better Image Inpainting: Structure and Texture Go Hand in Hand.

FcFGAN

News

Contents

  1. Setup Instructions
  2. Dataset Preparation
  3. Training and Evaluation
  4. Citing FcF-Inpainting

1. Setup Instructions

2. Dataset Preparation

CelebA-HQ Dataset

Training Data

Evaluation Data

Places2 Dataset

Training Data

Evaluation Data

Irregular Mask Strategy
Segmentation Mask strategy

Note: The pairs are only generated for images with detected instances.

3. Training and Evaluation

places

Training on 256x256

Note: If the process hangs on Setting up PyTorch plugin ..., refer to this issue.

Evaluation

Pretrained Models

checkpoint Description
places_512.pkl Model trained on 512x512 for 25M Places2 images
places.pkl Model trained on 256x256 for 25M Places2 images
celeba-hq.pkl Model trained on 256x256 for 25M CelebA-HQ images

celeba

Demo

4. Citing FcF-Inpainting

@inproceedings{jain2022keys,
  title={Keys to Better Image Inpainting: Structure and Texture Go Hand in Hand},
  author={Jitesh Jain and Yuqian Zhou and Ning Yu and Humphrey Shi},
  booktitle={WACV},
  year={2023}
} 

Acknowledgement

Code is heavily based on the following repositories: stylegan2-ada-pytorch and lama.