Skip to main content

ML Models for Single-Line Drawings

Project description

singleline_models

Install

pip install singleline_models

Models

Sketch RNN

PyTorch implementation of the SketchRNN paper, A Neural Representation of Sketch Drawings.

Sketch RNN learns to reconstruct stroke-based drawings, by predicting a series of strokes. It uses a sequence-to-sequence LSTM model, with gaussian mixture heads to produce a sequence of stroke coordinates.

seq2seq model

Datasets

  • data/quickdraw/: Sample data from Quick, Draw! Dataset
  • data/look/: Custom dataset of single-line drawings by @andrewlook

All data is stored in stroke-3 format, meaning a list with three columns:

  • delta_x
  • delta_y
  • lift_pen (if 1, “lift the pen” and start a new stroke; otherwise 0)

stroke-3 turtle

Acknowledgements

Improvements

  • Log epoch and learning rate
  • LR decay
  • ETA decay (for KL loss)
  • Dropout
  • Layer Normalization
  • Recurrent Dropout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

singleline_models-0.0.2.tar.gz (37.7 kB view hashes)

Uploaded Source

Built Distribution

singleline_models-0.0.2-py3-none-any.whl (47.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page