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
For the Adapter method, the parameter is named
adaptmlp(line 159 ~ 163 invit_adapter.py), so inMOSthe condition should be