Skip to content

Freeze parameters for adapter #47

@tungts1101

Description

@tungts1101

For the Adapter method, the parameter is named adaptmlp (line 159 ~ 163 in vit_adapter.py), so in MOS the condition should be

for n, p in self._network.backbone.named_parameters():
       if 'adapt' not in n and 'head' not in n: # adapt not adapter
             p.requires_grad = False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions