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
9e2fbc6b
Unverified
Commit
9e2fbc6b
authored
Mar 18, 2022
by
srihari-humbarwadi
Browse files
fixed bug in calculating `total_loss`
parent
4c75cd7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/beta/projects/panoptic_maskrcnn/tasks/panoptic_deeplab.py
...beta/projects/panoptic_maskrcnn/tasks/panoptic_deeplab.py
+2
-2
No files found.
official/vision/beta/projects/panoptic_maskrcnn/tasks/panoptic_deeplab.py
View file @
9e2fbc6b
...
@@ -182,9 +182,9 @@ class PanopticDeeplabTask(base_task.Task):
...
@@ -182,9 +182,9 @@ class PanopticDeeplabTask(base_task.Task):
loss_config
.
center_heatmap_loss_weight
*
instance_center_heatmap_loss
+
loss_config
.
center_heatmap_loss_weight
*
instance_center_heatmap_loss
+
loss_config
.
center_offset_loss_weight
*
instance_center_offset_loss
)
loss_config
.
center_offset_loss_weight
*
instance_center_offset_loss
)
total_loss
=
model_loss
if
aux_losses
:
if
aux_losses
:
reg_loss
=
tf
.
add_n
(
aux_losses
)
total_loss
+=
tf
.
add_n
(
aux_losses
)
total_loss
=
model_loss
+
reg_loss
losses
=
{
losses
=
{
'total_loss'
:
total_loss
,
'total_loss'
:
total_loss
,
...
...
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