Coder Social home page Coder Social logo

zhykoties / improved_ccgan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ubcdingxin/improved_ccgan

0.0 1.0 0.0 141.23 MB

Continuous Conditional Generative Adversarial Networks for Image Generation: Novel Losses and Label Input Mechanisms

Python 91.87% Shell 6.98% MATLAB 1.14%

improved_ccgan's Introduction

Continuous Conditional GAN (CcGAN)

If you use this code, please cite

@inproceedings{
      ding2021ccgan,
      title={Cc{\{}GAN{\}}: Continuous Conditional Generative Adversarial Networks for Image Generation},
      author={Xin Ding and Yongwei Wang and Zuheng Xu and William J Welch and Z. Jane Wang},
      booktitle={International Conference on Learning Representations},
      year={2021},
      url={https://openreview.net/forum?id=PrzjugOsDeE}
}

@misc{ding2020continuous,
      title={Continuous Conditional Generative Adversarial Networks for Image Generation: Novel Losses and Label Input Mechanisms}, 
      author={Xin Ding and Yongwei Wang and Zuheng Xu and William J. Welch and Z. Jane Wang},
      year={2020},
      eprint={2011.07466},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

1. Datasets

The RC-49 Dataset (h5 file)

https://1drv.ms/u/s!Arj2pETbYnWQr7MY2Pr5qipSUpZKEQ?e=aRym3k

Download 'RC-49_64x64.h5' and put it in './improved_CcGAN/dataset/RC-49'

The preprocessed UTKFace Dataset (h5 file)

https://1drv.ms/u/s!Arj2pETbYnWQr7MW_sGY9tJC4G3eMw?e=ohhRTe

Download 'UTKFace_64x64.h5' and put it in './improved_CcGAN/dataset/UTKFace'

The Cell-200 dataset (h5 file)

https://1drv.ms/u/s!Arj2pETbYnWQr8tDP9Etf16nWddoTQ

Download 'Cell200_64x64.h5' and put it in './improved_CcGAN/dataset/Cell200'

The Steering Angle dataset (h5 file)

For CcGAN, AE, and Regression CNN training:
https://1drv.ms/u/s!Arj2pETbYnWQr7Mdwe6H-IS0YwXh3A?e=U0BiIq

For Clssification CNN training:
https://1drv.ms/u/s!Arj2pETbYnWQr8xEgY3ZHSe2b1CHlQ?e=SE7pv6

Download 'SteeringAngle_64x64.h5' and 'SteeringAngle_5_scenes_64x64' and put them in './improved_CcGAN/dataset/SteeringAngle'

2. Sample Usage

If a folder has 'improved' in its name, this folder corresponds to a ILI-based CcGAN; otherwise, a NLI-based CcGAN.

2.1 Simulation ('./improved_CcGAN/Simulation')

First, set the ROOT_PATH and DATA_PATH in the './scripts/run_train.sh' to yours.

Then, run 'run_train.sh'.

2.2 RC-49 ('./improved_CcGAN/RC-49' and './improved_CcGAN/RC-49-improved'')

First, set the ROOT_PATH and DATA_PATH in the './scripts/run_train.sh' to yours.

Then, run 'run_train.sh'.

2.3 UTKFace ('./improved_CcGAN/UTKFace' and './improved_CcGAN/UTKFace-improved')

First, set the ROOT_PATH and DATA_PATH in './scripts/run_train.sh' to yours.

Then, run 'run_train.sh'.

2.4 Cell-200 ('./improved_CcGAN/Cell200' and './improved_CcGAN/Cell200-improved')

First, set the ROOT_PATH and DATA_PATH in './scripts/run_train.sh' to yours.

Then, run 'run_train.sh'.

2.5 Steering Angle ('./improved_CcGAN/SteeringAngle' and './improved_CcGAN/SteeringAngle-improved')

First, set the ROOT_PATH and DATA_PATH in './scripts/run_train.sh' to yours.

Then, run 'run_train.sh'.

3. NIQE

The code for computing NIQE is in './improved_CcGAN/NIQE'. Corresponding tutorial will be provided soon.

improved_ccgan's People

Contributors

ubcdingxin avatar enkiwang avatar

Watchers

James Cloos 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.