Skip to content

Bug: thumbnail image resize #3

@bofei5675

Description

@bofei5675

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions