YOLOv3-Torch2TRT icon indicating copy to clipboard operation
YOLOv3-Torch2TRT copied to clipboard

IndexError: too many indices for tensor of dimension 2

Open yilawu opened this issue 4 years ago • 2 comments

when I run the detect.py and set TensorRT = True It went error.

Traceback (most recent call last): File "/home/tx2wry/PycharmProjects/yolov3_torch2trt/detect.py", line 190, in detections = non_max_suppression(detections, opt.conf_thres, opt.nms_thres, method=2) File "/home/tx2wry/PycharmProjects/yolov3_torch2trt/utils/utils.py", line 254, in non_max_suppression image_pred = image_pred[(-score).argsort()] IndexError: too many indices for tensor of dimension 2

yilawu avatar Jul 12 '20 10:07 yilawu

请问找到原因了么?我也遇到了这个问题

2king2 avatar Apr 21 '21 13:04 2king2

请问找到原因了么?我也遇到了这个问题

你好,请问解决了吗

ZichengDuan avatar Nov 09 '21 13:11 ZichengDuan