Repository navigation
Remove handwritten text generation - #370
Merged
Merged
Conversation
It required TensorFlow 1.13 and numpy<1.17, which only install on Python <= 3.7, so -hw has not worked on any supported Python version. - Delete the TensorFlow model (44 MB), its generator, and requirements-hw.txt - Keep the -hw flag and is_handwritten parameter for compatibility; both now fail with a clear message instead of a missing-module error - Drop the 'Missing modules for handwritten text generation.' message printed on every import - Remove the README section and its sample images
Belval
added a commit
to Belval/TextRecognitionDataGeneratorDocs
that referenced
this pull request
Nov 26, 2026
The feature is being removed from trdg (Belval/TextRecognitionDataGenerator#370): it required TensorFlow 1.13, which no supported Python can install.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handwritten generation (
-hw) needstensorflow>=1.13.1,<1.14andnumpy<1.17, which only install on Python ≤ 3.7. It hasn't worked on any Python trdg supports (3.10–3.15).trdg/handwritten_text_generator.py, the 44 MBtrdg/handwritten_model/, andrequirements-hw.txt.-hwCLI flag and theis_handwrittenparameter so existing scripts and positionalFakeTextDataGenerator.generatecalls don't break; using them now fails with a clear "removed in 1.9.0" message instead of a missing-module error.-hwexits non-zero with the message;is_handwritten=TrueraisesValueError.Verified locally on Python 3.15: 64 tests pass (network tests skipped).