otuva / handwriting-synthesis

Handwriting Synthesis with RNNs ✏️ (Migrated to TensorFlow v2)
68 stars 31 forks source link

Missing "Q, X, Z" #10

Open intothephone opened 1 year ago

intothephone commented 1 year ago

If the sentence contains any of the letter: Q, X or Z, hand.write() will fail.

I've checked the code, seems that these letters are not in alphabet in operations.py, but why?

bryandam commented 12 months ago

See my answer here to a similar question in the parent project: https://github.com/sjvasquez/handwriting-synthesis/issues/44#issuecomment-1697877321

TL;DR: Those characters, as well as a few others, are not represented in the sample set used to build the model. Hense the model does really poorly with them. So even if the code let you write those characters they aren't actually going to product legible results: image