未验证 提交 d6f36b14 编写于 作者: W wangguanzhong 提交者: GitHub

support BatchRandomResize for 2-D input (#3132)

上级 7a732663
......@@ -136,7 +136,8 @@ class BatchRandomResize(BaseOperator):
def __call__(self, samples, context=None):
if self.random_size:
target_size = np.random.choice(self.target_size)
index = np.random.choice(len(self.target_size))
target_size = self.target_size[index]
else:
target_size = self.target_size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册