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
c5afee40
"...git@developer.sourcefind.cn:OpenDAS/torch-cluster.git" did not exist on "e95d789bfda0947dbfb1fe8c26de6c9eddb2db71"
Unverified
Commit
c5afee40
authored
Mar 18, 2022
by
srihari-humbarwadi
Browse files
cast to original dtype after resizing
parent
177e2d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/fusion_layers.py
...ojects/panoptic_maskrcnn/modeling/layers/fusion_layers.py
+1
-0
No files found.
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/fusion_layers.py
View file @
c5afee40
...
@@ -142,6 +142,7 @@ class PanopticDeepLabFusion(tf.keras.layers.Layer):
...
@@ -142,6 +142,7 @@ class PanopticDeepLabFusion(tf.keras.layers.Layer):
x
=
tf
.
image
.
resize
(
x
=
tf
.
image
.
resize
(
x
,
size
=
[
shape
[
1
],
shape
[
2
]],
x
,
size
=
[
shape
[
1
],
shape
[
2
]],
method
=
self
.
_config_dict
[
'interpolation'
])
method
=
self
.
_config_dict
[
'interpolation'
])
x
=
tf
.
cast
(
x
,
dtype
=
feature
.
dtype
)
x
=
tf
.
concat
([
x
,
feature
],
axis
=
self
.
_channel_axis
)
x
=
tf
.
concat
([
x
,
feature
],
axis
=
self
.
_channel_axis
)
x
=
self
.
_fusion_convs
[
i
](
x
)
x
=
self
.
_fusion_convs
[
i
](
x
)
...
...
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