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

about box_widths in data_utils.py #41

Open
LXYTSOS opened this issue Jan 16, 2020 · 1 comment
Open

about box_widths in data_utils.py #41

LXYTSOS opened this issue Jan 16, 2020 · 1 comment

Comments

@LXYTSOS
Copy link

LXYTSOS commented Jan 16, 2020

I don't understand why did you divide the text_polyses by 4: x1, y1, x2, y2, x3, y3, x4, y4 = text_polyses[i] / 4, and what this line of code doing: width_box = math.ceil(8 * box_w / box_h), what's the meaning of 8 * box_w / box_h

@Pay20Y
Copy link
Owner

Pay20Y commented Jan 17, 2020

  1. Dividing by 4 is because of the size of feature map to apply RoI Rotate is a quarter of the input images
  2. The feature generated by RoI Rotate is with the size of (8 * ?), so 8 * box_w / box_h is to compute the width of RoI in a keep-ratio mode

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