convolutional-handwriting-gan icon indicating copy to clipboard operation
convolutional-handwriting-gan copied to clipboard

Generating a text line

Open ysig opened this issue 3 years ago • 3 comments
trafficstars

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,

ysig avatar May 27 '22 11:05 ysig

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)

rlit avatar May 31 '22 09:05 rlit

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.

giangnv125 avatar Aug 08 '23 05:08 giangnv125

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

rlit avatar Aug 11 '23 18:08 rlit