提交 d09a24c8 编写于 作者: lytk1's avatar lytk1 提交者: qingqing01

Fix a small error of face_detection reader (#2456)

上级 62d2f3d2
......@@ -309,7 +309,7 @@ def infer(settings, image_path):
def batch_reader():
img = Image.open(image_path)
if img.mode == 'L':
img = im.convert('RGB')
img = img.convert('RGB')
im_width, im_height = img.size
if settings.resize_width and settings.resize_height:
img = img.resize((settings.resize_width, settings.resize_height),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册