Grzego / handwriting-generation

Implementation of handwriting generation with use of recurrent neural networks in tensorflow. Based on Alex Graves paper (https://arxiv.org/abs/1308.0850).
MIT License
520 stars 107 forks source link

Random text being written after the input string #3

Closed Belval closed 6 years ago

Belval commented 6 years ago

It's quite a weird issue, not sure what might be causing it.

When I run the RNN to get the stroke data, it seems to add some garbage after my input string.

For example:

tsareva becomes Imgur

Here's how I'm using the model: TextRecognitionDataGenerator

Grzego commented 6 years ago

It seems like you forgot to include those lines:

if finish[0, 0] > 0.8:
    break

at the end of for loop, after line 80.

Small advice when using this model, add one space at the end of string you want to generate. I noticed that it sometimes cuts of last character without this space. :)

Belval commented 6 years ago

That did the trick! Thank you