Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
0eb186e9
Unverified
Commit
0eb186e9
authored
Apr 29, 2022
by
srihari-humbarwadi
Browse files
added docstrings
parent
b4cd3351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/vision/beta/projects/panoptic_maskrcnn/losses/panoptic_deeplab_losses.py
...jects/panoptic_maskrcnn/losses/panoptic_deeplab_losses.py
+4
-1
No files found.
official/vision/beta/projects/panoptic_maskrcnn/losses/panoptic_deeplab_losses.py
View file @
0eb186e9
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment