| CARVIEW |
Select Language
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://www.yanboxu.com/TransEditor
x-github-request-id: 555F:3A7A40:950DF6:A750AA:6952F8E7
accept-ranges: bytes
age: 0
date: Mon, 29 Dec 2025 21:55:53 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210048-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1767045353.911160,VS0,VE212
vary: Accept-Encoding
x-fastly-request-id: 6847d496126097b300e7b4f8db4e2739894f117e
content-length: 162
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://www.yanboxu.com/TransEditor/
x-github-request-id: 9573:318CF6:948D88:A6CCD7:6952F8E8
accept-ranges: bytes
age: 0
date: Mon, 29 Dec 2025 21:55:53 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210090-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1767045353.220112,VS0,VE202
vary: Accept-Encoding
x-fastly-request-id: edbb2ca841e729c6d0752fd077832143ba597bb5
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Fri, 01 Apr 2022 09:36:36 GMT
access-control-allow-origin: *
etag: W/"6246c7a4-32ab"
expires: Mon, 29 Dec 2025 22:05:53 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 18FF:2916CC:967147:A8B3A3:6952F8E7
accept-ranges: bytes
age: 0
date: Mon, 29 Dec 2025 21:55:53 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210090-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1767045353.435565,VS0,VE226
vary: Accept-Encoding
x-fastly-request-id: 09035a67e86c5b571be6d1f7bdedaa0abe0702e6
content-length: 3321
TransEditor: Transformer-Based Dual-Space GAN for Highly Controllable Facial Editing
TransEditor: Transformer-Based Dual-Space GAN for Highly Controllable Facial Editing

Recent advances like StyleGAN have promoted the growth of controllable facial editing. To address its core challenge of attribute decoupling in a single latent space, attempts have been made to adopt dual-space GAN for better disentanglement of style and content representations. Nonetheless, these methods are still incompetent to obtain plausible editing results with high controllability, especially for complicated attributes. In this study, we highlight the importance of interaction in a dual-space GAN for more controllable editing. We propose TransEditor, a novel Transformer-based framework to enhance such interaction. Besides, we develop a new dual-space editing and inversion strategy to provide additional editing flexibility. Extensive experiments demonstrate the superiority of the proposed framework in image quality and editing capability, suggesting the effectiveness of TransEditor for highly controllable facial editing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code [GitHub] |
CVPR 2022 [Paper] |

Abstract
Paper
![]() |
Yanbo Xu*, Yueqin Yin*, Liming Jiang, Qianyi Wu, Chengyao Zheng, Chen Change Loy, Bo Dai, Wayne Wu. TransEditor: Transformer-Based Dual-Space GAN for Highly Controllable Facial Editing . In CVPR, 2022. (Paper) |
|
|
Method
Two latent spaces Z and P are used for generation. We correlate them via a cross-attention-based interaction module to facilitate editing.

Interpolation of two latent spaces. They are disentangled with different semantic meanings.
Interpolating Z space![]() | Interpolating P space ![]() |
Editing Results
Smile editing on Z space![]() | Gender editing on Z and P space ![]() |
Head pose editing on P space ![]() | Age editing on Z and P space![]() |
Comparison
Our method shows better editing ability compared with other SOTA methods.
Gender Editing Comparison ![]() | Pose Editing Comparison![]() |
Acknowledgements |








