Skip to content
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

DocTr is introducing distortions. Am I doing anything wrong? #17

Open
pavanbvns opened this issue Nov 17, 2022 · 1 comment
Open

DocTr is introducing distortions. Am I doing anything wrong? #17

pavanbvns opened this issue Nov 17, 2022 · 1 comment

Comments

@pavanbvns
Copy link

Hello there,

I am using DocTr to enhance quality of few images in my project and I am finding that DocTr is introducing distortions in the file output. Pls let me know if I am using it incorrectly.

Steps I followed.

  1. Cloned the DocTr project to my google drive.
  2. Copied the 3 .pth files and the image to desired location.
  3. Ran the following command in the colab.
    %cd /content/drive/MyDrive/MSProject/DocTr-cloned-repo/DocTr/
    ! python inference.py --ill_rec True --distorrted_path '/content/drive/MyDrive/MSProject/temp/' --isave_path '/content/drive/MyDrive/MSProject/DocTr_output_images/'

The original file that has been used is this
image

The image output from DocTr is this
image

Comparison for ease of reference
Untitled_1

Please let me know if this is a desired behavior or am I doing anything wrong

Request your immediate response, as I have to conclude my research and submit my project as a part of my MS program.

Thank you in advance

@fh2019ustc
Copy link
Owner

Hi, I am sorry for the late reply.
For our DocTr, we aim to cope with the document images captured by smartphones.
In your case, the input image seems to have been binarized, different from the data distribution used in our training.
I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants