ashnkumar/sketch-code

Keras model to generate HTML code from hand-drawn website mockups. Implements an image captioning architecture to drawn source images.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 33 minutes ago
Added to GitGenius on September 13th, 2026
Created on January 19th, 2018
Open Issues & Pull Requests: 29 (+0)
GitHub issues: Enabled
Number of forks: 677
Total Stargazers: 5,143 (+0)
Total Subscribers: 211 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

SketchCode is a deep learning model that converts hand-drawn website mockups into HTML code using an image captioning architecture.

The tool addresses the problem of automating front-end development from wireframes by treating HTML generation as an image captioning task. It employs a CNN encoder paired with an LSTM decoder, the standard image captioning approach of its time, to learn the mapping from visual mockup features to HTML markup. The model is trained on a synthetically generated dataset and can process both single images and batches of wireframes.

This is a proof-of-concept best understood as a historical artifact rather than a production tool. The model performs reliably only on wireframes that closely resemble its training dataset of roughly 1,700 synthetic images and does not generalize well to the variability found in real-world sketches. It builds on prior work from pix2code and the Design Mockups project. Anyone considering it should recognize that general-purpose vision-language models now solve this problem zero-shot, making this approach obsolete for practical use. The project is preserved as-is from 2018 and targets TensorFlow 1.x and Keras of that era.

The project is no longer maintained and stands as a record of the deep learning techniques applied to this problem before the emergence of modern foundation models. The codebase remains available for reference and educational purposes, documenting how this specific architectural approach performed on constrained datasets before the field shifted toward more general solutions.