Skip to content

Coderx7/dcgan.caffe

 
 

Repository files navigation

dcgan.caffe: A pure caffe-python implementation of DC-GAN

======================================================================================

As far as I know, there is no light-weight implementation of DCGAN based on caffe.

Inspired by DeePSiM implementation, a few lines of python code can train the dcgan model quickly without any hack in caffe core lib (Dosovitskiy has already done this. However, I think the code could be merged back to master branch).

Dependency

You will need to compile the deepsim-caffe-branch. And make sure your PYTHONPATH point to it.

The deepsim-caffe only support cudnn-4.0. If disable the cudnn engine and replace some convolution layers with the master branch, a latest cudnn and cuda will work fine.

Training

For face generator, please prepare celebA dataset as the link said. Then make a train list file and put it in the data.prototxt.

Just typing

python train.py

Visualization

To view the model result by

python generate.py generator.prototxt snapshots_test/4000/generator.caffemodel

The visualizations of the models at iteration 3000 and 4000 are as following:

3000

4000

About

A pure caffe-python implementation of DC-GAN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%