提交 d4b0bfd6 编写于 作者: L LDOUBLEV

fix img shape not match when concat

上级 0322d0e3
......@@ -94,6 +94,8 @@ class EvalTestReader(object):
batch_outs = []
for img_path in img_list:
img = cv2.imread(img_path)
if len(list(img.shape)) == 2 or img.shape[2] == 1:
img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
if img is None:
logger.info("load image error:" + img_path)
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册