jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.71k forks source link

[Non-issue] Code Snippet for Spatial + Scale Control? #400

Open ArturoDeza opened 7 years ago

ArturoDeza commented 7 years ago

Has anyone managed to get a small code snippet that is easily extendible to this code for spatial control and scale control (from the Gatys et al. 2016 paper con Controlling Perceptual Factors?)

ProGamerGov commented 7 years ago

@ArturoDeza The code for the research paper can be found here: https://github.com/leongatys/NeuralImageSynthesis

The Deep Photo Styletransfer project uses a modified version of an older Neural-Style version (Pre-December 2016), but has Multi-Region Spatial Control: https://github.com/luanfujun/deep-photo-styletransfer. There is a better fork of the project here, by @martinbenson, but it currently lacks the Spatial Control elements.

Ideally one would take the Multi-Region Spatial Control and combine it with the eroded guidance channels and other advancements in Gatys' code, in order to create the best possible Spatial Control.

ProGamerGov commented 7 years ago

@ArturoDeza Scale Control can be done with Neural-Style using the code here: https://github.com/ProGamerGov/Neural-Tools

And @martinbenson's fork of deep-photo-styletransfer is now using the latest version of Neural-Style, with Multi-Region Spatial Control.

Edit:

Here's a version of Neural-Style with Multi-Region Spatial Control: https://gist.github.com/ProGamerGov/bcbd27a3d2e431adb73ef158d9990d93