xinggan_generator
A pose-transfer GAN whose appearance and shape branches cross-attend to refine each other.
Diffusion and generative · 549 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
- 44.9M
- Operations
- 549
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2020
- Cited by
- 197 (as of 17 October 2026)
- Authors
- Hao Tang, Song Bai, Li Zhang and others
- Source
- GitHub: Ha0Tang/XingGAN
- 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
- m11306
- Graph hash
- 84ad4650b4976f98fbf506551c91c4341d52e2c007f4def7bf9457c713f4f2b3
- Skeleton hash
- 5c3e4fe0adfe40ee9d839770c66ae6025f2d3dd09a184ce18691283065ed2d9c
- Architecture hash
- 969dfb9be50d6ad2fba9e74f2c21ff6e8d7bbd8ede80ca58d02f37910c4b91d4
- Diagram SHA-256
- a2755f175c246b9b8bef71810fc55f9a40b6ef291358fa051fedd47114b98223
- 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
XingGAN, also called CrossingGAN, is a generative adversarial network for person image generation: translating the pose of a given person to a desired one. The generator takes a source image, the source pose and the target pose, where the image supplies appearance and the keypoint poses supply shape. The authors favour keypoint-based pose over DensePose, 3D or segmented pose because it is cheaper and more flexible.
The Xing generator has two generation branches that model the person's appearance and shape information respectively, plus a co-attention fusion module. The shape-guided appearance branch is an image encoder followed by cascaded SA blocks that progressively update the appearance code under guidance from the shape branch. The appearance-guided shape branch mirrors it with a pose encoder and AS blocks, added after preliminary experiments showed the appearance branch alone could not learn such a deformable translation. Inside each block a crossing operation computes a Softmax correlation matrix between the two codes, so every refined position is a weighted sum over all positions of the other modality. This is a non-local operator applied across different feature maps, the appearance and shape maps, rather than within one.
Two discriminators judge the result: an appearance-guided one for whether the output shows the same person, and a shape-guided one for how well it aligns with the target pose. Everything is trained end-to-end so the two branches improve each other. Experiments on Market-1501 and DeepFashion report better visual fidelity and pose alignment than prior methods. The captured member is the generator from the authors' official PyTorch implementation, released for academic research use only under CC BY-NC-SA 4.0.
Key idea. XingGAN introduces SA and AS blocks that update a person's shape and appearance embeddings in a crossing way so each guides the other, which no prior GAN-based image generation work had considered.
- xinggan
- crossinggan
- xing generator
- person image generation
- pose transfer
- sa block
- as block
- co-attention fusion
- market-1501
- deepfashion
- appearance cues
- shape cues
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tang2020xingganpersonimagegeneration,
title={XingGAN for Person Image Generation},
author={Hao Tang and Song Bai and Li Zhang and Philip H. S. Torr and Nicu Sebe},
year={2020},
eprint={2007.09278},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2007.09278},
}