FashionGAN
A two-stage GAN that redresses a person in a photo from a text description, via a generated segmentation map.
Diffusion and generative · 100 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
- 60.8M
- Operations
- 100
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV 2017
- Cited by
- 299 (as of 29 October 2026)
- Authors
- Shizhan Zhu, Sanja Fidler, Raquel Urtasun and others
- License
- BSD-3-Clause
- 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
- m16632
- Graph hash
- 6b22af7a9e20722908412e6d8dec492b5da19b9498cf88cd565eba4392e357b8
- Skeleton hash
- b3a32333055ccd078b9c0f43b408e58f16a438c52cebb9cf59f74e9638a28cac
- Architecture hash
- 71332605731708790ca382daa4a70c0752b2b0585cc2c78d9c5def776147db5f
- Diagram SHA-256
- 4b895ff38027bfe5d55fe15b0832755a606d18065a6ec68be443f6cea6bd1959
- 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
FashionGAN changes the outfit in a photograph of a person: given an image and a sentence describing a different outfit, it generates the new clothing while keeping the wearer and pose unchanged. The paper argues that existing generative adversarial networks are not ideal at keeping the structure globally coherent under both conditions, so it decomposes generation into two conditional stages.
The first generator produces a semantic segmentation map with 7 labels: background, hair, face, upper-clothes, pants/shorts, legs, and arms. Its spatial constraint is the original segmentation map merged into 4 categories: background, hair, face, and rest. Merging all clothing into the rest class makes this constraint agnostic of the clothing worn in the original image. The merged map is also downsampled, to a size of 8 by 8.
The second generator renders the final image using what the paper calls a compositional mapping layer, which generates the image with the guidance of the segmentation map. In comparison to non-compositional counterparts, the paper says, this layer helps to generate textures more coherent to each region. For training, the authors extended the DeepFashion dataset by collecting sentence descriptions for 79K images.
Key idea. FashionGAN splits text-guided outfit synthesis into two GAN stages, first generating a segmentation map that obeys the wearer's pose and then rendering the image from that map.
- fashiongan
- be your own prada
- fashion synthesis
- text-guided image synthesis
- clothing generation
- deepfashion
- conditional gan
- outfit generation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhu2017pradafashionsynthesisstructural,
title={Be Your Own Prada: Fashion Synthesis with Structural Coherence},
author={Shizhan Zhu and Sanja Fidler and Raquel Urtasun and Dahua Lin and Chen Change Loy},
year={2017},
eprint={1710.07346},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1710.07346},
}