bert icon indicating copy to clipboard operation
bert copied to clipboard

fix

Open meiqicheng opened this issue 2 years ago • 0 comments

原始的代码: for index, (*box, conf, cls) in enumerate(o.detach().cpu().numpy()): targets.append([i, cls, *list(*xyxy2xywh(np.array(box)[None])), conf, *list(kpts.detach().cpu().numpy()[index])]) 修改后的代码 for index, (*box, conf, cls) in enumerate(o.detach().cpu().numpy()): # box格式为xyxy,而不是cxywh,不需要执行转换函数xyxy2xywh() targets.append([i, cls, *list(box), conf, *list(kpts.detach().cpu().numpy()[index])])

meiqicheng avatar Aug 05 '22 07:08 meiqicheng