All models

CP-VTON

Two-stage virtual try-on network that warps a garment with a learned spline and blends it onto a person.

Diffusion and generative · 216 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 (19 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
40.4M
Operations
216
Framework
PyTorch
Recurrent
No
Published
ECCV 2018
Cited by
445 (as of 28 October 2026)
Authors
Bochao Wang, Huabin Zheng, Xiaodan Liang 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
m15170
Graph hash
b57c94ce184596a48af97f8d42ac6bb745d61d62070ad63e766222f665cf0cae
Skeleton hash
a730d60807376be458f4987e57db073139866a0038de085a676423dddee2e773
Architecture hash
b9d253043ae8c9c481217c63dac623dc1c5a9f91be6db9bcb932cc1e5b50abca
Diagram SHA-256
d9a0a9ca19bd17d1d2da7a9449573e7ba797def9dd80474c5a5305ef928bb11e
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

CP-VTON is an image-based virtual try-on network: it fits a new in-shop garment onto a photo of a person. Its stated aim is to keep the garment's key characteristics, such as texture, logo and embroidery, in the generated image. The paper argues that the earlier VITON pipeline failed at this because of its coarse-to-fine strategy and its imperfect matching module.

The first stage, the Geometric Matching Module, learns a thin-plate spline transformation that warps the garment to fit the body shape of the target person. The second stage, the Try-On Module, is a U-Net that renders a person image and at the same time predicts a composition mask used to fuse that rendering with the warped garment. Both stages see the person as a 22-channel map made of an 18-channel pose heatmap, a 1-channel body shape mask and an RGB image of the face and hair.

Input images are resized to 256 × 192 and the outputs have the same resolution. The authors report that an adversarial loss brought little improvement in their model. The public PyTorch code is a reimplementation, and its README notes that results may differ from those of the original code.

Key idea. CP-VTON replaces hand-crafted shape context matching with a learnable thin-plate spline warping module and merges warped clothes with a rendered person image through a learned composition mask.

  • CP-VTON
  • Characteristic-Preserving Virtual Try-On Network
  • virtual try-on
  • image-based virtual try-on
  • clothes warping
  • thin-plate spline
  • Geometric Matching Module
  • Try-On Module
  • fashion image synthesis

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

Cite the paper

@misc{wang2018characteristicpreservingimagebasedvirtualtryon,
      title={Toward Characteristic-Preserving Image-based Virtual Try-On Network}, 
      author={Bochao Wang and Huabin Zheng and Xiaodan Liang and Yimin Chen and Liang Lin and Meng Yang},
      year={2018},
      eprint={1807.07688},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1807.07688}, 
}