All models

U-GAT-IT

GAN generator for unpaired image-to-image translation with class-activation attention and AdaLIN normalization.

Diffusion and generative · 340 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (30 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
279M
Operations
340
Framework
PyTorch
Recurrent
No
Published
ICLR 2020
Cited by
451 (as of 3 November 2026)
Authors
Junho Kim, Minjae Kim, Hyeonwoo Kang, Kwanghee Lee
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21097
Graph hash
928a2fc3889d4bd79471cfe28d1e142a16a8d6c05b33b5c6199cde42d4917aef
Skeleton hash
2507c844328906bb43124caf661b903e3ad268efda7fb7c13d060c5fa3d80f6c
Architecture hash
f241b0ed3c9f6a68d809ee4414de1450391cc799bfbd3f5389ae4c049e632525
Diagram SHA-256
2a5dbf3302f339e35a6fc60c9a3491f292d272633f733fa1b3a9e3e83937e859
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

U-GAT-IT translates images from one domain to another, such as selfies to anime drawings, and learns to do so from unpaired examples of each domain. The paper observes that earlier methods handled style transfer of local texture but usually not translations with a larger change of shape, such as selfie2anime and cat2dog.

The generator shown here has three parts: an encoder, a decoder and an auxiliary classifier. The classifier, inspired by CAM, learns one weight per encoder feature map, and the weighted maps form an attention map that points the generator at the areas that distinguish the two domains. The decoder is normalized with AdaLIN (Adaptive Layer-Instance Normalization), which learns during training what ratio of instance normalization and layer normalization to use. The paper describes the encoder as two stride-two convolutions followed by four residual blocks, and the decoder as four residual blocks followed by two up-sampling convolution layers.

Evaluation used five unpaired datasets, one a newly created selfie2anime set of real photos and animation artworks. In their selfie2anime ablation, scored by Kernel Inception Distance, the attention module and AdaLIN each helped alone and helped more together. This is the full version of the generator; the code also offers a light setting for GPUs with too little memory, which the authors warn may not perform well. The PyTorch repository states that the results in the paper came from the TensorFlow code.

Key idea. U-GAT-IT adds an attention module guided by an auxiliary classifier and a learnable normalization, AdaLIN, to unpaired image-to-image translation so one architecture handles both texture and shape changes.

  • U-GAT-IT
  • UGATIT
  • unsupervised image-to-image translation
  • AdaLIN
  • adaptive layer-instance normalization
  • selfie2anime
  • attention module
  • unpaired image translation
  • GAN
  • anime

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kim2020ugatitunsupervisedgenerativeattentional,
      title={U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation}, 
      author={Junho Kim and Minjae Kim and Hyeonwoo Kang and Kwanghee Lee},
      year={2020},
      eprint={1907.10830},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1907.10830}, 
}