-
Notifications
You must be signed in to change notification settings - Fork 31
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
instructions for custom dataset #23
Comments
You just need to define a custom dataset, copy If you don't want to go to the work of adjusting everyting, training a custom dataset, and then just extracting the mean style vector from the training data should work. As far as the text file, it should match what you want the model to be producing (do you want it produce Latin?). It's character set of course needs match the one used throughout the model. |
Thank you so much, @herobd ! I'm afraid I require a little (or perhaps a lot of) extra hand-holding. 👶
Thanks in advance for any 🍼 you're willing to offer me. |
--1. & 2. This is expecting the data to be cropped at the line level. (There are better handwriting sythesis methods than mine, but they all expect words.) You'll need to find the bounding box for each text line or crop it into a seperate image and then save the associated text for that line. You can put this in whatever format is easy for you to create and read in with your dataset code. The dataset handles resizing the images (to a height of 64) so you don't need to do that. The different colored background should be fine, although you may want to set A custom dataset is just a new Dataset object. The easiest way is to copy
You'll also need to add your dataset to Be sure to also copy --3. Ya, I didn't have time to clean up the code as much as I would have liked, so it is a bit spaghetti-like. --4., 7. & 8. Yes, although you'll make your own
--5. --6. Yes you are correct. In the generator config it's set in |
Many, many thanks! I'll come back around once I manage to give all this a shot and let you know how I fare. |
Hi sir, in training autoencoder why did you train even hwr while we had train another hwr. What happened if we just train the encoder network. |
It should work fine to just train a normal autoencoder. The thought was that including hwr as part of the encoder's task would force it to learn character features. Including hwr in the encoder does improve performance, but I don't remember how much. It was probably fairly small. |
Yup thanks sir. There are many good ideas from you. I will try to train both when I handle nan issue in hwr model of the encoder's task and bendmark them again. |
Did you make any progress, @SB2020-eye ? |
Hi. How would I run this on one person's handwriting? I have images of hundreds of pages of the handwriting of this person. But I don't comprehend what to do. (Sorry!) For example, how do I make a dataset? Then I need to train it on that dataset, right? Then how do I get it to write out the text I want it to write in that handwriting style?
Also, if the original writing is in Latin, do I need to add a Latin word dataset (text file)?
Thanks so much!
The text was updated successfully, but these errors were encountered: