#4949th of 80 in Open models

sketch-code

CNN-LSTM model that turns hand-drawn wireframe images into HTML

Stars
5.1k
License
MIT
Last commit
Aug 2026
Language
Python
Stars, last 29 weeks+17
22 Apr 2026: 5,124 stars29 Apr 2026: 5,124 stars6 May 2026: 5,124 stars13 May 2026: 5,125 stars20 May 2026: 5,125 stars27 May 2026: 5,126 stars3 Jun 2026: 5,126 stars10 Jun 2026: 5,126 stars17 Jun 2026: 5,126 stars24 Jun 2026: 5,127 stars1 Jul 2026: 5,127 stars8 Jul 2026: 5,128 stars15 Jul 2026: 5,128 stars22 Jul 2026: 5,129 stars29 Jul 2026: 5,131 stars5 Aug 2026: 5,131 stars12 Aug 2026: 5,131 stars19 Aug 2026: 5,134 stars26 Aug 2026: 5,134 stars2 Sept 2026: 5,134 stars9 Sept 2026: 5,134 stars16 Sept 2026: 5,134 stars23 Sept 2026: 5,134 stars30 Sept 2026: 5,134 stars7 Oct 2026: 5,134 stars14 Oct 2026: 5,136 stars21 Oct 2026: 5,138 stars28 Oct 2026: 5,139 stars4 Nov 2026: 5,140 stars11 Nov 2026: 5,141 stars

5,124 on 22 Apr 20265,141 on 11 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

SketchCode is a 2018 proof-of-concept that treats HTML as the caption of a wireframe image, using a CNN encoder and LSTM decoder trained on a 1,700-image synthetic dataset derived from pix2code. The repo has Python scripts to convert single images or folders to HTML, train from scratch or from pretrained weights, and score output with BLEU. The README says the code targets TensorFlow 1.x and Keras and is no longer maintained.

Who it is for: Researchers and engineers studying early image-to-code models

Strengths

  • Ships pretrained weights and a download script for the 1,700-image dataset (342 MB)
  • CLI scripts cover single and batch conversion, training, and BLEU evaluation
  • Training can start from scratch or from pretrained weights, with optional Keras augmentation
  • MIT licensed, with a linked write-up of the approach

Weaknesses

  • No longer maintained; targets TensorFlow 1.x and Keras of 2018
  • Only works on wireframes resembling the synthetic training set
  • No accuracy figures given; evaluation is a BLEU script only
  • Portions derive from Apache-2.0 pix2code, adding attribution terms beyond MIT

What it needs

  • Needs Python 3, TensorFlow 1.x, Keras
  • Models: CNN encoder + LSTM decoder (Keras JSON + H5 weights)

Also in Open models

See all 80
Also in Open models
RankProjectScore
1ruviewWiFi CSI sensing on ESP32 for presence, breathing, heart rate and pose104.1k stars+6,757 (+6.9%) in 30 daysMIT94 out of 100
2layaSingle-pass multilingual classifier returning typed decisions with calibrated odds Live demo ↗ (opens in a new tab)35.5k stars+3,001 (+9.2%) in 30 daysApache-2.088 out of 100
3rf-detrReal-time transformer models for object detection, segmentation and keypoints Live demo ↗ (opens in a new tab)10.1k stars+280 (+2.9%) in 30 daysApache-2.081 out of 100
#4timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research35.4k stars+1,097 (+3.2%) in 30 daysApache-2.078 out of 100
#5open_clipPyTorch library for training and running CLIP-style image-text models14.3k starscustom license78 out of 100