An open API service indexing awesome lists of open source software.

https://github.com/morvanzhou/celeba-stylegan


https://github.com/morvanzhou/celeba-stylegan

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

An implementation of StyleGAN on CelebA dataset.

## Install

```shell script
git clone https://github.com/MorvanZhou/celebA-styleGAN
cd celebA-styleGAN
pip install -r requirements.txt
```

## Process data
Download CelebA

- [img_align_celeba.zip](https://drive.google.com/file/d/0B7EVK8r0v71pZjFTYXZWM3FlRnM/view?usp=sharing) (~1.4GB)
- [list_attr_celeba.txt](https://drive.google.com/file/d/0B7EVK8r0v71pblRyaVFSWGxPY0U/view?usp=sharing) (25MB)

to celebA_img_align folder, then unzip img_align_celeba.zip to the same folder.

process data to tensorflow tensor_record format.

```shell script
python dataset.py --data_dir ~/data/celebA_img_align/
```

## Train

```shell script
python train.py --data_dir ~/data/celebA_img_align/ -b 32 -w 2 --soft_gpu --latent 128 --lambda_ 10 --epoch 151 -lr 0.0005 -b1 0. -b2 0.99
```

## Results

First few of epoch:

![](demo/ep000t005000.png)

After one day:

![](demo/ep010t014000.png)