handwriting-synthesis
handwriting-synthesis copied to clipboard
How to align the text to the left?
Output is aligned to the center, how do I align it to the left?
Thanks
did you find a solution??
@shaikhalid yes
Comment out this line in demo.py : strokes[:, 0] += (view_width - strokes[:, 0].max()) / 2
@shaikhalid @supersonic71
This will vary the left start position so it's more natural.
strokes[:, 0] += (view_width + random.randint(-15, 15) - strokes[:, 0].min())
@shaikhalid @supersonic71
This will vary the left start position so it's more natural.
strokes[:, 0] += (view_width + random.randint(-15, 15) - strokes[:, 0].min())
For me it works better when I replace it with
strokes[:, 0] += (random.randint(0, 30) - strokes[:, 0].min())