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

Why adjust_learning_rate() only refers to step_lr of COCO? #113

Open
yushi-okuinishi opened this issue Jan 26, 2020 · 1 comment
Open

Why adjust_learning_rate() only refers to step_lr of COCO? #113

yushi-okuinishi opened this issue Jan 26, 2020 · 1 comment

Comments

@yushi-okuinishi
Copy link

yushi-okuinishi commented Jan 26, 2020

https://github.com/qijiezhao/M2Det/blob/de4a6241bf22f7e7f46cb5cb1eb95615fd0a5e12/utils/core.py#L73-L80

When I tried to train with resume_epoch=300, I got the following error because max(step_lr) of COCO was 200.
Traceback (most recent call last): File "train.py", line 330, in <module> lr = adjust_learning_rate(optimizer, cfg.train_cfg.gamma, epoch, step_index, iteration, epoch_size, cfg) File "/opt/program/utils/core.py", line 95, in adjust_learning_rate param_group['lr'] = lr

I think if cfg.train_cfg.step_lr.COCO[i]>=epoch was False, and lr wasn't defined.

Should we make it compatible with VOC dataset?

@wangshaobobetter
Copy link

change the"COCO" to "VOC"

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