-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/fix: Update loss function for new model output shape
* The model output tensor shape changed with the introduction of the AnchorBox layer. This updates the loss function accordingly. * A new argument `n_neg_min` was introduced. It allows to optionally specify a minimum number of negatives to enter the loss computation in batches where there are very few, or even none at all, positives. * Fix: Fixed a bug where the loss function would divide by zero if there are no positives in a batch. The function is now robust to this case.
- Loading branch information
1 parent
0ab5a34
commit d533214
Showing
1 changed file
with
46 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters