SketchGAN
GAN that completes an incomplete hand-drawn sketch and recognizes it at the same time.
Diffusion and generative · 151 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
- 163.2M
- Operations
- 151
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2019, pp. 5830-5839
- Cited by
- 63 (as of 29 October 2026)
- Authors
- Fang Liu, Xiaoming Deng, Yu-Kun Lai 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 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
- m20443
- Graph hash
- 01c445e7c3ea8381e96241c02c7ba2b4f4b34521d6b58b540aef11c1686a9788
- Skeleton hash
- 0ef3fd496d1b2cbe8e71c77e99678c78804605e613e289b10cf615e78ae8b68a
- Architecture hash
- 9e652233a0076667fe365260f705bb90335af8277e310f0605db149bac27cc08
- Diagram SHA-256
- 486ac43cb2de66546fa12b1061128af75cc215d0f24814ed3ad61056c653f54e
- 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
SketchGAN is a generative adversarial network (GAN) based approach that jointly completes and recognizes a hand-drawn sketch. Its premise is that earlier recognition methods often assume a complete sketch as input, while the sketches drawn in common application scenarios are often incomplete.
A cascade Encode-Decoder network completes the input sketch in an iterative manner, and an auxiliary sketch recognition task recognizes the completed sketch. On the Sketchy database benchmark, the paper reports completion and recognition performance competitive with the methods it compares against.
The code behind this model is a PyTorch implementation of the SketchGAN paper. Its training data pairs corrupted sketches with target sketches, and the GAN learns to map the first to the second.
Key idea. SketchGAN completes an incomplete sketch with a cascade Encode-Decoder network and recognizes it through an auxiliary task, training both jointly so that each improves the other.
- SketchGAN
- Sketch-GAN
- sketch completion
- sketch recognition
- hand-drawn sketch
- generative adversarial network
- Sketchy database
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Liu_2019, title={SketchGAN: Joint Sketch Completion and Recognition With Generative Adversarial Network}, url={http://dx.doi.org/10.1109/CVPR.2019.00598}, DOI={10.1109/cvpr.2019.00598}, booktitle={2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Liu, Fang and Deng, Xiaoming and Lai, Yu-Kun and Liu, Yong-Jin and Ma, Cuixia and Wang, Hongan}, year={2019}, month=June, pages={5823–5832} }