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

和fsdet冻结方式的不同? #51

Open
Superfly12138 opened this issue Dec 4, 2021 · 0 comments
Open

和fsdet冻结方式的不同? #51

Superfly12138 opened this issue Dec 4, 2021 · 0 comments

Comments

@Superfly12138
Copy link

我想请问下面这种冻结方式
if cfg.MODEL.BACKBONE.FREEZE:
for p in self.backbone.parameters():
p.requires_grad = False
print('froze backbone parameters')

    if cfg.MODEL.BACKBONE.FREEZE_P5:
        for connection in [self.backbone.fpn_lateral5, self.backbone.fpn_output5]:
            for p in connection.parameters():
                p.requires_grad = False
        print('frozen P5 in FPN')

是不是已经覆盖了
if freeze_at >= 1:
for p in stem.parameters():
p.requires_grad = False
stem = FrozenBatchNorm2d.convert_frozen_batchnorm(stem)
if freeze_at >= stage_idx:
for block in blocks:
block.freeze()
stages.append(blocks)
这种冻结方式?
这两种冻结方式有什么不同呢?

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

1 participant