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

creating your own style? #70

Open
FergalHennessy opened this issue Aug 19, 2023 · 13 comments
Open

creating your own style? #70

FergalHennessy opened this issue Aug 19, 2023 · 13 comments

Comments

@FergalHennessy
Copy link

is there a script that allows us to create our own style files from drawing, or a link to the program that was used to generate them? ^_^

@iso2013
Copy link

iso2013 commented Aug 21, 2023

You'd need to train your own model, as described here:
https://github.com/sjvasquez/handwriting-synthesis/tree/master/data/raw

@FergalHennessy
Copy link
Author

You'd need to train your own model, as described here: https://github.com/sjvasquez/handwriting-synthesis/tree/master/data/raw

is this true? looking at the code it seems the style files are just regular x files, and that the output is generated using the priming method, which means you can use the pretrained model

@Tombstone2K
Copy link

You'd need to train your own model, as described here: https://github.com/sjvasquez/handwriting-synthesis/tree/master/data/raw

That just tells us about training the model on presumably the same dataset.
Is there any resource to process my own handwriting to be able to generate that.

Or like @FergalHennessy mentioned can we use the pretrained model with our own handwriting

@acmattson3
Copy link

is there a script that allows us to create our own style files from drawing, or a link to the program that was used to generate them? ^_^

I'm searching for such a script myself. I attempted to create one but couldn't figure out how to replicate the format of the .npy files in the styles directory. I am able to train my data using rnn.py after having reverse engineered the prepare_data.py script but the format between the training data files and the style files seems drastically different, at least for the character data. Stroke data seems to be the same, actually.

@Fardenco
Copy link

I'm interested as well

@DrakeHooks
Copy link

is there a script that allows us to create our own style files from drawing, or a link to the program that was used to generate them? ^_^

I'm searching for such a script myself. I attempted to create one but couldn't figure out how to replicate the format of the .npy files in the styles directory. I am able to train my data using rnn.py after having reverse engineered the prepare_data.py script but the format between the training data files and the style files seems drastically different, at least for the character data. Stroke data seems to be the same, actually.

Were you ever able to find this? I want to train a model with my own handwriting.

@acmattson3
Copy link

this

I got a rudimentary script from someone who managed to get it to work. I haven't looked at it yet as I haven't had the time. Here is where it is posted.

@sah1lga1kwad
Copy link

Is it possible that using this Repo - I can upload 20-30 pages of my own handwriting and this code then can write in that particular style?

@acmattson3
Copy link

Is it possible that using this Repo - I can upload 20-30 pages of my own handwriting and this code then can write in that particular style?

I never found an easy way to do this, so I just built it myself. It's not perfect but it gets the job done. You just write ~800 "prompts" (~70 characters each) and train the model.

I tried it myself and got close (becoming too lazy to write any more), but one person (who you can find in the issues of that repo) managed to get an impressive result.

@techno-yogi
Copy link

Do you know if the drawing board you used is compatible with android tablet? Like if I ran the python code on android directly I wonder if this would be compatible with stylus to make it better handwriting for the prompts

@ImNotOssy
Copy link

Do you know if the drawing board you used is compatible with android tablet? Like if I ran the python code on android directly I wonder if this would be compatible with stylus to make it better handwriting for the prompts

What i originally tried was using my s24 ultra spen. Samsung has this little beta feature thats hidden where you can make your device a wireless display for your PC. I used that and started to draw using my SPEN, i noticed my screen was too small to be able to do it correctly so i just went ahead and bought a Gaomon drawing tablet (im returning it after im done). Im sure you could use an samsung table with an spen it would be big enough.

@acmattson3
Copy link

Do you know if the drawing board you used is compatible with android tablet? Like if I ran the python code on android directly I wonder if this would be compatible with stylus to make it better handwriting for the prompts

What i originally tried was using my s24 ultra spen. Samsung has this little beta feature thats hidden where you can make your device a wireless display for your PC. I used that and started to draw using my SPEN, i noticed my screen was too small to be able to do it correctly so i just went ahead and bought a Gaomon drawing tablet (im returning it after im done). Im sure you could use an samsung table with an spen it would be big enough.

I just created this web-based handwriting data maker that works on touch devices. It is crude, but gets the job done. See my handwriting data repository for more information on how to use it. Please raise an issue on the repository if you see any glaring problems or important things to add.

@ImNotOssy
Copy link

Do you know if the drawing board you used is compatible with android tablet? Like if I ran the python code on android directly I wonder if this would be compatible with stylus to make it better handwriting for the prompts

What i originally tried was using my s24 ultra spen. Samsung has this little beta feature thats hidden where you can make your device a wireless display for your PC. I used that and started to draw using my SPEN, i noticed my screen was too small to be able to do it correctly so i just went ahead and bought a Gaomon drawing tablet (im returning it after im done). Im sure you could use an samsung table with an spen it would be big enough.

I just created this web-based handwriting data maker that works on touch devices. It is crude, but gets the job done. See my handwriting data repository for more information on how to use it. Please raise an issue on the repository if you see any glaring problems or important things to add.

This would have been so useful couple days ago. Sadly I'm past this step, currently struggling with implementing the training step on Google colab. I had it working a couple hours ago but it was using the cpu rather than the gpu and then it broke and I gave up for now.

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

9 participants