Coder Social home page Coder Social logo

gcgan's Introduction

GcGAN: Geometry-Consistent Generative Adversarial Networks for One-Sided Unsupervised Domain Mapping

Paper

Huan Fu and Mingming Gong contribute equally to the project and the paper.

Pretrained Models will avaliable soon.

Poster

Introduction

The codes have been modified from CycleGAN-Pix2Pix and DistanceGAN, and have been tested successfully on CentOS release 6.9, Cuda 9.1, Tesla V100, Anaconda python3, Pytorch 0.4.1.

The codes are only for research purposes. You may also need to follow the instructions of CycleGAN-Pix2Pix and DistanceGAN.

Usage

  1. Clone the respository:
git clone https://github.com/hufu6371/GcGAN.git
cd $GcGAN_ROOT
  1. Download the dataset (Cityscapes):
sh ./scripts/download_cyclegan_dataset.sh cityscapes
  1. Traning and Test (parsing2city):
sh ./train_gcgan.sh
sh ./test_gcgan.sh
  1. Evaluation (parsing2city):
Install pycaffe
Download the pre-trained caffe model following the instructions stated in CycleGAN and Pix2Pix
cd evaluation/parsing2city
python evaluate.py

Pretrained Models

all models

synthetic2real dataset

Tips

  1. For city2parsing, we do not apply scale augmentation. (--loadSize 128, --fineSize 128)
  2. For parsing2city, we set the hyperparameter "identity" as 0.3. For others, the hyperparameter "identity" is 0.5.
  3. For horse2zebra, winter2summer, summer2winter, we do not share parameters for G_{XY} and G_{\tilde{X}\tilde{Y}}. (--model gc_gan_cross)
  4. For svhn2mnist, the training scripts are located in the "models/mnist_to_svhn" directory. Please follow the instructions stated in DistanceGAN for training.
  5. The evaluation scripts are located in the "$GcGAN_ROOT/evalutation" directory.
  6. All the models are trained on 4 GPU cards.

Citation

@inproceedings{FuCVPR19-GcGAN,
  TITLE = {{Geometry-Consistent Generative Adversarial Networks for One-Sided Unsupervised Domain Mapping}},
  AUTHOR = {Fu, Huan and Gong, Mingming and Wang, Chaohui and Batmanghelich, Kayhan and Zhang, Kun and Tao, Dacheng},
  BOOKTITLE = {{IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}},
  YEAR = {2019}
}

Contact

Huan Fu: [email protected]

gcgan's People

Contributors

hufu6371 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.