Avatar-Net
A feed-forward network that transfers the style of any image onto a content image at multiple scales.
Diffusion and generative · 249 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.
At a glance
- Parameters
- 7.1M
- Operations
- 249
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2018
- Cited by
- 323 (as of 30 October 2026)
- Authors
- Lu Sheng, Ziyi Lin, Jing Shao, Xiaogang Wang
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m14789
- Graph hash
- 30cd082bfddd63cff740a8e850d4d1d89e1225500e631f577ea354b8b2a2b6ce
- Skeleton hash
- be0faf51e0cc7799175507d95f4a3d8aa5b18090d752309d72bd852bd35302f9
- Architecture hash
- 58d5b7b490d4880733b76ffe659149172b2c4c8243e458296d5fbaad348bf027
- Diagram SHA-256
- 409836ce4850f623cf3687e174fe646f751f0746547646aab184a2526f81efce
- 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
Avatar-Net is a zero-shot style transfer model. The task is to transfer an arbitrary style into content images. Its central module is the style decorator, which matches patches of content features to patches of style features after both have been whitened into a common normalized space. The matched features are then colored with the statistics of the style features to give the stylized features.
The encoder copies the architecture of a pretrained VGG19 up to conv4_1. The decoder is randomly initialized and mirrors the encoder, with pooling layers replaced by nearest upsampling. Shortcut connections link conv1_1, conv2_1 and conv3_1 to their corresponding decoder layers. Style fusion modules in the decoder progressively modify the decoded features. The hourglass network is trained solely to reconstruct natural images. Training uses the MSCOCO dataset with roughly 80,000 training samples.
The projection step of the decorator can use ZCA whitening or AdaIN, and the paper notes that AdaIN keeps slightly more content patterns but is much more efficient. The official code exposes that choice as a setting, along with a default patch size of 5 for the patch matching. In the authors' timing comparison Avatar-Net has an execution time comparable to AdaIN and GPU-accelerated Style-Swap and is much faster than WCT.
Key idea. Avatar-Net introduces a style decorator that matches content and style feature patches in a whitened space, inside an hourglass network that applies multi-scale style in one feed-forward pass.
- Avatar-Net
- AvatarNet
- style transfer
- zero-shot style transfer
- arbitrary style transfer
- style decorator
- feature decoration
- multi-scale style transfer
- neural style transfer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{sheng2018avatarnetmultiscalezeroshotstyle,
title={Avatar-Net: Multi-scale Zero-shot Style Transfer by Feature Decoration},
author={Lu Sheng and Ziyi Lin and Jing Shao and Xiaogang Wang},
year={2018},
eprint={1805.03857},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1805.03857},
}