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

Fix Detection Offset Bug #621

Merged

Conversation

NickHerrig
Copy link
Collaborator

Description

When using the detection offset block, one could set values larger than the image demensions and would result in over offset and null values. This can also be seen when detections are near the edge of the images.
This PR fixes the detection offset block to the image demensions provided.

detection_offset_bug_fix.mp4

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a test case or example of how you tested the change?

New unit test which tests extremely large offsets.

@NickHerrig NickHerrig changed the title Fix unbound detection offset block bug, include unit tests Fix Detection Offset Bug Aug 30, 2024
Copy link
Collaborator

@PawelPeczek-Roboflow PawelPeczek-Roboflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch

@PawelPeczek-Roboflow PawelPeczek-Roboflow merged commit c43af93 into main Aug 30, 2024
58 checks passed
@PawelPeczek-Roboflow PawelPeczek-Roboflow deleted the nick/bug-fix/detection-offset-null-images branch August 30, 2024 06:44
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

Successfully merging this pull request may close these issues.

2 participants