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 26
26
class GIOULoss (tf .keras .losses .Loss ):
27
27
"""Implements the GIOU loss function.
28
28
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.
32
32
33
33
Usage:
34
34
@@ -73,7 +73,7 @@ def giou_loss(y_true, y_pred):
73
73
Args
74
74
y_true: true targets tensor.
75
75
y_pred: predictions tensor.
76
-
76
+
77
77
Returns:
78
78
GIOU loss float `Tensor`.
79
79
"""
Original file line number Diff line number Diff line change 25
25
26
26
@test_utils .run_all_in_graph_and_eager_modes
27
27
class GIOULossTest (tf .test .TestCase ):
28
+ """GIOU test class"""
28
29
def test_config (self ):
29
30
gl_obj = GIOULoss (
30
31
reduction = tf .keras .losses .Reduction .NONE , name = 'giou_loss' )
You can’t perform that action at this time.
0 commit comments