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

Bug: thumbnail image resize #3

Open
bofei5675 opened this issue May 4, 2023 · 1 comment
Open

Bug: thumbnail image resize #3

bofei5675 opened this issue May 4, 2023 · 1 comment
Assignees

Comments

@bofei5675
Copy link

If you input image with clicked coordinates, I found the app throw an error. The error is caused by two masks has different size when computing IOU,.

It cause by the code in app.py:

# about line 161-165
w, h = pil_image.size
#if w > 800:
#    pil_image.thumbnail((800, 800*h/w))
#    input_image.thumbnail((800, 800*h/w))
#    coords = str(int(int(coords.split(',')[0]) * 800 / w)) + ',' + str(int(int(coords.split(',')[1]) * 800 / w))

comment thumbnail methods fix this issue but not sure I should do this.

@Luodian Luodian self-assigned this May 4, 2023
@Luodian
Copy link
Collaborator

Luodian commented May 4, 2023

Indeed we found it could cause error previously (@Jingkang50), we will fix it soon!

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

3 participants