LoginSignup
0
0

More than 3 years have passed since last update.

window10でchainer,dcganのメモ

Last updated at Posted at 2019-08-01

動作環境

Windows10 Home
GTX1080ti

Anacondaのインストール

CUDA

cuDNN

環境作成

Anacondapromptを起動
仮想環境の作成
conda create -n [仮想環境名] python=3.7 jupyter
仮想環境の一覧
conda info --envs
仮想環境の起動
cond activate [仮想環境名]
仮想環境の停止
conda deactivate

chainerをインストール

pip install chainer,cupy

バージョン確認
import chainer
chainer.__version__
'6.2.0'

DCGANのexample

git clone https://github.com/chainer/chainer.git
※chainer\examples\dcgan

dcganのトレーニング、画像出力

python train_dcgan.py --gpu 0
cifar-10がダウンロードされたあとに学習が始まります

Device: @cupy:0
# Minibatch-size: 50
# n_hidden: 100
# epoch: 1000

Downloading from https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz...

学習済みモデルと出力画像

モデル result
出力画像 result\preview
image00283000.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0