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
531eeb93
Unverified
Commit
531eeb93
authored
Aug 11, 2021
by
srihari-humbarwadi
Browse files
fixed missing batch dim in outputs
parent
34cd4fa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/panoptic_segmentation_generator.py
...skrcnn/modeling/layers/panoptic_segmentation_generator.py
+2
-7
No files found.
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/panoptic_segmentation_generator.py
View file @
531eeb93
...
@@ -263,13 +263,8 @@ class PanopticSegmentationGenerator(tf.keras.layers.Layer):
...
@@ -263,13 +263,8 @@ class PanopticSegmentationGenerator(tf.keras.layers.Layer):
category_mask
.
append
(
results
[
'category_mask'
])
category_mask
.
append
(
results
[
'category_mask'
])
instance_mask
.
append
(
results
[
'instance_mask'
])
instance_mask
.
append
(
results
[
'instance_mask'
])
if
len
(
category_mask
)
==
1
:
category_mask
=
tf
.
stack
(
category_mask
,
axis
=
0
)
category_mask
=
tf
.
expand_dims
(
category_mask
[
0
],
axis
=
0
)
instance_mask
=
tf
.
stack
(
instance_mask
,
axis
=
0
)
instance_mask
=
tf
.
expand_dims
(
instance_mask
[
0
],
axis
=
0
)
else
:
category_mask
=
tf
.
concat
(
category_mask
,
axis
=
0
)
instance_mask
=
tf
.
concat
(
instance_mask
,
axis
=
0
)
outputs
=
{
outputs
=
{
'category_mask'
:
tf
.
cast
(
category_mask
,
dtype
=
tf
.
int32
),
'category_mask'
:
tf
.
cast
(
category_mask
,
dtype
=
tf
.
int32
),
...
...
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