Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
titu1994 committed Nov 16, 2016
1 parent 197ab67 commit c46978b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ A mask can also be supplied to color preservation script, using the `--mask` arg
python color_transfer.py "path/to/content/image" "path/to/generated/image" --mask "/path/to/mask/image"
```

Using the `--hist_match` parameter set to 1, it will perform histogram color matching instead of direct color transfer
```
python color_transfer.py "path/to/content/image" "path/to/generated/image" --hist_match 1
```

Please note that for masks for color preservation and for style transfer have different representations. Color preservations will preserve white areas as content colors, and mask transfer will preserve black areas as content image.

### Masked Style Transfer (Post Processing)
Expand Down Expand Up @@ -348,6 +353,12 @@ python mask_transfer.py "path/to/content/image" "path/to/generated/image" "path/
--region_style_weight : Weight for region style regularization. Keep it set to 1.0 unless testing for experimental purposes.
```

## Parameters (Color Transfer)
```
--masks : Optional, performs masked color transfer
--hist_match : Performs histogram color matching if set to 1. Default is 0.
```

# Network.py in action
![Alt Text](https://raw.githubusercontent.com/titu1994/Neural-Style-Transfer/master/images/Blue%20Moon%20Lake.gif)

Expand Down

0 comments on commit c46978b

Please sign in to comment.