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

AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from '**/yolov5-face-master/models/common.py'>

Open Zhao7601 opened this issue 2 years ago • 5 comments

请问,SPPF是什么模块。

Zhao7601 avatar Oct 26 '21 04:10 Zhao7601

Hi, have you found a solution to this problem?

coalus avatar Dec 13 '21 16:12 coalus

models文件夹的comon.py缺少SPPF类,这个类在yolov5的v6.0版本里有,这要复制过来即可,这里直接把代码发出来

wting861006 avatar Dec 14 '21 07:12 wting861006

From https://github.com/ultralytics/yolov5/blob/b3eaf5008bb8a34de481a6ef7ac8ba520d97b70e/models/common.py#L182 ?

emikulic avatar Jan 11 '22 11:01 emikulic

Don't run: python3 detect_face.py --weights yolov5m.pt

You need to manually download yolov5m-face.pt and run python3 detect_face.py --weights yolov5m-face.pt

The download_weights.sh script does the wrong thing IMO.

emikulic avatar Jan 11 '22 12:01 emikulic

I have the sma problem as well. any solution!!!

HaithemH avatar Jul 27 '22 15:07 HaithemH

Fixed by adding SPPF class into common.py

wjtan99 avatar Aug 19 '22 15:08 wjtan99