convolutional-handwriting-gan
convolutional-handwriting-gan copied to clipboard
Generating a text line
Hi,
I see that the code can generate words. But I don't see how to generate a line consistently, i.e. give an input x = 'I like cats' and get an an output with similar backgrounds along characters and proper spacing.
Thanks,
Hi Thanks for your interest in this package.
As far as I recall we had, on some of the datasets, a token/character for white-space. you can use it to generate spaces. this is how we generated long sentences like here.
Note, however, that the inconsistent background is an artifact related to the IAM dataset, and is present in the train data (and hence the GAN generates it as well)
Hello @rlit , Can you send me your code which generates a text line? My email is [email protected]. I hope to hear back from you soon.
Hi @giangnv125
It has been quite a while since I looked at this code (and I was not even the one who wrote it 🙂 ), so I cannot locate the neeed script
I would recommend looking at the generation script to get the general gist of how to create a word, and especially the getImg function