APDrawingGAN
A hierarchical GAN that turns a face photo into an artistic portrait drawing.
Diffusion and generative · 301 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
- 63.8M
- Operations
- 301
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2019
- Cited by
- 181 (as of 24 October 2026)
- Authors
- Ran Yi, Yong-Jin Liu, Yu-Kun Lai, Paul L. Rosin
- License
- Apache-2.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
- m14562
- Graph hash
- d5cba03f73ab8ba21193d2fe9c79cc067eb0631aa25d0e11891e09defa2cc823
- Skeleton hash
- 974defefe2fb1347011af473a2a5cf1d077e18ad89bc1d3122fbf8c21e1116dd
- Architecture hash
- 1c19cec6467785d7ded65e44ccdbc679b2e84f503ac70ad71992c3e9ced421c6
- Diagram SHA-256
- 780a9ebf0cadf771744f2bfaa920e82f4bfc0bf786e6bbdae5eab33474b67186
- 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
APDrawingGAN turns a face photo into an artistic portrait drawing with a GAN-based model. The paper explains why this is hard: such drawings are highly abstract and made of a sparse set of lines, so small artifacts are much more exposed than in painting styles.
The architecture is hierarchical: its generators and discriminators combine a global network for the image as a whole with local networks for individual facial regions. This lets a dedicated drawing strategy be learned for each facial feature. Because an artist's lines may not be perfectly aligned with image features, the authors add a loss based on distance transforms that measures the similarity between generated drawings and artists' drawings.
To train the model, the authors built a dataset of high-resolution portrait photos with corresponding professional artistic drawings. The paper reports, from experiments that include a user study, that APDrawingGAN produces significantly better artistic drawings than the methods it was compared with. The pre-trained model released with the PyTorch code was trained using 70 pairs in the training set and augmented data.
Key idea. APDrawingGAN combines a global network with local networks for individual facial regions in hierarchical generators and discriminators to draw artistic portraits from face photos.
- apdrawinggan
- artistic portrait drawing
- portrait drawing gan
- face photo to drawing
- hierarchical gan
- image stylization
- portrait line drawing
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Yi_2019, title={APDrawingGAN: Generating Artistic Portrait Drawings From Face Photos With Hierarchical GANs}, url={http://dx.doi.org/10.1109/CVPR.2019.01100}, DOI={10.1109/cvpr.2019.01100}, booktitle={2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Yi, Ran and Liu, Yong-Jin and Lai, Yu-Kun and Rosin, Paul L.}, year={2019}, month=June, pages={10735–10744} }