提交 dba4432d 编写于 作者: F FlyingQianMM

fix visualdl bugs

上级 764455a5
...@@ -191,9 +191,9 @@ def det_compose(im, ...@@ -191,9 +191,9 @@ def det_compose(im,
bboxes[:, 3] = bboxes[:, 3] * h_scale bboxes[:, 3] = bboxes[:, 3] * h_scale
else: else:
bboxes = outputs[2]['gt_bbox'] bboxes = outputs[2]['gt_bbox']
if not isinstance( if not isinstance(op, (
op, pdx.cv.transforms.det_transforms.RandomHorizontalFlip,
pdx.cv.transforms.det_transforms.RandomHorizontalFlip): pdx.cv.transforms.det_transforms.Padding)):
for i in range(bboxes.shape[0]): for i in range(bboxes.shape[0]):
bbox = bboxes[i] bbox = bboxes[i]
cname = labels[outputs[2]['gt_class'][i][0] - 1] cname = labels[outputs[2]['gt_class'][i][0] - 1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册