Bug fix: fix setting different learning rates between backbone and main model in ACT policy (#280)

这个提交包含在:
Thomas Wolf
2024-06-18 14:31:35 +02:00
提交者 GitHub
父节点 b72d574891
当前提交 11f1cb5dc9
共有 2 个文件被更改,包括 32 次插入 和 2 次删除

查看文件

@ -53,12 +53,14 @@ def make_optimizer_and_scheduler(cfg, policy):
"params": [
p
for n, p in policy.named_parameters()
if not n.startswith("backbone") and p.requires_grad
if not n.startswith("model.backbone") and p.requires_grad
]
},
{
"params": [
p for n, p in policy.named_parameters() if n.startswith("backbone") and p.requires_grad
p
for n, p in policy.named_parameters()
if n.startswith("model.backbone") and p.requires_grad
],
"lr": cfg.training.lr_backbone,
},