-
Notifications
You must be signed in to change notification settings - Fork 96
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
Images are very distorted #36
Comments
Hi, This engine often generates poorly images. There are 3 problems in this engine. 1. Color difference thresholdCurrently, this engine coverts to grayscale images and checks color differences at the border of text and background. If the color difference does not exceed a given threshold, this image is skipped. synthtiger/examples/synthtiger/template.py Line 274 in c731f32
2. Color difference between text and text effectThe first solution has a limitation. 3. Post-processingCurrently, this engine does not consider post-processing (ex1 "가?", ex3 "긍정적"). synthtiger/examples/synthtiger/template.py Lines 118 to 119 in c731f32
if not _check_visibility(image, fg_image[..., 3]):
raise RuntimeError("Text is not visible") I introduced some solutions, but these have not been tested. Thanks. |
@moonbings I was facing a similar issue. Solution 1 you provided has helped to some extent. the word is: દીધું! @khawar-islam were you able to solve this issue? |
@aadit2697 No, I am still facing same issue and of course it affects training |
@khawar-islam style: |
@aadit2697 thank you! What do you think about two parameters |
You could try it out. Personally, for my use case, I used default values for max and min length. Although If your words are smaller than the 25-character length, you could give it a shot |
Hello @moonbings During synthetic dataset generation, some image are very distorted and i don't have any idea how to fix it. I played with some parameters but it didnt work for me. Any solution?
Samples image are not clear
The text was updated successfully, but these errors were encountered: