Skip to content

Commit

Permalink
Add my results and trained models
Browse files Browse the repository at this point in the history
  • Loading branch information
elvisyjlin committed Mar 22, 2019
1 parent 9431701 commit 65008e8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This repository contains the PyTorch implementation of the ECCV 2018 paper "Generative Adversarial Network with Spatial Attention for Face Attribute Editing" ([pdf](http://openaccess.thecvf.com/content_ECCV_2018/papers/Gang_Zhang_Generative_Adversarial_Network_ECCV_2018_paper.pdf)).

My results with images and attention masks on CelebA 128 _(original, eyeglasses, mouth_slightly_open, no_beard, smiling)_

![Results](https://github.com/elvisyjlin/SpatialAttentionGAN/blob/master/pics/4_attr_results.jpg)


## Requirements

* Python 3.5
Expand All @@ -13,6 +18,20 @@ pip3 install -r requirements.txt

The training procedure described in paper takes 5.5GB memory on a single GPU.

* Datasets
* [CelebA](http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html)
* Put _Align&Cropped Images_ in `./data/celeba/*.jpg`
* Put _Attributes Annotations_ in `./data/list_attr_celeba.txt`

* Pretrained models (download from https://goo.gl/EMj4VL and decompress the zips to `./results`)
```
results
├── celeba_128_eyeglasses
├── celeba_128_mouth_slightly_open
├── celeba_128_no_beard
└── celeba_128_smiling
```

## Usage

Train a model with a target attribute
Expand Down
Binary file added pics/4_attr_results.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 65008e8

Please sign in to comment.