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

Use np.isclose in check_bbox #958

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Use np.isclose in check_bbox #958

merged 4 commits into from
Jul 15, 2021

Conversation

Dipet
Copy link
Collaborator

@Dipet Dipet commented Jul 10, 2021

To avoid problems with float numbers, added check that bbox values are close to 0 and 1 if main condition 0 <= value <= 1 is False.

Example bbox in albumentations format: (0.6265270002186298, 0.9481956716626883, 0.700299333781004, 1.000000024214387, 0.0)
I took example from this discussion: #924

@Dipet Dipet merged commit 929cbd8 into master Jul 15, 2021
@Dipet Dipet deleted the check_bbox_is_close_to_edge branch July 15, 2021 10:11
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.

None yet

4 participants