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

the diou loss function has bugs? #6

Open
chenying99 opened this issue Sep 2, 2021 · 0 comments
Open

the diou loss function has bugs? #6

chenying99 opened this issue Sep 2, 2021 · 0 comments

Comments

@chenying99
Copy link

chenying99 commented Sep 2, 2021

the file loss.py  in line 181  182 183:

euclidean = tf.linalg.norm(b2_center - b1_center)
diag_length = tf.linalg.norm([enclose_ymax - enclose_ymin, enclose_xmax - enclose_xmin])
diou = iou - (euclidean ** 2) / (diag_length ** 2)    

the result of tf.linalg.norm is one value, but the train dataset has many samples (many bboxes)

diou = iou - (euclidean ** 2) / (diag_length ** 2)

the dimensions of iou is not equal to the dimensions of (euclidean ** 2) / (diag_length ** 2) ?

the last dimensions of iou is the number of bboxes, the last dimensions of (euclidean ** 2) / (diag_length ** 2) is one

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