Skip to content
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

可以使用VOC数据集做SWA训练吗 #8

Open
TTXXXL opened this issue Feb 5, 2021 · 2 comments
Open

可以使用VOC数据集做SWA训练吗 #8

TTXXXL opened this issue Feb 5, 2021 · 2 comments

Comments

@TTXXXL
Copy link

TTXXXL commented Feb 5, 2021

使用VOC数据集训练验证阶段会报错

@hyz-xmaster
Copy link
Owner

hyz-xmaster commented Feb 5, 2021

Hi, you can make the following changes to enable the SWA training on the VOC dataset:

changing save_best='bbox_mAP' to save_best='auto', rule='greater' at this line and this line

changing swa_load_from = 'best_bbox_mAP.pth' to swa_load_from = 'best_AP50.pth'

changing if cfg.swa_load_from == 'best_bbox_mAP.pth' to if cfg.swa_load_from == 'best_bbox_mAP.pth' or cfg.swa_load_from == 'best_AP50.pth'

@TTXXXL
Copy link
Author

TTXXXL commented Feb 7, 2021

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants