hpc203 / yolov5-face-landmarks-opencv-v2

更新的yolov5检测人脸和关键点,只依赖opencv库就可以运行,程序包含C++和Python两个版本的
125 stars 30 forks source link

python : IndexError: invalid index to scalar variable #8

Closed lonngxiang closed 2 years ago

lonngxiang commented 2 years ago

srcimg = yolonet.postprocess(srcimg, dets) File "main.py", line 56, in postprocess i = i[0] IndexError: invalid index to scalar variable

lonngxiang commented 2 years ago

解决了,i = i[0]这行去掉正常运行