We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the IoU function
#Intersection area inter_area = torch.clamp(inter_rect_x2 - inter_rect_x1 + 1, min=0) * torch.clamp(inter_rect_y2 - inter_rect_y1 + 1, min=0) inter_areaa = torch.clamp(inter_rect_x2 - inter_rect_x1, min=0) * torch.clamp(inter_rect_y2 - inter_rect_y1, min=0)
what is the reason for the + 1 while calculating the area?
Is it to avoid 0 division error for calculating IoU? But won't it affect the value by adding a constant to the area?
The text was updated successfully, but these errors were encountered:
It's about to avoid 0/0 situation.
Sorry, something went wrong.
No branches or pull requests
In the IoU function
#Intersection area inter_area = torch.clamp(inter_rect_x2 - inter_rect_x1 + 1, min=0) * torch.clamp(inter_rect_y2 - inter_rect_y1 + 1, min=0) inter_areaa = torch.clamp(inter_rect_x2 - inter_rect_x1, min=0) * torch.clamp(inter_rect_y2 - inter_rect_y1, min=0)
what is the reason for the + 1 while calculating the area?
Is it to avoid 0 division error for calculating IoU? But won't it affect the value by adding a constant to the area?
The text was updated successfully, but these errors were encountered: