PhotoWCT
An auto-encoder that transfers the style of one photo to another, with unpooling layers to keep structure.
Diffusion and generative · 2,066 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
- 8.3M
- Operations
- 2,066
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2018
- Cited by
- 409 (as of 27 October 2026)
- Authors
- Yijun Li, Ming-Yu Liu, Xueting Li and others
- License
- CC-BY-NC-SA-4.0
- 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
- m19318
- Graph hash
- 7d91496edaf16adb8dd64064433fc65375c82affb7b70b0435c5c9e1d8ac6fc1
- Skeleton hash
- 8b9ff7680ba8392eae6aea1e0b48e2d888b1f688b5bc52277f73399b3da66232
- Architecture hash
- 334352e16e79cf410c047b05070ba7a3798b2f3315acff4bdf7d7b8581978cb7
- Diagram SHA-256
- 4942f7ee1dccb15741471196490b99a0060845f4e0543c79a7621fdddeef25d7
- 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
PhotoWCT is the first step, the stylization transform, of a two-step method for photorealistic image stylization. That task is to transfer the style of a reference photo to a content photo under the constraint that the result remains photorealistic. The second step smooths the stylized output for spatial consistency and is based on a manifold ranking algorithm. Each of the two steps has a closed-form solution.
PhotoWCT is based on the whitening and coloring transform (WCT), which stylizes images through feature projections. The WCT uses the VGG-19 model as a fixed encoder, trains a decoder to reconstruct the input image, and applies the projections at the bottleneck. The paper's observation is that max-pooling in the WCT reduces spatial information in the feature maps. PhotoWCT therefore keeps the same encoder and projection steps but replaces the decoder's upsampling layers with unpooling layers, which use the pooling masks recorded in the encoder.
In the paper's example, straight lines along a building boundary become zigzagged in the WCT result and remain straight in the PhotoWCT result. The code is published as FastPhotoStyle under the CC BY-NC-SA 4.0 license.
Key idea. The paper replaces the upsampling layers of the WCT decoder with unpooling layers and adds a closed-form smoothing step, so stylized photos keep their structure and stay spatially consistent.
- PhotoWCT
- FastPhotoStyle
- photorealistic image stylization
- photo style transfer
- style transfer
- whitening and coloring transform
- unpooling
- closed-form stylization
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{li2018closedformsolutionphotorealisticimage,
title={A Closed-form Solution to Photorealistic Image Stylization},
author={Yijun Li and Ming-Yu Liu and Xueting Li and Ming-Hsuan Yang and Jan Kautz},
year={2018},
eprint={1802.06474},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1802.06474},
}