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

Image roi bug in OwlPredictor leads to cropped encoding #24

Open
sulthansf opened this issue Mar 8, 2024 · 1 comment · May be fixed by #25
Open

Image roi bug in OwlPredictor leads to cropped encoding #24

sulthansf opened this issue Mar 8, 2024 · 1 comment · May be fixed by #25

Comments

@sulthansf
Copy link

There is a bug in the OwlPredictor class as the image roi dimensions are incorrectly specified. This bug causes incorrect encoding of image regions of interest (rois) as the height and width are swapped. This effectively causes the images to get cropped before being fed to the encoder. Please check the attached images for an example of the input image and the encoded image with pad_square param set to true.

image

roi_image

@lyc233333
Copy link

thanks a lot for your fix! i was just facing the issue that i got different results from a fliped image . this fix the cropped problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants