File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2626class GIOULoss (tf .keras .losses .Loss ):
2727 """Implements the GIOU loss function.
2828
29- GIOU loss was first introduced in the Generalized Intersection over Union paper
30- (https://giou.stanford.edu/GIoU.pdf). GIOU is a enhance for model which use IOU
31- in object detection.
29+ GIOU loss was first introduced in the Generalized Intersection over Union
30+ paper (https://giou.stanford.edu/GIoU.pdf). GIOU is a enhance for model
31+ which use IOU in object detection.
3232
3333 Usage:
3434
@@ -73,7 +73,7 @@ def giou_loss(y_true, y_pred):
7373 Args
7474 y_true: true targets tensor.
7575 y_pred: predictions tensor.
76-
76+
7777 Returns:
7878 GIOU loss float `Tensor`.
7979 """
Original file line number Diff line number Diff line change 2525
2626@test_utils .run_all_in_graph_and_eager_modes
2727class GIOULossTest (tf .test .TestCase ):
28+ """GIOU test class"""
2829 def test_config (self ):
2930 gl_obj = GIOULoss (
3031 reduction = tf .keras .losses .Reduction .NONE , name = 'giou_loss' )
You can’t perform that action at this time.
0 commit comments