Skip to content

Conversation

@psychosomaticdragon
Copy link

@psychosomaticdragon psychosomaticdragon commented Jun 16, 2017

I've added support for the histogram matching algorithm as described in the following paper
https://arxiv.org/abs/1701.08893
When used in conjunction with gram or mean based style transfer, it helps stabilize style textures within the generated image. When used on its own, i've found that it preserves content image features much better than gram-based style transfer does, while still reproducing a style transfer of high quality.

Currently only implemented as a CPU based method, as creating an openCL or CUDA kernel for the histogram matching algorithm is non-trivial, and will probably take me a while to complete.

Added the option of using histogram matching as a type of style loss. Can be used in conjunction with gram/mean based loss to improve detail of style texture, or can be used on its own to create stylizations that strongly preserve the content image features.
This module is used to match the histogram of the content image features to the histogram of the style image features. Currently does not support GPU acceleration, however it can help achieve more detailed style images when used in conjunction with gram based style loss, and can style images with minimal impact to content features when used as the sole stylization method.
updated slow neural style to have the option of using a histogram loss function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant