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
ce6ee0b2
Commit
ce6ee0b2
authored
Jan 19, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Jan 19, 2021
Browse files
Internal change
PiperOrigin-RevId: 352689864
parent
3219a8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
official/vision/keras_cv/layers/deeplab.py
official/vision/keras_cv/layers/deeplab.py
+5
-2
No files found.
official/vision/keras_cv/layers/deeplab.py
View file @
ce6ee0b2
...
@@ -142,7 +142,10 @@ class SpatialPyramidPooling(tf.keras.layers.Layer):
...
@@ -142,7 +142,10 @@ class SpatialPyramidPooling(tf.keras.layers.Layer):
epsilon
=
self
.
batchnorm_epsilon
),
epsilon
=
self
.
batchnorm_epsilon
),
tf
.
keras
.
layers
.
Activation
(
self
.
activation
),
tf
.
keras
.
layers
.
Activation
(
self
.
activation
),
tf
.
keras
.
layers
.
experimental
.
preprocessing
.
Resizing
(
tf
.
keras
.
layers
.
experimental
.
preprocessing
.
Resizing
(
height
,
width
,
interpolation
=
self
.
interpolation
)
height
,
width
,
interpolation
=
self
.
interpolation
,
dtype
=
tf
.
float32
)
]))
]))
self
.
aspp_layers
.
append
(
pool_sequential
)
self
.
aspp_layers
.
append
(
pool_sequential
)
...
@@ -165,7 +168,7 @@ class SpatialPyramidPooling(tf.keras.layers.Layer):
...
@@ -165,7 +168,7 @@ class SpatialPyramidPooling(tf.keras.layers.Layer):
training
=
tf
.
keras
.
backend
.
learning_phase
()
training
=
tf
.
keras
.
backend
.
learning_phase
()
result
=
[]
result
=
[]
for
layer
in
self
.
aspp_layers
:
for
layer
in
self
.
aspp_layers
:
result
.
append
(
layer
(
inputs
,
training
=
training
))
result
.
append
(
tf
.
cast
(
layer
(
inputs
,
training
=
training
)
,
inputs
.
dtype
)
)
result
=
tf
.
concat
(
result
,
axis
=-
1
)
result
=
tf
.
concat
(
result
,
axis
=-
1
)
result
=
self
.
projection
(
result
,
training
=
training
)
result
=
self
.
projection
(
result
,
training
=
training
)
return
result
return
result
...
...
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