Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
junyanz committed Apr 5, 2017
1 parent f1f7049 commit a7d903c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,4 +1,5 @@

<img src='imgs/horse2zebra.gif' align="right" width=256>
<br><br><br>

# CycleGAN
### [[project page]](https://junyanz.github.io/CycleGAN/) [[paper]](https://arxiv.org/pdf/1703.10593.pdf)
Expand Down Expand Up @@ -65,7 +66,7 @@ bash ./pretrained_models/download_model.sh style_cezanne
```
- Now, let's generate Paul Cézanne style images:
```
DATA_ROOT=./datasets/ae_photos name=style_cezanne_pretrained model=one_direction_test phase=test loadSize=256 fineSize=256 resize_or_crop=``scale_width`` th test.lua
DATA_ROOT=./datasets/ae_photos name=style_cezanne_pretrained model=one_direction_test phase=test loadSize=256 fineSize=256 resize_or_crop="scale_width" th test.lua
```
The test results will be saved to `./results/style_cezanne_pretrained/latest_test/index.html`.
Please refer to [Model Zoo](#Pre-trained-models) for more pre-trained models.
Expand Down
5 changes: 2 additions & 3 deletions examples/test_vangogh_style_on_ae_photos.sh
@@ -1,6 +1,6 @@
#!/bin/sh

## This script download the dataset and pre-trained network,
## This script download the dataset and pre-trained network,
## and generates style transferred images.

# Download the dataset. The downloaded dataset is stored in ./datasets/${DATASET_NAME}
Expand All @@ -12,9 +12,8 @@ MODEL_NAME='style_vangogh'
bash ./pretrained_models/download_model.sh $MODEL_NAME

# Run style transfer using the downloaded dataset and model
DATA_ROOT=./datasets/$DATASET_NAME name=${MODEL_NAME}_pretrained model=one_direction_test phase=test how_many='all' resize_or_crop='scale_width' th test.lua
DATA_ROOT=./datasets/$DATASET_NAME name=${MODEL_NAME}_pretrained model=one_direction_test phase=test how_many='all' loadSize=256 fineSize=256 resize_or_crop='scale_width' th test.lua

if [ $? == 0 ]; then
echo "The result can be viewed at ./results/${MODEL_NAME}_pretrained/latest_test/index.html"
fi

Binary file added imgs/horse2zebra.gif
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 a7d903c

Please sign in to comment.