Closed dhruvdcoder closed 3 years ago
The denominator can be zero and result in NaN output. Adding a small epsilon will help.
https://github.com/iesl/box-embeddings/blob/444e3e8f5b19b7d64ef41b2ca7cbc400365c3843/box_embeddings/modules/pooling/bag_of_boxes.py#L23
The denominator can be zero and result in NaN output. Adding a small epsilon will help.
https://github.com/iesl/box-embeddings/blob/444e3e8f5b19b7d64ef41b2ca7cbc400365c3843/box_embeddings/modules/pooling/bag_of_boxes.py#L23