tfa.losses.GIoULoss | TensorFlow Addons
www.tensorflow.org › addons › api_docsNov 15, 2021 · tfa.losses.GIoULoss ( mode: str = 'giou', reduction: str = tf.keras.losses.Reduction.AUTO, name: Optional [str] = 'giou_loss' ) GIoU loss was first introduced in the Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression . GIoU is an enhancement for models which use IoU in object detection.
Losses - Keras
keras.io › api › lossesThe add_loss() API. Loss functions applied to the output of a model aren't the only way to create losses. When writing the call method of a custom layer or a subclassed model, you may want to compute scalar quantities that you want to minimize during training (e.g. regularization losses).