提交 f858af81 编写于 作者: A A. Unique TensorFlower 提交者: TF Object Detection Team

Bugfix in resize_to_range to allow image with arbitrary number of channels.

PiperOrigin-RevId: 341573525
上级 0b7646e2
......@@ -2937,7 +2937,7 @@ def resize_to_range(image,
for i in range(len(channels))
],
axis=2)
new_image.set_shape([max_dimension, max_dimension, 3])
new_image.set_shape([max_dimension, max_dimension, len(channels)])
result = [new_image]
if masks is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册