hpc203 / yolov5-dnn-cpp-python

用opencv的dnn模块做yolov5目标检测,包含C++和Python两个版本的程序

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error. can you help me plz

tuyeen1509 opened this issue · comments

Traceback (most recent call last):
File "C:/Users/xtuye/yolov5-dnn-cpp-python/main_yolov5.py", line 114, in
dets = yolonet.detect(srcimg)
File "C:/Users/xtuye/yolov5-dnn-cpp-python/main_yolov5.py", line 90, in detect
outs[i] = outs[i].reshape(bs, self.na, self.no, ny, nx).transpose(0, 1, 3, 4, 2)
TypeError: 'tuple' object does not support item assignment

do solve this?