greydanus / scribe

Realistic Handwriting with Tensorflow
https://greydanus.github.io/2016/08/21/handwriting/
248 stars 85 forks source link

Rollback experimental changes #4

Closed dribnet closed 7 years ago

dribnet commented 7 years ago

After posting pull request #1, I subsequently accidentally pushed a bunch of experimental changes to that same branch which then got merged in. These included changes to the pickled file format to include the (computed) alphabet, and an experiment right padding all strings to the same length. These were not backwards compatible changes and the experiment with that code did not give me a model that converted.

So this pull request reverts the earlier one, but then re-adds the stable changes from earlier pull requests #1 and #3.

This version of the code is also compatible with a TF1.0 model I've uploaded here. Here's a sample session on how to use it:

wget http://drib.net/xfer/tf_10_model.tgz
tar xvfz tf_10_model.tgz
mkdir -p tf10_model_figures && \
  python -u run.py \
  --sample \
  --rnn_size 100 \
  --nmixtures 8 \
  --log_dir tf10_model_  \
  --save_path tf_10_model/model.ckpt

This should result in several files in the tf10_model_figures subdirectory. Examples attached.

iter-110500-l-a_project_

iter-110500-g-a_project_

iter-110500-w-a_project_

Sorry if these experimental changes caused any confusion - happy to discuss that code in case there are changes you would like to consider merging in. But for now I think it's best to revert to this stable version which has a trained model.