Papers › A Closed-form Solution to Photorealistic Image Stylization

A Closed-form Solution to Photorealistic Image Stylization

19 Feb 2018ECCV 2018 9arXiv:1802.06474archive 2025-07-28

Yijun Li, Ming-Yu Liu, Xueting Li, Ming-Hsuan Yang, Jan Kautz

Photorealistic image stylization concerns transferring style of a reference photo to a content photo with the constraint that the stylized photo should remain photorealistic. While several photorealistic image stylization methods exist, they tend to generate spatially inconsistent stylizations with noticeable artifacts. In this paper, we propose a method to address these issues. The proposed method consists of a stylization step and a smoothing step. While the stylization step transfers the style of the reference photo to the content photo, the smoothing step ensures spatially consistent stylizations. Each of the steps has a closed-form solution and can be computed efficiently. We conduct extensive experimental validations. The results show that the proposed method generates photorealistic stylization outputs that are more preferred by human subjects as compared to those by the competing methods while running much faster. Source code and additional results are available at https://github.com/NVIDIA/FastPhotoStyle .

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 (NVIDIA/FastPhotoStyle) was not harvested; the 16 samples below come from 3 community repositories.

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

By repository: community (archive-listed): 16 samples from 3 repositories, 13 ran (4 with no instrument failure; 9 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.

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

NVIDIA/FastPhotoStyle officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
Lees001/FastPhotoStyle mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
MohdDanish/FastPhotoStyle1 mentioned on GitHubpytorchSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
clovaai/WCT2 mentioned on GitHubpytorchSyntology: 5 samples, 5 ran (3 instrument-failed) · 0 unverified report
deepdeepdot/FastPhotoStyle mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
freedombenLiu/FastPhotoStyle mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
guizilaile23/ZSL-SSS mentioned on GitHubpytorchSyntology: not harvested report
midm/FastPhotoStyle mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
sleebapaul/AuriaKathi mentioned on GitHubpytorchMITSyntology: 10 samples, 7 ran (5 instrument-failed) · 3 unverified report
svjack/PhotoWCT mentioned on GitHubtfSyntology: not harvested report
smaranjitghose/DeepHoli CC0-1.0Syntology: not harvested report
sukkritsharmaofficial/NEURALFUSE CC0-1.0Syntology: 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.

Code Syntology ran Syntology

16 samples harvested: 13 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 1 violated, 2 with no contract checked; 9 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; 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
8ran · our draft was wrong
1ran; the contract check could not run
2ran
3unverified

Licence: 3 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 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. 2 samples whose link to this paper records no repository are listed under one of this paper's own repositories, because identical code was harvested from it for another 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.

MohdDanish/FastPhotoStyle1 community (archive-listed) 1 sample, 1 ran (1 instrument-failed) · 0 unverified
memory_limit_image_resize process_stylization.py ran · our draft was wrong licence not identified · pointer only · 115cdf07bf34f7ed · report fixture: signature cont_img:Image/0/? · returned tuple · level recorded 2026-09-22
clovaai/WCT2 community (archive-listed) 5 samples, 5 ran (3 instrument-failed) · 0 unverified
get_rank in 42 papers utils/core.py ran · our draft was wrong fingerprinted MIT (permissive) · 3f416806a9d75fdf · report fixture: signature singular_values:Tensor/1/float, dim:int/0/int, eps:float/0/float · returned int · level recorded 2026-09-22
get_squeeze_feat utils/core.py ran · honoured contract fingerprinted MIT (permissive) · ca190ac7aa0a7723 · report fixture: signature feat:Tensor/3/float · returned Tensor · level recorded 2026-09-22
get_wav in 5 papers model.py identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · our draft was wrong licence of this copy not recorded · 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 identical code Syntology harvested from this repository for another paper; this paper's link records no repository, path or licence of its own ran · violated contract licence of this copy not recorded · 59848503040bbdac · report fixture: signature filename:str/0/str · returned bool · level recorded 2026-09-22
svd in 12 papers utils/core.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic fingerprinted MIT (permissive) · de40dd53e9e39e11 · report fixture: signature feat:Tensor/2/float, iden:bool/0/bool, device:str/0/str · returned tuple · level recorded 2026-09-22
sleebapaul/AuriaKathi community (archive-listed) 10 samples, 7 ran (5 instrument-failed) · 3 unverified
conv1x1 in 691 papers AttnGAN/model.py ran · our draft was wrong MIT (permissive) · 19379807ba70daaa · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, bias:bool/0/bool · returned Conv2d · level recorded 2026-09-22
conv1x1 in 691 papers AttnGAN/GlobalAttention.py ran MIT (permissive) · 1e9b9a9b96ddfe5f · report fixture: returned Conv2d · level recorded 2026-09-27
conv3x3 in 1,376 papers AttnGAN/model.py ran · our draft was wrong MIT (permissive) · ea864de5c552bc4a · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Conv2d · level recorded 2026-09-22
cosine_similarity in 120 papers
census: 26 implementations from 30 papers, 11 distinct outputs across 5 buckets, one shared input per bucket this sample: bucket 1 of 5, arg 1: rank 2, kind float, dtype float32 · arg 2: rank 2, kind float, dtype float32
AttnGAN/miscc/losses.py ran · our draft was wrong fingerprinted MIT (permissive) · e0c14774d8283a63 · report fixture: signature x1:Tensor/2/float, x2:Tensor/2/float, dim:int/0/int, eps:float/0/float · returned Tensor · level recorded 2026-09-22
get_encoder in 45 papers GPT_2_Finetuning/gpt_2_simple/encoder.py ran MIT (permissive) · f07cfbd0acf91fbe · report fixture: returned Encoder · level recorded 2026-09-26
get_pairs in 260 papers GPT_2_Finetuning/gpt_2_simple/encoder.py ran · our draft was wrong MIT (permissive) · 4f76173dfe4b0c11 · report fixture: signature word:tuple/1/str · returned set · level recorded 2026-09-26
upBlock in 12 papers AttnGAN/model.py ran · our draft was wrong MIT (permissive) · c96308e17ab1e7ae · report fixture: signature in_planes:int/0/int, out_planes:int/0/int · returned Sequential · level recorded 2026-09-22
func_attention in 7 papers AttnGAN/GlobalAttention.py unverified MIT (permissive) · 4dcdc9386ef6f6f5 · report
gen_example_from_text AttnGAN/gen_art.py unverified MIT (permissive) · 56624aa2366aca04 · report
start_tf_sess GPT_2_Finetuning/gpt_2.py unverified MIT (permissive) · dd07c72f922bc1e8 · report

Tasks

FormImage Stylization

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