All Projects → XingangPan → Deep Generative Prior

XingangPan / Deep Generative Prior

Licence: mit
Code for deep generative prior (ECCV2020 oral)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Deep Generative Prior

Image To Image Papers
🦓<->🦒 🌃<->🌆 A collection of image to image papers with code (constantly updating)
Stars: ✭ 949 (+208.12%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Lggan
[CVPR 2020] Local Class-Specific and Global Image-Level Generative Adversarial Networks for Semantic-Guided Scene Generation
Stars: ✭ 97 (-68.51%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Igan
Interactive Image Generation via Generative Adversarial Networks
Stars: ✭ 3,845 (+1148.38%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Anycost Gan
[CVPR 2021] Anycost GANs for Interactive Image Synthesis and Editing
Stars: ✭ 367 (+19.16%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Tsit
[ECCV 2020 Spotlight] A Simple and Versatile Framework for Image-to-Image Translation
Stars: ✭ 141 (-54.22%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Cyclegan
Software that can generate photos from paintings, turn horses into zebras, perform style transfer, and more.
Stars: ✭ 10,933 (+3449.68%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Pix2pix
Image-to-image translation with conditional adversarial nets
Stars: ✭ 8,765 (+2745.78%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
UEGAN
[TIP2020] Pytorch implementation of "Towards Unsupervised Deep Image Enhancement with Generative Adversarial Network"
Stars: ✭ 68 (-77.92%)
Mutual labels:  generative-adversarial-network, gan, image-manipulation
Focal Frequency Loss
Focal Frequency Loss for Generative Models
Stars: ✭ 141 (-54.22%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Gandissect
Pytorch-based tools for visualizing and understanding the neurons of a GAN. https://gandissect.csail.mit.edu/
Stars: ✭ 1,700 (+451.95%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Pytorch Cyclegan And Pix2pix
Image-to-Image Translation in PyTorch
Stars: ✭ 16,477 (+5249.68%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
Faceswap Gan
A denoising autoencoder + adversarial losses and attention mechanisms for face swapping.
Stars: ✭ 3,099 (+906.17%)
Mutual labels:  gan, generative-adversarial-network, image-manipulation
ADL2019
Applied Deep Learning (2019 Spring) @ NTU
Stars: ✭ 20 (-93.51%)
Mutual labels:  generative-adversarial-network, gan
AvatarGAN
Generate Cartoon Images using Generative Adversarial Network
Stars: ✭ 24 (-92.21%)
Mutual labels:  generative-adversarial-network, gan
MNIST-invert-color
Invert the color of MNIST images with PyTorch
Stars: ✭ 13 (-95.78%)
Mutual labels:  generative-adversarial-network, gan
Alae
[CVPR2020] Adversarial Latent Autoencoders
Stars: ✭ 3,178 (+931.82%)
Mutual labels:  gan, generative-adversarial-network
Deep-Exemplar-based-Video-Colorization
The source code of CVPR 2019 paper "Deep Exemplar-based Video Colorization".
Stars: ✭ 180 (-41.56%)
Mutual labels:  generative-adversarial-network, gan
TextBoxGAN
Generate text boxes from input words with a GAN.
Stars: ✭ 50 (-83.77%)
Mutual labels:  generative-adversarial-network, gan
Pytorch Srgan
A modern PyTorch implementation of SRGAN
Stars: ✭ 289 (-6.17%)
Mutual labels:  gan, generative-adversarial-network
keras-3dgan
Keras implementation of 3D Generative Adversarial Network.
Stars: ✭ 20 (-93.51%)
Mutual labels:  generative-adversarial-network, gan

Deep Generative Prior (DGP)

Paper

Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, Ping Luo, "Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation", ECCV2020 (Oral)

Video: https://youtu.be/p7ToqtwfVko

Demos

DGP exploits the image prior of an off-the-shelf GAN for various image restoration and manipulation.

Image restoration:

Image manipulation:

A learned prior helps internal learning:

Requirements

  • python>=3.6

  • pytorch>=1.0.1

  • others

    pip install -r requirements.txt
    

Get Started

Before start, please download the pretrained BigGAN at Google drive or Baidu cloud (password: uqtw), and put them to pretrained folder.

Example1: run image colorization example:

sh experiments/examples/run_colorization.sh   

The results will be saved in experiments/examples/images and experiments/examples/image_sheet.

Example2: process images with an image list:

sh experiments/examples/run_inpainting_list.sh   

Example3: evaluate on 1k ImageNet validation images via distributed training based on slurm:

# need to specifiy the root path of imagenet validate set in --root_dir
sh experiments/imagenet1k_128/colorization/train_slurm.sh   

Note:
- BigGAN needs a class condition as input. If no class condition is provided, it would be chosen from a set of random samples.
- The hyperparameters provided may not be optimal, feel free to tune them.

Acknowledgement

The code of BigGAN is borrowed from https://github.com/ajbrock/BigGAN-PyTorch.

Citation

@inproceedings{pan2020dgp,
  author = {Pan, Xingang and Zhan, Xiaohang and Dai, Bo and Lin, Dahua and Loy, Chen Change and Luo, Ping},
  title = {Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year = {2020}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].