提交 4b76c385 编写于 作者: W weishengyu

dbg

上级 a5089348
...@@ -73,6 +73,8 @@ class UnifiedResize(object): ...@@ -73,6 +73,8 @@ class UnifiedResize(object):
self.resize_func = cv2.resize self.resize_func = cv2.resize
def __call__(self, src, size): def __call__(self, src, size):
if isinstance(size, list):
size = tuple(size)
return self.resize_func(src, size) return self.resize_func(src, size)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册