Back to projects

Oct 20, 2026

Next-Stroke Predictor

An attempt to use a world model to predict the next stroke while drawing, to speed up the drawing process.

PyTorchWorld modelsTransformerMDNQuickDraw

A Transformer + Mixture Density Network world model for sketch-stroke autocomplete. Stage 1 trains a stroke autoencoder that compresses each stroke into a 64-dimensional embedding. Stage 2 trains a causal Transformer with a Gaussian-mixture head to predict the next stroke's embedding from the sketch so far.

Trained on a subset of Google QuickDraw, with a backend and a frontend for drawing and getting suggestions.