Unverified Commit 0eb186e9 authored by srihari-humbarwadi's avatar srihari-humbarwadi
Browse files

added docstrings

parent b4cd3351
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
"""Losses used for panoptic deeplab model.""" """Losses used for panoptic deeplab model."""
# Import libraries
import tensorflow as tf import tensorflow as tf
from official.modeling import tf_utils from official.modeling import tf_utils
...@@ -109,6 +108,8 @@ class WeightedBootstrappedCrossEntropyLoss: ...@@ -109,6 +108,8 @@ class WeightedBootstrappedCrossEntropyLoss:
class CenterHeatmapLoss: class CenterHeatmapLoss:
"""Center heatmap loss."""
def __init__(self): def __init__(self):
self._loss_fn = tf.losses.mean_squared_error self._loss_fn = tf.losses.mean_squared_error
...@@ -127,6 +128,8 @@ class CenterHeatmapLoss: ...@@ -127,6 +128,8 @@ class CenterHeatmapLoss:
return tf_utils.safe_mean(loss) return tf_utils.safe_mean(loss)
class CenterOffsetLoss: class CenterOffsetLoss:
"""Center offset loss."""
def __init__(self): def __init__(self):
self._loss_fn = tf.losses.mean_absolute_error self._loss_fn = tf.losses.mean_absolute_error
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment