[go: nahoru, domu]

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

Rescale bounding_box coordinates for object detection datasets for padded batch #3900

Open
pranavjadhav001 opened this issue Apr 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pranavjadhav001
Copy link

In conjunction with issue #3897 , I see it as a bug that we are not rescaling the bbox coordinates with respect to padded batch images.

Possible solution
in case of batch_size=1 return unpadded image and bbox
for batch_size > 1 rescale bbox coordinates to new_padded_image_size/old_image size

Other alternatives
Rightnow the workaround is using map and lambda functions as shown in the above link i.e save old image shape in the dict and use it to rescale or create a entirely new map function which resizes each image not pad and rescales bbox accordingly

@pranavjadhav001 pranavjadhav001 added the enhancement New feature or request label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant