Papers › Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation

Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation

3 Aug 2020CVPR 2021 1arXiv:2008.00951archive 2025-07-28

Elad Richardson, Yuval Alaluf, Or Patashnik, Yotam Nitzan, Yaniv Azar, Stav Shapiro, Daniel Cohen-Or

We present a generic image-to-image translation framework, pixel2style2pixel (pSp). Our pSp framework is based on a novel encoder network that directly generates a series of style vectors which are fed into a pretrained StyleGAN generator, forming the extended W+ latent space. We first show that our encoder can directly embed real images into W+, with no additional optimization. Next, we propose utilizing our encoder to directly solve image-to-image translation tasks, defining them as encoding problems from some input domain into the latent domain. By deviating from the standard invert first, edit later methodology used with previous StyleGAN encoders, our approach can handle a variety of tasks even when the input image is not represented in the StyleGAN domain. We show that solving translation tasks through StyleGAN significantly simplifies the training process, as no adversary is required, has better support for solving tasks without pixel-to-pixel correspondence, and inherently supports multi-modal synthesis via the resampling of styles. Finally, we demonstrate the potential of our framework on a variety of facial image-to-image translation tasks, even when compared to state-of-the-art solutions designed specifically for a single task, and further show that it can be extended beyond the human facial domain.

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

No sample from the archive's official repository (eladrich/pixel2style2pixel) is linked to this paper; the 15 samples below come from 2 community repositories, and 1 more is identical to code Syntology harvested from another paper's repository. Syntology harvested code from eladrich/pixel2style2pixel for another paper.

eladrich/pixel2style2pixel: Syntology's graph links these samples to Diffusion Models for Adversarial Purification (arXiv:2205.07460; that paper's own run record: 16 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 4 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 7 unverified); nothing checks that they implement this paper's method.

Syntology 16 code samples: 15 from 2 repositories linked to this paper, 1 identical to code harvested from another paper's repository. Across all 16: 16 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 2 honoured, 0 violated, 10 with no contract checked; 4 where Syntology's instrument failed) · 0 unverified. Where Syntology's instrument failed: 3 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): 15 samples from 2 repositories, 15 ran (12 with no instrument failure; 3 where Syntology's instrument failed); 1 identical to code first harvested elsewhere. 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:

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

eladrich/pixel2style2pixel officialmentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Diffusion Models for Adversarial Purification (arXiv:2205.07460; that paper's own run record: 16 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 4 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 7 unverified); nothing checks that they implement this paper's method. report
InterDigitalInc/Latent-Transformer mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to A Latent Transformer for Disentangled Face Editing in Images and Videos (arXiv:2106.11895; that paper's own run record: 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); nothing checks that they implement this paper's method. report
adldotori/pSp mentioned on GitHubpytorchSyntology: not harvested report
hcholab/k-salsa mentioned on GitHubpytorchSyntology: not harvested report
interdigitalinc/featurestyleencoder mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
liuliuliu11/pixel2style2pixel-liu mentioned on GitHubpytorchSyntology: not harvested report
mikelasz/fair-psp mentioned on GitHubpytorchSyntology: not harvested report
rahuls02/Image-Noise-Reduction mentioned on GitHubpytorchMITSyntology: 5 samples, 5 ran (2 instrument-failed) · 0 unverified report
yuval-alaluf/restyle-encoder mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement (arXiv:2104.02699; that paper's own run record: 2 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; 0 where Syntology's instrument failed) · 2 unverified); nothing checks that they implement this paper's method. report
771979972/Paddle_pSp paddleApache-2.0Syntology: 10 samples, 10 ran (1 instrument-failed) · 0 unverified 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

16 samples harvested: 16 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 2 honoured, 0 violated, 10 with no contract checked; 4 where Syntology's instrument failed) · 0 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.

2ran · honoured contract
3ran · our draft was wrong
1ran; the contract check could not run
10ran

Licence: 1 of the 16 samples is 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 2 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. 1 sample is listed last, in a group without a repository. “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.

rahuls02/Image-Noise-Reduction community (archive-listed) 5 samples, 5 ran (2 instrument-failed) · 0 unverified
get_block in 40 papers models/encoders/helpers.py ran · honoured contract fingerprinted MIT (permissive) · ad5dbf57f3ea2633 · report fixture: signature in_channel:int/0/int, depth:int/0/int, num_units:int/0/int, stride:int/0/int · returned list · level recorded 2026-09-22
get_blocks in 39 papers models/encoders/helpers.py ran MIT (permissive) · 1a9c4f8ff0843e6a · report fixture: signature num_layers:int/0/int · returned list · level recorded 2026-09-24
get_keys in 26 papers models/psp.py ran · our draft was wrong MIT (permissive) · 29b9a890f149a3a6 · report fixture: signature d:dict/0/?, name:str/0/str · returned dict · level recorded 2026-09-22
get_white_noise_image datasets/images_dataset.py ran MIT (permissive) · 166f27e7c172ead7 · report fixture: signature w:int/0/int, h:int/0/int · returned Image · level recorded 2026-09-24
l2_norm in 71 papers
census: 17 implementations from 25 papers, 8 distinct outputs across 3 buckets, one shared input per bucket this sample: bucket 1 of 3, arg 1: rank 2, kind float, dtype float32
models/encoders/helpers.py ran · our draft was wrong fingerprinted MIT (permissive) · c54fea429589425d · report fixture: signature input:Tensor/2/float, axis:int/0/int · returned Tensor · level recorded 2026-09-22
771979972/Paddle_pSp community (archive-listed) 10 samples, 10 ran (1 instrument-failed) · 0 unverified
calibrate_box models/mtcnn/mtcnn_paddle/src/box_utils.py ran fingerprinted Apache-2.0 (permissive) · 6b0e6100d2ca104e · report fixture: signature bboxes:ndarray/2/float, offsets:ndarray/2/float · returned ndarray · level recorded 2026-09-24
convert_to_square models/mtcnn/mtcnn_paddle/src/box_utils.py ran fingerprinted Apache-2.0 (permissive) · c4e1ca09fcca76fc · report fixture: signature bboxes:ndarray/2/float · returned ndarray · level recorded 2026-09-24
findNonreflectiveSimilarity in 5 papers models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py ran Apache-2.0 (permissive) · 994b933b974c2110 · report fixture: signature uv:ndarray/2/float, xy:ndarray/2/float, options:dict/0/? · returned tuple · level recorded 2026-09-24
get_affine_transform_matrix in 5 papers models/mtcnn/mtcnn_paddle/src/align_trans.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · b7f364dbce963974 · report fixture: signature src_pts:ndarray/2/float, dst_pts:ndarray/2/float · returned ndarray · level recorded 2026-09-24
get_keys in 26 papers models/psp.py ran Apache-2.0 (permissive) · dcaaadc325192fde · report fixture: signature d:dict/0/?, name:str/0/str · returned Tensor · level recorded 2026-09-24
get_reference_facial_points in 5 papers models/mtcnn/mtcnn_paddle/src/align_trans.py ran Apache-2.0 (permissive) · a88ec2b4b2ac122c · report fixture: signature output_size:tuple/1/int, inner_padding_factor:float/0/float, outer_padding:tuple/1/int, default_square:bool/0/bool · returned ndarray · level recorded 2026-09-24
nms in 65 papers models/mtcnn/mtcnn_paddle/src/box_utils.py ran Apache-2.0 (permissive) · 522ee6c31c17d845 · report fixture: signature boxes:ndarray/2/float, overlap_threshold:float/0/float, mode:str/0/str · returned list · level recorded 2026-09-24
show_bboxes models/mtcnn/mtcnn_paddle/src/visualization_utils.py ran Apache-2.0 (permissive) · 1a075d92bb280328 · report fixture: signature img:Image/0/?, bounding_boxes:ndarray/2/float, facial_landmarks:ndarray/2/float · returned Image · level recorded 2026-09-24
tformfwd in 5 papers models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py ran; the contract check could not run (RAISES) fingerprinted Apache-2.0 (permissive) · b4e2f92e3ce5abc6 · report fixture: signature trans:ndarray/2/float, uv:ndarray/2/float · returned ndarray · level recorded 2026-09-24
tforminv in 5 papers models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py ran Apache-2.0 (permissive) · 6661cdf22fccc11e · report fixture: signature trans:ndarray/2/float, uv:ndarray/2/float · returned ndarray · level recorded 2026-09-24
Repository not located 1 sample, 1 ran (1 instrument-failed) · 0 unverified
1 sample is identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
data_sampler in 17 papers repository not located ran · our draft was wrong licence of this copy not recorded · dbb756dcd778f52f · report fixture: signature dataset:SimpleDataset/0/?, shuffle:bool/0/bool, distributed:bool/0/bool · returned RandomSampler · level recorded 2026-09-22

Tasks

Conditional Image GenerationFace GenerationImage-to-Image TranslationTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: pixel2style2pixel

1x1 ConvolutionAdaptive Instance NormalizationAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionDense ConnectionsFeedforward NetworkGlobal Average PoolingKaiming InitializationMax PoolingR1 RegularizationReLUResidual BlockResidual ConnectionStyleGANpixel2style2pixel

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