Krasjet-Yu / YOLO-FaceV2

YOLO-FaceV2: A Scale and Occlusion Aware Face Detector
163 stars 24 forks source link

为什么运行test.py,模型和权重匹配不上的?权重是按你的给下载的 #46

Open Zhenmingababa opened 2 weeks ago

Zhenmingababa commented 2 weeks ago

AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from 'D:\sonardetection\YOLO-FaceV2-master\YOLO-FaceV2-master\models\common.py'>

Krasjet-Yu commented 1 week ago

抱歉哈,最近有些忙,现在才回复您。

这个应该是我上传代码的时候common.py中的SPPF的函数没有上传。我后续把代码整理更新一下。

SPPF是yolov5本身的函数,你也可以参考这里粘贴进去。https://github.com/ultralytics/yolov5/blob/master/models/common.py#L303