This is the code behind the following post: https://gardarandri.github.io/TextSharpener/.
Currently the code needs cleaning but can be tinkered with.
- model/model.py is used for training and inference.
- generator/GenImages.py is used to generate training data.
- savedmodels contains a pretrained model.
The following are examples from the validation set after training.
Left: The original image, Middle: The blurred image, Right: The outputted image after training.