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
0fa40953
Unverified
Commit
0fa40953
authored
Mar 20, 2022
by
srihari-humbarwadi
Browse files
fixed `sample_weight` shape bug in instance center losses
parent
5d7d327e
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 @
0fa40953
...
...
@@ -143,10 +143,10 @@ class PanopticDeeplabTask(base_task.Task):
labels
[
'semantic_weights'
],
dtype
=
model_outputs
[
'instance_centers_heatmap'
].
dtype
)
things_mask
=
tf
.
cast
(
labels
[
'things_mask'
],
tf
.
squeeze
(
labels
[
'things_mask'
],
axis
=
3
),
dtype
=
model_outputs
[
'instance_centers_heatmap'
].
dtype
)
valid_mask
=
tf
.
cast
(
labels
[
'valid_mask'
],
tf
.
squeeze
(
labels
[
'valid_mask'
],
axis
=
3
),
dtype
=
model_outputs
[
'instance_centers_heatmap'
].
dtype
)
segmentation_loss
=
segmentation_loss_fn
(
...
...
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