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
add9b37e
Unverified
Commit
add9b37e
authored
Oct 11, 2021
by
srihari-humbarwadi
Browse files
added `instance_segmentation_weight` config param
parent
b547ab67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
...a/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
+1
-0
official/vision/beta/projects/panoptic_maskrcnn/tasks/panoptic_maskrcnn.py
...eta/projects/panoptic_maskrcnn/tasks/panoptic_maskrcnn.py
+4
-1
No files found.
official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
View file @
add9b37e
...
...
@@ -106,6 +106,7 @@ class Losses(maskrcnn.Losses):
default_factory
=
list
)
semantic_segmentation_use_groundtruth_dimension
:
bool
=
True
semantic_segmentation_top_k_percent_pixels
:
float
=
1.0
instance_segmentation_weight
:
float
=
1.0
semantic_segmentation_weight
:
float
=
1.0
...
...
official/vision/beta/projects/panoptic_maskrcnn/tasks/panoptic_maskrcnn.py
View file @
add9b37e
...
...
@@ -178,6 +178,8 @@ class PanopticMaskRCNNTask(maskrcnn.MaskRCNNTask):
ignore_label
=
params
.
semantic_segmentation_ignore_label
,
use_groundtruth_dimension
=
use_groundtruth_dimension
,
top_k_percent_pixels
=
params
.
semantic_segmentation_top_k_percent_pixels
)
instance_segmentation_weight
=
params
.
instance_segmentation_weight
semantic_segmentation_weight
=
params
.
semantic_segmentation_weight
losses
=
super
(
PanopticMaskRCNNTask
,
self
).
build_losses
(
...
...
@@ -190,7 +192,8 @@ class PanopticMaskRCNNTask(maskrcnn.MaskRCNNTask):
labels
[
'gt_segmentation_mask'
])
model_loss
=
(
maskrcnn_loss
+
semantic_segmentation_weight
*
segmentation_loss
)
instance_segmentation_weight
*
maskrcnn_loss
+
semantic_segmentation_weight
*
segmentation_loss
)
total_loss
=
model_loss
if
aux_losses
:
...
...
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