src/transformers/models/deta/modeling_deta.py/DetaModel/freeze_backbone
class DetaModel:    def freeze_backbone(self):
        for name, param in self.backbone.conv_encoder.model.named_parameters():
            param.requires_grad_(False)