Git Product home page Git Product logo

deep-convolutional-gan's Introduction

Deep-Convolutional-GAN

This repositiory is for implementing Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks(DCGAN)

Environment

  • CUDA Version: 10.2
torch==1.5.0
torchvision==0.6.0
numpy==1.19.2

Usage

To train a model, run train.py. If you need to speicfy the model, just use some args.

# training with gpu.
$ python train.py --gpu

optional&required arguments

--data_dir      default='./data/',
                help="Directory containing the dataset"
--lr            type=float, default=0.0002,
                help="Learning rate"
--b1            type=float, default=0.5,
                help="Momentum decay rate"
--b2            type=float, default=0.9,
                help="Adaptive term decay rate"
--latent_dim    type=int, default=100,
                help="Dimensionality of the latent space"
--epoch         type=int, default=100,
                help="Total training epochs"
--batch_size    type=int, default=64,
                help="batch size"
--img_ch        type=int, default=1,
                help="image channel size(MNIST: 1, CIFAR-10: 3)"
--gpu           action='store_true', default='False',
                help="GPU available"

Results

[40 epochs]

ezgif-3-4eff45838982

42400 44800

왜 이럴까?

44에폭부터 이렇게 Generator가 완전 맛이 가버림... loss

[Epoch 44/100] [D loss: 1.7774] [G loss: 0.6982]
[Epoch 45/100] [D loss: 0.0000] [G loss: 14.7746]
[Epoch 46/100] [D loss: 0.0001] [G loss: 12.6780]
[Epoch 47/100] [D loss: 0.0000] [G loss: 13.6344]
[Epoch 48/100] [D loss: 0.0000] [G loss: 30.7463]
[Epoch 49/100] [D loss: 0.0000] [G loss: 53.4993]
[Epoch 50/100] [D loss: 0.0000] [G loss: 53.8629]
[Epoch 51/100] [D loss: 0.0000] [G loss: 80.5456]
[Epoch 52/100] [D loss: 0.0000] [G loss: 68.9882]
[Epoch 53/100] [D loss: 0.0000] [G loss: 80.7234]
[Epoch 54/100] [D loss: 0.0000] [G loss: 73.4675]
[Epoch 55/100] [D loss: 0.0000] [G loss: 60.6370]
[Epoch 56/100] [D loss: 0.0000] [G loss: 77.4076]
[Epoch 57/100] [D loss: 0.0000] [G loss: 81.6535]
[Epoch 58/100] [D loss: 0.0000] [G loss: 74.7338]
[Epoch 59/100] [D loss: 0.0000] [G loss: 77.7797]
[Epoch 60/100] [D loss: 0.0000] [G loss: 79.5218]
[Epoch 61/100] [D loss: 0.0000] [G loss: 79.2897]
[Epoch 62/100] [D loss: 0.0000] [G loss: 78.8147]
[Epoch 63/100] [D loss: 0.0000] [G loss: 64.2516]
[Epoch 64/100] [D loss: 0.0000] [G loss: 79.5293]
[Epoch 65/100] [D loss: 0.0000] [G loss: 75.6623]
[Epoch 66/100] [D loss: 0.0000] [G loss: 72.8966]

D가 overfitting되면서 G에 영향을 준다.

관련 issue

Adding gaussian noise helped for me

-> 다음에 이거 반영해서 수정하기

Reference

deep-convolutional-gan's People

Contributors

yskim0 avatar

Watchers

 avatar  avatar

Forkers

ichiragrathi07

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.