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
9ab3bf77
"tests/vscode:/vscode.git/clone" did not exist on "2d94c7838e273c40920ffd6d24d724357add7f2d"
Unverified
Commit
9ab3bf77
authored
Oct 22, 2021
by
srihari-humbarwadi
Browse files
fixed dtype mismatch
parent
43081990
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/modeling/layers/paste_masks.py
...projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
+2
-2
No files found.
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
View file @
9ab3bf77
...
...
@@ -112,8 +112,8 @@ class PasteMasks(tf.keras.layers.Layer):
masks
,
boxes
=
inputs
y0
,
x0
,
y1
,
x1
=
tf
.
split
(
boxes
,
4
,
axis
=
1
)
x_coords
=
tf
.
range
(
0
,
self
.
_output_size
[
1
],
dtype
=
tf
.
float32
)
y_coords
=
tf
.
range
(
0
,
self
.
_output_size
[
0
],
dtype
=
tf
.
float32
)
x_coords
=
tf
.
range
(
0
,
self
.
_output_size
[
1
],
dtype
=
boxes
.
dtype
)
y_coords
=
tf
.
range
(
0
,
self
.
_output_size
[
0
],
dtype
=
boxes
.
dtype
)
x_coords
=
(
x_coords
-
x0
)
/
(
x1
-
x0
)
*
2
-
1
y_coords
=
(
y_coords
-
y0
)
/
(
y1
-
y0
)
*
2
-
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