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

Reasoning behind relative normalization using page_width * np.sqrt(2) #11

Open
saifullah3396 opened this issue Apr 18, 2024 · 0 comments

Comments

@saifullah3396
Copy link

Hello,

I am trying to setup the dataset that you've provided but I am not quite able to understand why do you normalize the bounding boxes using a multiplication factor of page_width * np.sqrt(2) instead of just simply dividing the boxes with both width and height of the boxes? I draw the boxes with this normalization and they don't align up with the token positions in the image position. When i normalize it with width and height of the pages they align alright. What is the specific reason behind this? Thank you.

The code lines where I see the issue:
https://github.com/due-benchmark/baselines/blob/2378c02238a04432c7e1401cbe471d57aaf26ff4/benchmarker/data/data_converter.py#L496C9-L500C26

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

1 participant