All models

NiceGAN

An unsupervised image-to-image translation GAN whose discriminator is reused as the encoder.

Diffusion and generative · 607 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 (43 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
323.3M
Operations
607
Framework
PyTorch
Recurrent
No
Published
CVPR 2020
Cited by
258 (as of 27 October 2026)
Authors
Runfa Chen, Wenbing Huang, Binghui Huang and others
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
m18894
Graph hash
25b65622f1cac9ee03adb6d91db27be2a8ee1e790eac2b4fef57f038e4ef72a6
Skeleton hash
a2744e78e49cfdc09e4155a6a58bf47a05721ce7a4d503db053c0971a7323304
Architecture hash
a0db9e6dc49273afc0e76805c3636dcb047e823fa074c620e1c7789f4e11777c
Diagram SHA-256
2271b0b51bc34dc4a7cd183399271dfb6a32dbcf34058187f13973d304abddac
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

NICE-GAN is a GAN for unsupervised image-to-image translation that reuses its discriminator to encode the images of the target domain. The paper starts from the observation that translation frameworks abandon the discriminator once training is completed.

The paper names two advantages: the architecture is more compact because no independent encoding component is required, and the encoder is trained directly by the adversarial loss. Sharing the encoder couples translation with discrimination, which the paper says could cause training inconsistency in the min-max game. Its remedy is a decoupled training strategy: the encoder is trained only when maximizing the adversarial loss and kept frozen otherwise.

On four benchmarks the paper reports better FID, KID and human preference results than the methods it compares with. The official code is written in PyTorch, and its authors say it is inspired by UGATIT-pytorch. The code also has a light setting for GPUs without sufficient memory.

Key idea. NICE-GAN reuses the discriminator to encode target-domain images, so no independent encoding component is required, and trains that encoder with a decoupled strategy.

  • nice-gan
  • nicegan
  • no-independent-component-for-encoding gan
  • reusing discriminators for encoding
  • unsupervised image-to-image translation
  • unpaired image translation
  • image translation gan
  • discriminator as encoder

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

Cite the paper

@misc{chen2020reusingdiscriminatorsencodingunsupervised,
      title={Reusing Discriminators for Encoding: Towards Unsupervised Image-to-Image Translation}, 
      author={Runfa Chen and Wenbing Huang and Binghui Huang and Fuchun Sun and Bin Fang},
      year={2020},
      eprint={2003.00273},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2003.00273}, 
}