Skip to content

zhoulukuan/DCGAN-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCGAN with Pytorch

It is an reimplement of DCGAN with pytorch.

Install

Step 0: Download

git clone https://github.com/zhoulukuan/DCGAN-Pytorch

Step 1: Install Pytorch and other package

pip install -r requirements

Step 2: Dataset preparation We use Celeb-A Faces dataset dataset. Download img_align_celeba.zip and the resulting directory structure should be:

/path/to/img
    -> img_align_celeba
        -> XXXXXX.jpg
        -> XXXXXX.jpg

Usage

Train your model by running:

python train.py configs/dcgan.py --save_dir /path/to/save --images_dir /path/to/img 

Results will be saved in save_dir including models of G/D and some results for visualization.

Results

Use setting in configs/dcgan.py(lr=0.0002,bs=128,epochs=10,Adam optimizer).

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages