Skip to content
Implementation of "Generating Sequences With Recurrent Neural Networks" https://arxiv.org/abs/1308.0850
Jupyter Notebook Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
app
backup
data
models
notebooks
results
utils
.flaskenv
.gitignore
LICENSE
README.md Update README.md Sep 17, 2019
config.py
copycat.py
environment.yml
generate.py
train.py

README.md

Handwriting generation

CopyMonkey (this project) web app is hosted at: https://copymonkey.xyz

Data description:

There are 2 data files that you need to consider: data.npy and sentences.txt. data.npycontains 6000 sequences of points that correspond to handwritten sentences. sentences.txt contains the corresponding text sentences. You can see an example on how to load and plot an example sentence in example.ipynb. Each handwritten sentence is represented as a 2D array with T rows and 3 columns. T is the number of timesteps. The first column represents whether to interrupt the current stroke (i.e. when the pen is lifted off the paper). The second and third columns represent the relative coordinates of the new point with respect to the last point. Please have a look at the plot_stroke if you want to understand how to plot this sequence.

Unconditional generation.

Generated samples: alt text alt text Samples generated using priming:

  • Prime style text is "medical assistance", text after this is generated by model alt text
  • Prime style text is "something which he is passing on", text after this is generated by model alt text
  • Prime style text is "In Africa Jones hotels spring", text after this is generated by model alt text

Conditional generation.

Generated samples: alt text alt text alt text

You can’t perform that action at this time.