Giter Club home page Giter Club logo

conditionaldcgan's Introduction

conditionalDCGAN

MNISTをconditionalDCGANで生成するプログラム

使い方

  • 学習

python ctreate_dataset.py

mnistをpickleに保存して使用しています.

python train.py

Trainerを使わない記述方法です.

  • 画像生成

python test.py -mri result_id -l class_label

学習済みモデルから画像を1枚生成します.

* result_idには利用したいgenerator.pyが保存されたresult直下のフォルダ名を指定

* class_labelには生成したいクラスのラベル(0~9)を指定

    * (ex) クラス0 --> 1;0;0;0;0;0;0;0;0;0

test_sample.batを実行すると, クラス0~9指定画像と, 全て0指定, 全て1指定, 1と3を0.5ずつ指定した画像を生成できます.

動作環境

  • python==3.6.1
  • chainer==3.5.0
  • cupy==2.5.0
  • cuda==v8.0
  • cuDNN==v6
  • GPU: GeForce GTX 1080

サンプル

sample

参考

下記のサイトを参考に致しました.

https://qiita.com/lyakaap/items/a9ae5d91464e72774093

conditionaldcgan's People

Contributors

dai7igarashi avatar

Stargazers

 avatar

Forkers

paman-ninja

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.