{"id":13492020,"url":"https://github.com/jcjohnson/neural-style","last_synced_at":"2025-05-13T21:10:26.094Z","repository":{"id":41271499,"uuid":"41717707","full_name":"jcjohnson/neural-style","owner":"jcjohnson","description":"Torch implementation of neural style algorithm","archived":false,"fork":false,"pushed_at":"2018-02-23T01:21:20.000Z","size":48191,"stargazers_count":18317,"open_issues_count":317,"forks_count":2694,"subscribers_count":631,"default_branch":"master","last_synced_at":"2025-04-28T17:02:04.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcjohnson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-01T04:55:14.000Z","updated_at":"2025-04-28T15:31:28.000Z","dependencies_parsed_at":"2022-08-02T13:16:50.105Z","dependency_job_id":null,"html_url":"https://github.com/jcjohnson/neural-style","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcjohnson%2Fneural-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcjohnson%2Fneural-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcjohnson%2Fneural-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcjohnson%2Fneural-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcjohnson","download_url":"https://codeload.github.com/jcjohnson/neural-style/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029002,"owners_count":22002283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:01:02.451Z","updated_at":"2025-05-13T21:10:21.061Z","avatar_url":"https://github.com/jcjohnson.png","language":"Lua","funding_links":[],"categories":["Lua","LUA","others","Model Zoo","Machine Learning ##","Style Transfer"],"sub_categories":["Convolutional Networks","Design Interview ###"],"readme":"# neural-style\n\nThis is a torch implementation of the paper [A Neural Algorithm of Artistic Style](http://arxiv.org/abs/1508.06576)\nby Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge.\n\nThe paper presents an algorithm for combining the content of one image with the style of another image using\nconvolutional neural networks. Here's an example that maps the artistic style of\n[The Starry Night](https://en.wikipedia.org/wiki/The_Starry_Night)\nonto a night-time photograph of the Stanford campus:\n\n\u003cdiv align=\"center\"\u003e\n \u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/starry_night_google.jpg\" height=\"223px\"\u003e\n \u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/hoovertowernight.jpg\" height=\"223px\"\u003e\n \u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/starry_stanford_bigger.png\" width=\"710px\"\u003e\n\u003c/div\u003e\n\nApplying the style of different images to the same content image gives interesting results.\nHere we reproduce Figure 2 from the paper, which renders a photograph of the Tubingen in Germany in a\nvariety of styles:\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/tubingen.jpg\" height=\"250px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_shipwreck.png\" height=\"250px\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_starry.png\" height=\"250px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_scream.png\" height=\"250px\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_seated_nude.png\" height=\"250px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_composition_vii.png\" height=\"250px\"\u003e\n\u003c/div\u003e\n\nHere are the results of applying the style of various pieces of artwork to this photograph of the\ngolden gate bridge:\n\n\n\u003cdiv align=\"center\"\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/golden_gate.jpg\" height=\"200px\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/frida_kahlo.jpg\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_kahlo.png\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/escher_sphere.jpg\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_escher.png\" height=\"160px\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/woman-with-hat-matisse.jpg\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_matisse.png\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/the_scream.jpg\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_scream.png\" height=\"160px\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/starry_night_crop.png\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry.png\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/seated-nude.jpg\" height=\"160px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_seated.png\" height=\"160px\"\u003e\n\u003c/div\u003e\n\n### Content / Style Tradeoff\n\nThe algorithm allows the user to trade-off the relative weight of the style and content reconstruction terms,\nas shown in this example where we port the style of [Picasso's 1907 self-portrait](http://www.wikiart.org/en/pablo-picasso/self-portrait-1907) onto Brad Pitt:\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/picasso_selfport1907.jpg\" height=\"220px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/inputs/brad_pitt.jpg\" height=\"220px\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/pitt_picasso_content_5_style_10.png\" height=\"220px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/pitt_picasso_content_1_style_10.png\" height=\"220px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/pitt_picasso_content_01_style_10.png\" height=\"220px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/pitt_picasso_content_0025_style_10.png\" height=\"220px\"\u003e\n\u003c/div\u003e\n\n### Style Scale\n\nBy resizing the style image before extracting style features, we can control the types of artistic\nfeatures that are transfered from the style image; you can control this behavior with the `-style_scale` flag.\nBelow we see three examples of rendering the Golden Gate Bridge in the style of The Starry Night.\nFrom left to right, `-style_scale` is 2.0, 1.0, and 0.5.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scale2.png\" height=175px\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scale1.png\" height=175px\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scale05.png\" height=175px\u003e\n\u003c/div\u003e\n\n### Multiple Style Images\nYou can use more than one style image to blend multiple artistic styles.\n\nClockwise from upper left: \"The Starry Night\" + \"The Scream\", \"The Scream\" + \"Composition VII\",\n\"Seated Nude\" + \"Composition VII\", and \"Seated Nude\" + \"The Starry Night\"\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_starry_scream.png\" height=\"250px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_scream_composition_vii.png\" height=\"250px\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_starry_seated.png\" height=\"250px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_seated_nude_composition_vii.png\" height=\"250px\"\u003e\n\u003c/div\u003e\n\n\n### Style Interpolation\nWhen using multiple style images, you can control the degree to which they are blended:\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scream_3_7.png\" height=\"175px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scream_5_5.png\" height=\"175px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/golden_gate_starry_scream_7_3.png\" height=\"175px\"\u003e\n\u003c/div\u003e\n\n\n### Transfer style but not color\nIf you add the flag `-original_colors 1` then the output image will retain the colors of the original image;\nthis is similar to [the recent blog post by deepart.io](http://blog.deepart.io/2016/06/04/color-independent-style-transfer/).\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_starry.png\" height=\"185px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_scream.png\" height=\"185px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/tubingen_composition_vii.png\" height=\"185px\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/original_color/tubingen_starry.png\" height=\"185px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/original_color/tubingen_scream.png\" height=\"185px\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/original_color/tubingen_composition_vii.png\" height=\"185px\"\u003e\n\u003c/div\u003e\n\n## Setup:\n\nDependencies:\n* [torch7](https://github.com/torch/torch7)\n* [loadcaffe](https://github.com/szagoruyko/loadcaffe)\n\nOptional dependencies:\n* For CUDA backend:\n  * CUDA 6.5+\n  * [cunn](https://github.com/torch/cunn)\n* For cuDNN backend:\n  * [cudnn.torch](https://github.com/soumith/cudnn.torch)\n* For OpenCL backend:\n  * [cltorch](https://github.com/hughperkins/cltorch)\n  * [clnn](https://github.com/hughperkins/clnn)\n\nAfter installing dependencies, you'll need to run the following script to download the VGG model:\n```\nsh models/download_models.sh\n```\nThis will download the original [VGG-19 model](https://gist.github.com/ksimonyan/3785162f95cd2d5fee77#file-readme-md).\nLeon Gatys has graciously provided the modified version of the VGG-19 model that was used in their paper;\nthis will also be downloaded. By default the original VGG-19 model is used.\n\nIf you have a smaller memory GPU then using NIN Imagenet model will be better and gives slightly worse yet comparable results. You can get the details on the model from [BVLC Caffe ModelZoo](https://github.com/BVLC/caffe/wiki/Model-Zoo) and can download the files from [NIN-Imagenet Download Link](https://drive.google.com/folderview?id=0B0IedYUunOQINEFtUi1QNWVhVVU\u0026usp=drive_web)\n\nYou can find detailed installation instructions for Ubuntu in the [installation guide](INSTALL.md).\n\n## Usage\nBasic usage:\n```\nth neural_style.lua -style_image \u003cimage.jpg\u003e -content_image \u003cimage.jpg\u003e\n```\n\nOpenCL usage with NIN Model (This requires you download the NIN Imagenet model files as described above):\n```\nth neural_style.lua -style_image examples/inputs/picasso_selfport1907.jpg -content_image examples/inputs/brad_pitt.jpg -output_image profile.png -model_file models/nin_imagenet_conv.caffemodel -proto_file models/train_val.prototxt -gpu 0 -backend clnn -num_iterations 1000 -seed 123 -content_layers relu0,relu3,relu7,relu12 -style_layers relu0,relu3,relu7,relu12 -content_weight 10 -style_weight 1000 -image_size 512 -optimizer adam\n```\n\n![OpenCL NIN Model Picasso Brad Pitt](/examples/outputs/pitt_picasso_nin_opencl.png)\n\n\nTo use multiple style images, pass a comma-separated list like this:\n\n`-style_image starry_night.jpg,the_scream.jpg`.\n\nNote that paths to images should not contain the `~` character to represent your home directory; you should instead use a relative\npath or a full absolute path.\n\n**Options**:\n* `-image_size`: Maximum side length (in pixels) of of the generated image. Default is 512.\n* `-style_blend_weights`: The weight for blending the style of multiple style images, as a\n  comma-separated list, such as `-style_blend_weights 3,7`. By default all style images\n  are equally weighted.\n* `-gpu`: Zero-indexed ID of the GPU to use; for CPU mode set `-gpu` to -1.\n\n**Optimization options**:\n* `-content_weight`: How much to weight the content reconstruction term. Default is 5e0.\n* `-style_weight`: How much to weight the style reconstruction term. Default is 1e2.\n* `-tv_weight`: Weight of total-variation (TV) regularization; this helps to smooth the image.\n  Default is 1e-3. Set to 0 to disable TV regularization.\n* `-num_iterations`: Default is 1000.\n* `-init`: Method for generating the generated image; one of `random` or `image`.\n  Default is `random` which uses a noise initialization as in the paper; `image`\n  initializes with the content image.\n* `-optimizer`: The optimization algorithm to use; either `lbfgs` or `adam`; default is `lbfgs`.\n  L-BFGS tends to give better results, but uses more memory. Switching to ADAM will reduce memory usage;\n  when using ADAM you will probably need to play with other parameters to get good results, especially\n  the style weight, content weight, and learning rate; you may also want to normalize gradients when\n  using ADAM.\n* `-learning_rate`: Learning rate to use with the ADAM optimizer. Default is 1e1.\n* `-normalize_gradients`: If this flag is present, style and content gradients from each layer will be\n  L1 normalized. Idea from [andersbll/neural_artistic_style](https://github.com/andersbll/neural_artistic_style).\n\n**Output options**:\n* `-output_image`: Name of the output image. Default is `out.png`.\n* `-print_iter`: Print progress every `print_iter` iterations. Set to 0 to disable printing.\n* `-save_iter`: Save the image every `save_iter` iterations. Set to 0 to disable saving intermediate results.\n\n**Layer options**:\n* `-content_layers`: Comma-separated list of layer names to use for content reconstruction.\n  Default is `relu4_2`.\n* `-style_layers`: Comma-separated list of layer names to use for style reconstruction.\n  Default is `relu1_1,relu2_1,relu3_1,relu4_1,relu5_1`.\n\n**Other options**:\n* `-style_scale`: Scale at which to extract features from the style image. Default is 1.0.\n* `-original_colors`: If you set this to 1, then the output image will keep the colors of the content image.\n* `-proto_file`: Path to the `deploy.txt` file for the VGG Caffe model.\n* `-model_file`: Path to the `.caffemodel` file for the VGG Caffe model.\n  Default is the original VGG-19 model; you can also try the normalized VGG-19 model used in the paper.\n* `-pooling`: The type of pooling layers to use; one of `max` or `avg`. Default is `max`.\n  The VGG-19 models uses max pooling layers, but the paper mentions that replacing these layers with average\n  pooling layers can improve the results. I haven't been able to get good results using average pooling, but\n  the option is here.\n* `-backend`: `nn`, `cudnn`, or `clnn`. Default is `nn`. `cudnn` requires\n  [cudnn.torch](https://github.com/soumith/cudnn.torch) and may reduce memory usage.\n  `clnn` requires [cltorch](https://github.com/hughperkins/cltorch) and [clnn](https://github.com/hughperkins/clnn)\n* `-cudnn_autotune`: When using the cuDNN backend, pass this flag to use the built-in cuDNN autotuner to select\n  the best convolution algorithms for your architecture. This will make the first iteration a bit slower and can\n  take a bit more memory, but may significantly speed up the cuDNN backend.\n\n## Frequently Asked Questions\n\n**Problem:** Generated image has saturation artifacts:\n\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/1310570/9694690/fa8e8782-5328-11e5-9c91-11f7b215ad19.png\"\u003e\n\n**Solution:** Update the `image` packge to the latest version: `luarocks install image`\n\n**Problem:** Running without a GPU gives an error message complaining about `cutorch` not found\n\n**Solution:**\nPass the flag `-gpu -1` when running in CPU-only mode\n\n**Problem:** The program runs out of memory and dies\n\n**Solution:** Try reducing the image size: `-image_size 256` (or lower). Note that different image sizes will likely\nrequire non-default values for `-style_weight` and `-content_weight` for optimal results.\nIf you are running on a GPU, you can also try running with `-backend cudnn` to reduce memory usage.\n\n**Problem:** Get the following error message:\n\n`models/VGG_ILSVRC_19_layers_deploy.prototxt.cpu.lua:7: attempt to call method 'ceil' (a nil value)`\n\n**Solution:** Update `nn` package to the latest version: `luarocks install nn`\n\n**Problem:** Get an error message complaining about `paths.extname`\n\n**Solution:** Update `torch.paths` package to the latest version: `luarocks install paths`\n\n**Problem:** NIN Imagenet model is not giving good results. \n\n**Solution:** Make sure the correct `-proto_file` is selected. Also make sure the correct parameters for `-content_layers` and `-style_layers` are set. (See OpenCL usage example above.)\n\n**Problem:** `-backend cudnn` is slower than default NN backend\n\n**Solution:** Add the flag `-cudnn_autotune`; this will use the built-in cuDNN autotuner to select the best convolution algorithms.\n\n## Memory Usage\nBy default, `neural-style` uses the `nn` backend for convolutions and L-BFGS for optimization.\nThese give good results, but can both use a lot of memory. You can reduce memory usage with the following:\n\n* **Use cuDNN**: Add the flag `-backend cudnn` to use the cuDNN backend. This will only work in GPU mode.\n* **Use ADAM**: Add the flag `-optimizer adam` to use ADAM instead of L-BFGS. This should significantly\n  reduce memory usage, but may require tuning of other parameters for good results; in particular you should\n  play with the learning rate, content weight, style weight, and also consider using gradient normalization.\n  This should work in both CPU and GPU modes.\n* **Reduce image size**: If the above tricks are not enough, you can reduce the size of the generated image;\n  pass the flag `-image_size 256` to generate an image at half the default size.\n  \nWith the default settings, `neural-style` uses about 3.5GB of GPU memory on my system;\nswitching to ADAM and cuDNN reduces the GPU memory footprint to about 1GB.\n\n## Speed\nSpeed can vary a lot depending on the backend and the optimizer.\nHere are some times for running 500 iterations with `-image_size=512` on a Maxwell Titan X with different settings:\n* `-backend nn -optimizer lbfgs`: 62 seconds\n* `-backend nn -optimizer adam`: 49 seconds\n* `-backend cudnn -optimizer lbfgs`: 79 seconds\n* `-backend cudnn -cudnn_autotune -optimizer lbfgs`: 58 seconds\n* `-backend cudnn -cudnn_autotune -optimizer adam`: 44 seconds\n* `-backend clnn -optimizer lbfgs`: 169 seconds\n* `-backend clnn -optimizer adam`: 106 seconds \n\nHere are the same benchmarks on a Pascal Titan X with cuDNN 5.0 on CUDA 8.0 RC:\n* `-backend nn -optimizer lbfgs`: 43 seconds\n* `-backend nn -optimizer adam`: 36 seconds\n* `-backend cudnn -optimizer lbfgs`: 45 seconds\n* `-backend cudnn -cudnn_autotune -optimizer lbfgs`: 30 seconds\n* `-backend cudnn -cudnn_autotune -optimizer adam`: 22 seconds\n\n## Multi-GPU scaling\nYou can use multiple GPUs to process images at higher resolutions; different layers of the network will be\ncomputed on different GPUs. You can control which GPUs are used with the `-gpu` flag, and you can control\nhow to split layers across GPUs using the `-multigpu_strategy` flag.\n\nFor example in a server with four GPUs, you can give the flag `-gpu 0,1,2,3` to process on GPUs 0, 1, 2, and\n3 in that order; by also giving the flag `-multigpu_strategy 3,6,12` you indicate that the first two layers\nshould be computed on GPU 0, layers 3 to 5 should be computed on GPU 1, layers 6 to 11 should be computed on\nGPU 2, and the remaining layers should be computed on GPU 3. You will need to tune the `-multigpu_strategy`\nfor your setup in order to achieve maximal resolution.\n\nWe can achieve very high quality results at high resolution by combining multi-GPU processing with multiscale\ngeneration as described in the paper\n\u003ca href=\"https://arxiv.org/abs/1611.07865\"\u003e**Controlling Perceptual Factors in Neural Style Transfer**\u003c/a\u003e by Leon A. Gatys, \nAlexander S. Ecker, Matthias Bethge, Aaron Hertzmann and Eli Shechtman.\n\nHere is a 3620 x 1905 image generated on a server with four Pascal Titan X GPUs:\n\n\u003cimg src=\"https://raw.githubusercontent.com/jcjohnson/neural-style/master/examples/outputs/starry_stanford_bigger.png\" height=\"400px\"\u003e\n\nThe script used to generate this image \u003ca href='examples/multigpu_scripts/starry_stanford.sh'\u003ecan be found here\u003c/a\u003e.\n\n## Implementation details\nImages are initialized with white noise and optimized using L-BFGS.\n\nWe perform style reconstructions using the `conv1_1`, `conv2_1`, `conv3_1`, `conv4_1`, and `conv5_1` layers\nand content reconstructions using the `conv4_2` layer. As in the paper, the five style reconstruction losses have\nequal weights.\n\n## Citation\n\nIf you find this code useful for your research, please cite:\n\n```\n@misc{Johnson2015,\n  author = {Johnson, Justin},\n  title = {neural-style},\n  year = {2015},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://github.com/jcjohnson/neural-style}},\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcjohnson%2Fneural-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcjohnson%2Fneural-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcjohnson%2Fneural-style/lists"}