-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
About lr schedule: how to apply different learning rate to different parameter of the network? #25
Comments
Hi @rorschach-xiao You may refer to training tricks for changing head only. |
thanks for your reply! I noticed that in training tricks doc,you add optimizer_config=dict(
paramwise_cfg = dict(
custom_keys={
'head': dict(lr_mult=10.)})) But in training code , mmseg use optimizer = build_optimizer(model, cfg.optimizer) and in mmcv/runner/optimizer/builder.py , the key def build_optimizer(model, cfg):
optimizer_cfg = copy.deepcopy(cfg)
constructor_type = optimizer_cfg.pop('constructor',
'DefaultOptimizerConstructor')
paramwise_cfg = optimizer_cfg.pop('paramwise_cfg', None)
optim_constructor = build_optimizer_constructor(
dict(
type=constructor_type,
optimizer_cfg=optimizer_cfg,
paramwise_cfg=paramwise_cfg))
optimizer = optim_constructor(model)
return optimizer I wonder the |
Hi @rorschach-xiao |
* add fp16 support in recognition * use fp16 from mmcv * use fp16 from mmcv
I want to apply different learning rate to backbone parameters and non-backbone parameters, can below configs work?
The text was updated successfully, but these errors were encountered: