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

Cannot handle cases with zero intersection #82

Open
fnuabhimanyu opened this issue Nov 13, 2021 · 0 comments
Open

Cannot handle cases with zero intersection #82

fnuabhimanyu opened this issue Nov 13, 2021 · 0 comments

Comments

@fnuabhimanyu
Copy link

area_intersection = torch.histc(intersection, bins=K, min=0, max=K-1)
This line of code works if there are non-zero instances of intersection between the output and target. There should be a check for this.

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

No branches or pull requests

1 participant