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 Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2008.00951")

Code

Syntology Ran 6 of 16 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 2 ran with no contract checked.

By repository: community (archive-listed): 15 samples from 2 repositories, 5 ran; 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.

eladrich/pixel2style2pixel officialmentioned on GitHubpytorchMIT report
InterDigitalInc/Latent-Transformer mentioned on GitHubpytorch report
adldotori/pSp mentioned on GitHubpytorch report
hcholab/k-salsa mentioned on GitHubpytorch report
interdigitalinc/featurestyleencoder mentioned on GitHubpytorchNOASSERTION report
liuliuliu11/pixel2style2pixel-liu mentioned on GitHubpytorch report
mikelasz/fair-psp mentioned on GitHubpytorch report
rahuls02/Image-Noise-Reduction mentioned on GitHubpytorchMIT report
yuval-alaluf/restyle-encoder mentioned on GitHubpytorch report
771979972/Paddle_pSp paddleApache-2.0 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; 6 ran; 1 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
2ran
10unverified

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; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

get_affine_transform_matrix 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/align_trans.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · b7f364dbce963974 · report
get_block rahuls02/Image-Noise-Reduction/models/encoders/helpers.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · ad5dbf57f3ea2633 · report
get_keys rahuls02/Image-Noise-Reduction/models/psp.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 29b9a890f149a3a6 · report
l2_norm rahuls02/Image-Noise-Reduction/models/encoders/helpers.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · c54fea429589425d · report
tformfwd 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · b4e2f92e3ce5abc6 · report
calibrate_box 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/box_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 6b0e6100d2ca104e · report
convert_to_square 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/box_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · c4e1ca09fcca76fc · report
findNonreflectiveSimilarity 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py community (archive-listed) unverified Apache-2.0 (permissive) · 994b933b974c2110 · report
get_blocks rahuls02/Image-Noise-Reduction/models/encoders/helpers.py community (archive-listed) unverified MIT (permissive) · 1a9c4f8ff0843e6a · report
get_keys 771979972/Paddle_pSp/models/psp.py community (archive-listed) unverified Apache-2.0 (permissive) · dcaaadc325192fde · report
get_reference_facial_points 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/align_trans.py community (archive-listed) unverified Apache-2.0 (permissive) · a88ec2b4b2ac122c · report
get_white_noise_image rahuls02/Image-Noise-Reduction/datasets/images_dataset.py community (archive-listed) unverified MIT (permissive) · 166f27e7c172ead7 · report
nms 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/box_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 522ee6c31c17d845 · report
show_bboxes 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/visualization_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 1a075d92bb280328 · report
tforminv 771979972/Paddle_pSp/models/mtcnn/mtcnn_paddle/src/matlab_cp2tform.py community (archive-listed) unverified Apache-2.0 (permissive) · 6661cdf22fccc11e · report
data_sampler identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · dbb756dcd778f52f · report

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