未验证 提交 b279127d 编写于 作者: C chenjian 提交者: GitHub

Fix bug in merge_images function

上级 611ab394
......@@ -35,11 +35,11 @@ def padding_image(img, height, width):
def merge_images(imgs, dataformats, scale=1.0, rows=-1):
assert rows <= len(imgs), "rows should not greater than numbers of pictures"
channel = imgs[0].shape[2]
# convert format of each image to `hwc`
for i, img in enumerate(imgs):
imgs[i] = convert_to_HWC(img, dataformats)
channel = imgs[0].shape[2]
height = -1
width = -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册