edgeai-yolov5 icon indicating copy to clipboard operation
edgeai-yolov5 copied to clipboard

detect.py

Open Flashan opened this issue 2 years ago • 4 comments

Traceback (most recent call last): File "D:/RunPrograms/edgeai-yolov5-pose/detect.py", line 219, in detect(opt=opt) File "D:/RunPrograms/edgeai-yolov5-pose/detect.py", line 111, in detect scale_coords(img.shape[2:], det[:, 6:], im0.shape, kpt_label=kpt_label, step=3) File "D:\RunPrograms\edgeai-yolov5-pose\utils\general.py", line 385, in scale_coords coords[:, [0, 2]] -= pad[0] # x padding IndexError: index is out of bounds for dimension with size 0

Flashan avatar Sep 08 '22 08:09 Flashan

having same issue. also, can you add export file to the repository?

MukundSeethamraju avatar Sep 09 '22 10:09 MukundSeethamraju

same issue.. help me

sinae-noh avatar Sep 20 '22 08:09 sinae-noh

Traceback (most recent call last): File "D:/RunPrograms/edgeai-yolov5-pose/detect.py", line 219, in detect(opt=opt) File "D:/RunPrograms/edgeai-yolov5-pose/detect.py", line 111, in detect scale_coords(img.shape[2:], det[:, 6:], im0.shape, kpt_label=kpt_label, step=3) File "D:\RunPrograms\edgeai-yolov5-pose\utils\general.py", line 385, in scale_coords coords[:, [0, 2]] -= pad[0] # x padding IndexError: index is out of bounds for dimension with size 0

I thought this might help you ‘parser.add_argument('--kpt-label', default=True,action='store_true', help='use keypoint labels')’

lhz-1 avatar Sep 30 '22 08:09 lhz-1

for det_index, (*xyxy, conf, cls) in enumerate(reversed(det[:,:6])):

The value of 109 rows “reversed(det[:,:6])” makes the index different from the “det”,resulting in 119 rows“kpts”and“xyxy” not being the same data

lhz-1 avatar Oct 15 '22 02:10 lhz-1