SketchCode is a legacy proof-of-concept that predicts HTML from hand-drawn website mockups using a CNN–LSTM image captioning architecture.
Overview
SketchCode applies an image captioning approach to UI wireframes: a convolutional encoder and LSTM decoder emit HTML markup resembling training sketches. It was created during the 2018 Insight AI Fellowship and targets TensorFlow 1.x era Keras code that is no longer actively maintained.
Training relied on a synthetic dataset of roughly seventeen hundred wireframe images in the pix2code tradition. The authors note accuracy depends on sketches similar to that distribution, so real-world whiteboard variability is limited.
Scripts download pretrained weights, convert single images or batches, and report BLEU scores against references. It remains a historical reference as general vision-language models later tackled similar tasks without specialized training.
Teams evaluating it today should expect archival dependencies and treat outputs as demonstrations rather than production layout generators.
Key features
- Hand-drawn wireframe input
- CNN-LSTM HTML decoder
- Pretrained weight download
- Single image and batch modes
- BLEU evaluation script
- Synthetic dataset heritage
Use cases
- Research wireframe-to-code ideas
- Reproduce 2018 captioning baseline
- Benchmark on synthetic sketches
- Study pix2code derivatives