Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating a text line #27

Open
ysig opened this issue May 27, 2022 · 3 comments
Open

Generating a text line #27

ysig opened this issue May 27, 2022 · 3 comments

Comments

@ysig
Copy link

ysig commented May 27, 2022

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,

@rlit
Copy link
Contributor

rlit commented May 31, 2022

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)

@giangnv125
Copy link

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.

@rlit
Copy link
Contributor

rlit commented Aug 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants