
munit_generator
70 ops105.6K params
Unpaired image translation that splits content from style so one input can become many outputs.
Diffusion and generative · 70 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.munit_generator:build_munit_generator: build({}) MUNIT, the Multimodal Unsupervised Image-to-image Translation framework, learns to map images between two domains without ever seeing a paired example. Its point of departure is that this conditional distribution is inherently multimodal, while earlier methods modelled it as a deterministic one-to-one mapping and so failed to generate diverse outputs from one source image.
The framework assumes an image's latent representation splits into a content code that is domain-invariant and a style code that captures domain-specific properties. To translate, it recombines the input's content code with a random style code sampled from the target domain's style space, so different style codes give different outputs.
The content encoder is several strided convolutional layers followed by residual blocks; the style encoder ends in global average pooling and a fully connected layer, deliberately without instance normalization, which would erase the feature statistics that carry style. The decoder processes the content code through residual blocks equipped with Adaptive Instance Normalization layers whose affine parameters an MLP generates from the style code, then upsamples to the image.
Training combines an adversarial loss with bidirectional reconstruction losses that reconstruct both images and latent codes, using L1 reconstruction because it encourages sharp outputs. The discriminators follow the LSGAN objective and are multi-scale, to push the generators toward both realistic details and correct global structure. The paper also proves that minimizing its loss matches latent distributions, matches the two joint image distributions, and enforces a weak form of cycle consistency. Because content and style are separated, a user can steer the translation by supplying an example style image from the target domain.
Key idea. Unsupervised image translation that models the full multimodal output distribution by factoring images into a shared content code and a domain-specific style code, recombined through AdaIN-conditioned residual decoding.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{huang2018multimodalunsupervisedimagetoimagetranslation,
title={Multimodal Unsupervised Image-to-Image Translation},
author={Xun Huang and Ming-Yu Liu and Serge Belongie and Jan Kautz},
year={2018},
eprint={1804.04732},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1804.04732},
}