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
401b105b
".github/git@developer.sourcefind.cn:OpenDAS/apex.git" did not exist on "a56e88dc7ae83b7771f5fe4bb06bc626a23ceec7"
Unverified
Commit
401b105b
authored
Aug 25, 2021
by
srihari-humbarwadi
Browse files
fixed dtype mismatch in `_paste_mask`
parent
ed21b802
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/panoptic_segmentation_generator.py
...skrcnn/modeling/layers/panoptic_segmentation_generator.py
+2
-1
No files found.
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/panoptic_segmentation_generator.py
View file @
401b105b
...
@@ -92,7 +92,8 @@ class PanopticSegmentationGenerator(tf.keras.layers.Layer):
...
@@ -92,7 +92,8 @@ class PanopticSegmentationGenerator(tf.keras.layers.Layer):
super
(
PanopticSegmentationGenerator
,
self
).
__init__
(
**
kwargs
)
super
(
PanopticSegmentationGenerator
,
self
).
__init__
(
**
kwargs
)
def
_paste_mask
(
self
,
box
,
mask
):
def
_paste_mask
(
self
,
box
,
mask
):
pasted_mask
=
tf
.
ones
(
self
.
_output_size
+
[
1
])
*
self
.
_void_class_label
pasted_mask
=
tf
.
ones
(
self
.
_output_size
+
[
1
],
dtype
=
mask
.
dtype
)
*
self
.
_void_class_label
ymin
=
box
[
0
]
ymin
=
box
[
0
]
xmin
=
box
[
1
]
xmin
=
box
[
1
]
...
...
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