提交 6ece2f84 编写于 作者: W Waleed

Fix PyramidROIAlign output shape

As discussed in: https://github.com/matterport/Mask_RCNN/issues/919
上级 c68f8a8f
......@@ -442,7 +442,8 @@ class PyramidROIAlign(KE.Layer):
pooled = tf.gather(pooled, ix)
# Re-add the batch dimension
pooled = tf.expand_dims(pooled, 0)
shape = tf.concat([tf.shape(boxes)[:2], tf.shape(pooled)[1:]], axis=0)
pooled = tf.reshape(pooled, shape)
return pooled
def compute_output_shape(self, input_shape):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册