updates
This commit is contained in:
parent
793f6389dc
commit
6235d76976
|
@ -549,7 +549,7 @@ def non_max_suppression(prediction, conf_thres=0.5, iou_thres=0.5, multi_cls=Tru
|
|||
|
||||
# Batched NMS
|
||||
if method == 'vision_batch':
|
||||
c = j * 0 if agnostic else j # class-agnostic NMS
|
||||
c = pred[:, 5] * 0 if agnostic else pred[:, 5] # class-agnostic NMS
|
||||
output[image_i] = pred[torchvision.ops.boxes.batched_nms(pred[:, :4], pred[:, 4], c, iou_thres)]
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue