-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from '/home/zkx/graduation/Alpha-IoU/models/common.py'> #4
Comments
This is because YOLOv5 updated to v6.0 and the author has left the automatic download intact. See this issue on Yolov5 page (ultralytics/yolov5#5175). You essentially have to wget the v5.0 weights yourself (https://github.com/ultralytics/yolov5/releases/tag/v5.0)
|
@NBStephens Thx so much for your answer. This (ultralytics/yolov5#5175) should be exactly the same issue. You should be able to run detect.py without bugs if you download our repo and use our uploaded weights (an example is shown below). If you wanna test other pre-trained models, plz remember to use some version earlier than version 6.0. It is a simple yet effective method so that you are welcome to apply our methods in other models and repos following the function 'bbox_alpha_iou' in utils/loss.py. |
Thanks very much for answer. |
Thank you very much for your answer. The problem has been solved. |
Thanks for your excellent project. When I test the trained model, I find this error. In the file models/common.py, I can't find the class SSPF. Could you please tell me the cause of this problem? Thank you very much !
The text was updated successfully, but these errors were encountered: