Papers › Deep Photo Style Transfer

Deep Photo Style Transfer

22 Mar 2017CVPR 2017 7arXiv:1703.07511archive 2025-07-28

Fujun Luan, Sylvain Paris, Eli Shechtman, Kavita Bala

This paper introduces a deep-learning approach to photographic style transfer that handles a large variety of image content while faithfully transferring the reference style. Our approach builds upon the recent work on painterly transfer that separates style from the content of an image by considering different layers of a neural network. However, as is, this approach is not suitable for photorealistic style transfer. Even when both the input and reference images are photographs, the output still exhibits distortions reminiscent of a painting. Our contribution is to constrain the transformation from the input to the output to be locally affine in colorspace, and to express this constraint as a custom fully differentiable energy term. We show that this approach successfully suppresses distortion and yields satisfying photorealistic style transfers in a broad variety of scenarios, including transfer of the time of day, weather, season, and artistic edits.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

The archive's official repository (luanfujun/deep-photo-styletransfer) was not harvested; the 24 samples below come from 7 community repositories.

Syntology 24 code samples harvested from 7 repositories linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 1 honoured, 1 violated, 8 with no contract checked; 7 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 7 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 24 samples from 7 repositories, 17 ran (10 with no instrument failure; 7 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 2 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

21 repositories listed; official and paper-mentioned ones first.

luanfujun/deep-photo-styletransfer officialmentioned in papermentioned on GitHubtorchSyntology: not harvested report
7-B/yoco mentioned on GitHubpytorchMITSyntology: 8 samples, 7 ran (1 instrument-failed) · 1 unverified report
IdanAzuri/pytorch_fewshot_with_deep_photo mentioned on GitHubpytorchSyntology: 2 samples, 2 ran (2 instrument-failed) · 0 unverified report
KangDo96/Github-Ranking mentioned on GitHubtfMITSyntology: 3 samples, 1 ran (0 instrument-failed) · 2 unverified report
LouieYang/deep-photo-styletransfer-tf mentioned on GitHubtfSyntology: not harvested report
YooJiHyeong/SinIR mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to SinIR: Efficient General Image Manipulation with Single Image Reconstruction (arXiv:2106.07140; that paper's own run record: 3 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
alexanderivanov2424/CSCI-1430-Final-Project mentioned on GitHubtfSyntology: not harvested report
clovaai/WCT2 mentioned on GitHubpytorchSyntology: 2 samples, 2 ran (1 instrument-failed) · 0 unverified report
dedekinds/The-Color-Transfer-of-Animes-Characters-Images mentioned on GitHubtfMITSyntology: 5 samples, 2 ran (0 instrument-failed) · 3 unverified report
divisionai/deep-photo-styletransfer mentioned on GitHubtorchSyntology: not harvested report
fatihky/starred mentioned on GitHubtfSyntology: not harvested report
johnsun03/myTest mentioned on GitHubtorchSyntology: not harvested report
leolle/StyleTransfer mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Photorealistic Style Transfer via Wavelet Transforms (arXiv:1903.09760; that paper's own run record: 10 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 3 honoured, 1 violated, 3 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
mandarin4452/StyleTune mentioned on GitHubpytorchSyntology: not harvested report
muriloime/awesome-stars mentioned on GitHubtfSyntology: not harvested report
purushothamgowthu/deep-photo-styletransfer mentioned on GitHubtorchSyntology: not harvested report
ritesh2212/DeepPhotoStyle_pytorch-master mentioned on GitHubpytorchSyntology: 3 samples, 3 ran (3 instrument-failed) · 0 unverified report
ucsd-dsc-arts/dsc160-final-dsc160_final_group4 mentioned on GitHubtfSyntology: not harvested report
xuberance137/styleflow mentioned on GitHubtfSyntology: 1 sample, 0 ran · 1 unverified report
yky138495/awesome-matlab-rank-1000 mentioned on GitHubSyntology: not harvested report
2023-MindSpore-1/ms-code-16 mindsporeSyntology: not harvested report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

24 samples harvested: 17 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 1 honoured, 1 violated, 8 with no contract checked; 7 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
7ran · our draft was wrong
8ran
7unverified

Licence: 7 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. For 1 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

7-B/yoco community (archive-listed) 8 samples, 7 ran (1 instrument-failed) · 1 unverified
get_palette in 14 papers segmentation/evaluate.py ran · honoured contract fingerprinted MIT (permissive) · 26664d79586aad5a · report fixture: signature num_cls:int/0/int · returned list · level recorded 2026-09-22
get_style_model_and_losses segmentation/torch_neural_style_transfer.py ran MIT (permissive) · a675446ddbbfbcc1 · report fixture: signature cnn:callable/0/?, normalization_mean:list/1/float, normalization_std:list/1/float, style_img:Tensor/4/float, content_img:Tensor/4/float, content_layers:list/1/str, style_layers:list/1/str · returned tuple · level recorded 2026-09-26
gram_matrix in 45 papers
census: 7 implementations from 9 papers, 4 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32
segmentation/torch_neural_style_transfer.py ran · our draft was wrong fingerprinted MIT (permissive) here; the stored copy is pointer only · 1090950b58e9358b · report fixture: signature input:Tensor/4/float · returned Tensor · level recorded 2026-09-22
image_resize in 11 papers convert.py ran MIT (permissive) · 81841f6d779c16fc · report fixture: signature image:ndarray/3/int, width:int/0/int, height:NoneType/0/?, inter:int/0/int · returned ndarray · level recorded 2026-09-26
image_resize in 11 papers segmentation/merge_image.py ran MIT (permissive) · 146ad565b06fda04 · report fixture: signature image:ndarray/3/int, width:int/0/int, height:NoneType/0/?, inter:int/0/int · returned ndarray · level recorded 2026-09-26
sketch convert.py ran MIT (permissive) · 8a715fc3d20336d9 · report fixture: signature path:str/0/str, imgname:str/0/str · returned tuple · level recorded 2026-09-26
sobel convert.py ran fingerprinted MIT (permissive) · ffb0ca0a0f71ef50 · report fixture: signature img:ndarray/2/int · returned ndarray · level recorded 2026-09-26
image_loader in 17 papers segmentation/torch_neural_style_transfer.py unverified MIT (permissive) · 2d24aafc6d216a66 · report
IdanAzuri/pytorch_fewshot_with_deep_photo community (archive-listed) 2 samples, 2 ran (2 instrument-failed) · 0 unverified
get_input_optimizer neural_style.py ran · our draft was wrong no licence file found · pointer only · 9269e2b72f0e2876 · report fixture: signature input_img:Tensor/4/float · returned Adam · level recorded 2026-09-22
get_style_model_and_losses neural_style.py ran · our draft was wrong no licence file found · pointer only · 067c53092682afb5 · report fixture: signature cnn:callable/0/?, normalization_mean:list/1/float, normalization_std:list/1/float, style_layers:list/1/str, content_layers:list/1/str, style_img:Tensor/4/float, content_img:Tensor/4/float, style_masks:list/1/Tensor, content_masks:list/1/Tensor, device:device/0/? · returned tuple · level recorded 2026-09-22
KangDo96/Github-Ranking community (archive-listed) 3 samples, 1 ran (0 instrument-failed) · 2 unverified
repo_to_df save_most_stars_forks.py ran MIT (permissive) · 25b81f14a52435da · report fixture: signature repos:list/1/dict, item:str/0/str, col:list/1/str · returned DataFrame · level recorded 2026-09-26
get_all_repos save_most_stars_forks.py unverified MIT (permissive) · 2ae68c5edc37dccd · report
get_api_repos save_most_stars_forks.py unverified MIT (permissive) · 9ecb8eaa36f40e46 · report
clovaai/WCT2 community (archive-listed) 2 samples, 2 ran (1 instrument-failed) · 0 unverified
get_wav in 5 papers model.py ran · our draft was wrong MIT (permissive) · 289a3baab5b57fbb · report fixture: signature in_channels:int/0/int, pool:bool/0/bool · returned tuple · level recorded 2026-09-22
is_image_file in 157 papers transfer.py ran · violated contract MIT (permissive) · 59848503040bbdac · report fixture: signature filename:str/0/str · returned bool · level recorded 2026-09-22
dedekinds/The-Color-Transfer-of-Animes-Characters-Images community (archive-listed) 5 samples, 2 ran (0 instrument-failed) · 3 unverified
bgr2rgb photo_style.py ran MIT (permissive) · 25645bb38ddc950c · report fixture: signature bgr:ndarray/3/float, vgg_mean:bool/0/bool · returned ndarray · level recorded 2026-09-26
rgb2bgr photo_style.py ran MIT (permissive) · 887c76559ae8b99a · report fixture: signature rgb:ndarray/3/float, vgg_mean:bool/0/bool · returned ndarray · level recorded 2026-09-26
getLaplacian closed_form_matting.py unverified MIT (permissive) · db1f82381fe3492d · report
getlaplacian1 closed_form_matting.py unverified MIT (permissive) · 9ec5126d68c7d179 · report
load_seg photo_style.py unverified MIT (permissive) · 18c2e14d332c9062 · report
ritesh2212/DeepPhotoStyle_pytorch-master community (archive-listed) 3 samples, 3 ran (3 instrument-failed) · 0 unverified
get_input_optimizer neural_style.py ran · our draft was wrong no licence file found · pointer only · 8f043783be05520d · report fixture: signature input_img:Tensor/4/float · returned LBFGS · level recorded 2026-09-22
get_style_model_and_losses neural_style.py ran · our draft was wrong no licence file found · pointer only · 81173dfd88ec4a96 · report fixture: signature cnn:callable/0/?, normalization_mean:list/1/float, normalization_std:list/1/float, style_layers:list/1/str, content_layers:list/1/str, style_img:Tensor/4/float, content_img:Tensor/4/float, style_masks:list/1/Tensor, content_masks:list/1/Tensor, device:device/0/? · returned tuple · level recorded 2026-09-22
gram_matrix in 45 papers
census: 7 implementations from 9 papers, 4 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32
neural_style.py ran · our draft was wrong fingerprinted no licence file found · pointer only · cda180904c38bf82 · report fixture: signature input:Tensor/4/float · returned Tensor · level recorded 2026-09-22
xuberance137/styleflow community (archive-listed) 1 sample, 0 ran · 1 unverified
imread in 54 papers neural_style.py unverified no licence file found · pointer only · e9d9cfa5605ea1a3 · report

Tasks

Style Transfer

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections