src/transformers/models/dpt/convert_dpt_to_pytorch.py/remove_ignore_keys_
def remove_ignore_keys_(state_dict):
    ignore_keys = ["pretrained.model.head.weight", "pretrained.model.head.bias"]
    for k in ignore_keys:
        state_dict.pop(k, None)