Papers › Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Xun Huang, Serge Belongie
Gatys et al. recently introduced a neural algorithm that renders a content image in the style of another image, achieving so-called style transfer. However, their framework requires a slow iterative optimization process, which limits its practical application. Fast approximations with feed-forward neural networks have been proposed to speed up neural style transfer. Unfortunately, the speed improvement comes at a cost: the network is usually tied to a fixed set of styles and cannot adapt to arbitrary new styles. In this paper, we present a simple yet effective approach that for the first time enables arbitrary style transfer in real-time. At the heart of our method is a novel adaptive instance normalization (AdaIN) layer that aligns the mean and variance of the content features with those of the style features. Our method achieves speed comparable to the fastest existing approach, without the restriction to a pre-defined set of styles. In addition, our approach allows flexible user controls such as content-style trade-off, style interpolation, color & spatial controls, all using a single feed-forward neural network.
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):
get_harvested_code_for_paper(arxiv_id="1703.06868")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="1703.06868", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="1703.06868")
Code
The archive's official repository (xunhuang1995/AdaIN-style) was not harvested; the 41 samples below come from 18 community repositories.
Syntology 41 code samples harvested from 18 repositories linked to this paper: 32 ran (of which 4 constructed an object rather than computing a result; 16 with no instrument failure: 3 honoured, 0 violated, 13 with no contract checked; 16 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 6 where our contract draft was wrong; 10 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: community (archive-listed): 41 samples from 18 repositories, 32 ran (16 with no instrument failure; 16 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 3 of its repositories that Syntology harvested for other papers:
- KaiyangZhou/ssdg-benchmark, community (archive-listed): harvested for another paper, listed under the repository
- PacktPublishing/Hands-On-Image-Generation-with-TensorFlow-2.0, community (archive-listed): harvested for another paper, listed under the repository
- naoto0804/pytorch-AdaIN, community (archive-listed): harvested for another paper, listed under the repository
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.
29 repositories listed; official and paper-mentioned ones first.
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
41 samples harvested: 32 ran (of which 4 constructed an object rather than computing a result; 16 with no instrument failure: 3 honoured, 0 violated, 13 with no contract checked; 16 where Syntology's instrument failed) · 9 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.
Licence: 29 of the 41 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 18 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”. For 2 samples that ran, the graph records a signature this page does not show, each row saying why in its tooltip: for 1, an argument's recorded type or element kind is a printout of an object in Syntology's harness (such as a mock object, a class or a pandas printout), not the type of an input, so it does not describe the call's shape; for 1, for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “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.
1b5a7b593632abec · report
fixture: signature x:Tensor/4/float, y:Tensor/4/float · returned Tensor · level recorded 2026-09-24 4ef3b0e9747d6981 · report
fixture: signature img:EagerTensor/3/float · returned EagerTensor · level recorded 2026-09-22 994ad288a2dff0d9 · report
fixture: signature img:EagerTensor/3/float · returned EagerTensor · level recorded 2026-09-22 246cb3106fe953a1 · report
8c0e5a509dab7362 · report
8091756b8c40713c · report
feb8354419bc47a3 · report
fixture: returned Net · level recorded 2026-09-22 a44a1f4fc02b2471 · report
fixture: signature x:Tensor/4/float, y:Tensor/4/float · returned Tensor · level recorded 2026-09-22 2bb3accb9ec4b9df · report
fixture: signature features:Tensor/4/float, eps:float/0/float · returned tuple · level recorded 2026-09-22 7b69aa89b55f1907 · report
fixture: returned MixStyle · level recorded 2026-09-22 5eec2a5c6c95f4ab · report
fixture: signature feature:Tensor/4/float, mean_style:Tensor/3/float, std_style:Tensor/3/float, eps:float/0/float · returned Tensor · level recorded 2026-09-22 b6bda511442174ee · report
fixture: signature content_feats:Tensor/4/float, style_feats:Tensor/4/float, infer:bool/0/bool · returned Tensor · level recorded 2026-09-22 5c064a93e7042c2c · report
fixture: signature feats:Tensor/4/float, eps:float/0/float, infer:bool/0/bool · returned tuple · level recorded 2026-09-22 f47797a80e241835 · report
fixture: signature style:EagerTensor/4/float, content:EagerTensor/4/float · returned EagerTensor · level recorded 2026-09-22 fc194f2d050dbd6d · report
fixture: signature x:EagerTensor/4/float, epsilon:float/0/float · returned tuple · level recorded 2026-09-22 dff326cf89112719 · report
b9af50ae977def20 · report
fixture: signature optimizer:Adam/0/?, lr_policy:str/0/str, lr_step_size:int/0/int, lr_iter_const:int/0/int, start_epoch:int/0/int, num_epochs:int/0/int · returned StepLR · level recorded 2026-09-26 c868992c0f0ff321 · report
fixture: signature img_files:list/1/str, root:str/0/str · returned list · level recorded 2026-09-26 eafb5322ecc71e47 · report
fixture: signature filename:str/0/str · returned bool · level recorded 2026-09-26 f3c73b49545c08c8 · report
fixture: returned ndarray · level recorded 2026-09-26 census: 5 implementations from 7 papers, 2 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32 · arg 2: rank 4, kind float, dtype float32 function.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only ·
bd9607443cdfbbe8 · report
fixture: signature content_feat:Tensor/4/float, style_feat:Tensor/4/float · returned Tensor · level recorded 2026-09-22 abe85479c8ccd9a7 · report
fixture: signature feat:Tensor/4/float, eps:float/0/float · returned tuple · level recorded 2026-09-22 70413403e7bd4032 · report
fixture: signature tensor:Tensor/4/float · returned Tensor · level recorded 2026-09-24 20d93f7c8062709d · report
fixture: signature tensor:Tensor/4/float · returned Tensor · level recorded 2026-09-24 census: 5 implementations from 7 papers, 2 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32 · arg 2: rank 4, kind float, dtype float32 trainers/adain/adain.py ran · our draft was wrong fingerprinted MIT (permissive) ·
16679a24b9881031 · report
fixture: signature content_feat:Tensor/4/float, style_feat:Tensor/4/float · returned Tensor · level recorded 2026-09-22 census: 5 implementations from 5 papers, 2 distinct outputs on one shared input ops.py unverified MIT (permissive) ·
6acb2016293c036e · report
e9c0b7f386130131 · report
fixture: returned Net · level recorded 2026-09-22 census: 5 implementations from 5 papers, 2 distinct outputs on one shared input model.py ran · honoured contract no licence file found · pointer only ·
96ad7bbb7f8171f7 · report
fixture: signature content_feature:SymbolicTensor/4/float, style_feature:SymbolicTensor/4/float, eps:float/0/float · returned EagerTensor · level recorded 2026-09-22 457244674e377df9 · report
fixture: signature moment:SymbolicTensor/2/float · returned EagerTensor · level recorded 2026-09-22 80f6c4540623a906 · report
fixture: returned AdaptiveInstanceNorm · level recorded 2026-09-22 6c204664e722b241 · report
1e75525dca622a5b · report
fixture: signature content:Tensor/4/float, style:Tensor/4/float, style_strength:float/0/float, eps:float/0/float · returned Tensor · level recorded 2026-09-22 census: 5 implementations from 5 papers, 2 distinct outputs on one shared input model.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only ·
ced95aa1ec3ddcb2 · report
fixture: signature content:EagerTensor/4/float, style:EagerTensor/4/float · returned EagerTensor · level recorded 2026-09-22 6b522b9ea394b717 · report
fixture: signature source:Tensor/4/float, target:Tensor/4/float · returned tuple · level recorded 2026-09-22 a1f744f78d31de67 · report
fixture: signature normalized:Tensor/2/float, target_stdevs:Tensor/1/float, target_means:Tensor/1/float · returned Tensor · level recorded 2026-09-22 census: 5 implementations from 5 papers, 2 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32 · arg 2: rank 4, kind float, dtype float32 adain.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only ·
336fa3afbebc8219 · report
fixture: signature source:Tensor/4/float, target:Tensor/4/float · returned Tensor · level recorded 2026-09-22 33f304ede0c2b810 · report
fixture: signature target:Tensor/4/float · returned tuple · level recorded 2026-09-22 277eca3b84592e36 · report
fixture: signature content_feature:EagerTensor/4/float, style_feature:EagerTensor/4/float, epsilon:float/0/float · returned EagerTensor · level recorded 2026-09-22 Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
18 assemblies on this paper: 18 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).
18 sibling assemblies for Adaptive Instance Normalization (AdaIN) (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another. Bricks printed for 12 of 18 sibling assemblies; the other 6 are listed with their counts; every brick is in this page's JSON twin.
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 5 bricks; individually on a fixture: 4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adain entry · level 1 · ran; the contract check could not run (RAISES) ·
336fa3afbebc8219 - _check_shapes helper · level 1 · ran; the contract check could not run (RAISES) ·
6b522b9ea394b717 - _match_normalized_to_stats helper · level 1 · ran · honoured contract ·
a1f744f78d31de67 - calc_feature_stats helper · level 1 · ran; the contract check could not run (RAISES) ·
33f304ede0c2b810 - assert_shape helper · level 0 · unverified ·
9debb36434e3f2cf
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 18 siblings
- AdaptiveInstanceNorm entry · level 1 · ran ·
80f6c4540623a906
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adain entry · level 1 · ran; the contract check could not run (RAISES) ·
ced95aa1ec3ddcb2
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adaIN entry · level 1 · ran; the contract check could not run (RAISES) ·
5eec2a5c6c95f4ab
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- AdaIN entry · level 1 · ran ·
1b5a7b593632abec
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 3 bricks; individually on a fixture: 3 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- Net entry · level 1 · ran ·
feb8354419bc47a3 - adaIN helper · level 1 · ran · our draft was wrong ·
a44a1f4fc02b2471 - std_and_mean helper · level 1 · ran · our draft was wrong ·
2bb3accb9ec4b9df
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 3 bricks; individually on a fixture: 3 ran (of which 1 constructed an object rather than computing a result; 3 with no instrument failure: 2 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 2 bricks; individually on a fixture: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adaptive_instance_normalization entry · level 1 · ran; the contract check could not run (RAISES) ·
bd9607443cdfbbe8 - calc_mean_std helper · level 1 · ran · our draft was wrong ·
abe85479c8ccd9a7
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adaptive_instance_norm entry · level 1 · ran; the contract check could not run (RAISES) ·
277eca3b84592e36
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- AdaptiveInstanceNormalization entry · level 0 · unverified ·
6c204664e722b241
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 18 siblings
- MixStyle entry · level 1 · ran ·
7b69aa89b55f1907
harvested Assembly for Adaptive Instance Normalization (AdaIN) (graph method: Adaptive Instance Normalization (AdaIN)). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 18 siblings
- adain entry · level 0 · unverified ·
6acb2016293c036e
- AdaIN · cd204c77e1b34445 · 2 bricks; individually on a fixture: 2 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified · The assembly has not been run end-to-end · assemblies[12] in the JSON twin
- AdaIN · cd7463bd410a54c5 · 5 bricks; individually on a fixture: 4 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified · The assembly has not been run end-to-end · assemblies[13] in the JSON twin
- AdaptiveInstanceNorm · d3d7d8ac209308b6 · 3 bricks; individually on a fixture: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified · The assembly has not been run end-to-end · assemblies[14] in the JSON twin
- styletransfer · eb53e6686a0fb0dd · 5 bricks; individually on a fixture: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified · The assembly has not been run end-to-end · assemblies[15] in the JSON twin
- adaptive_instance_normalization · ee5ffbb21449de18 · 2 bricks; individually on a fixture: 2 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified · The assembly has not been run end-to-end · assemblies[16] in the JSON twin
- AdaIN · fb582fc9cb62201c · 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified · The assembly has not been run end-to-end · assemblies[17] in the JSON twin
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="1703.06868") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
Results from the paper archive 2025-07-28
No leaderboard rows for this paper in the archive.
Methods
Introduced by this paper: Style Transfer Module
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