def detr_resnet50_dc5(pretrained=False, num_classes=91, return_postprocessor=False):
    '\n    DETR-DC5 R50 with 6 encoder and 6 decoder layers.\n\n    The last block of ResNet-50 has dilation to increase\n    output resolution.\n    Achieves 43.3/63.1 AP/AP50 on COCO val5k.\n    '
    model = _make_detr('resnet50', dilation=True, num_classes=num_classes)
    if pretrained:
        checkpoint = torch.hub.load_state_dict_from_url(url='https://dl.fbaipublicfiles.com/detr/detr-r50-dc5-f0fb7ef5.pth', map_location='cpu', check_hash=True)
        model.load_state_dict(checkpoint['model'])
    if return_postprocessor:
        return (model, PostProcess())
    return model
DETR-DC5 R50 with 6 encoder and 6 decoder layers.

The last block of ResNet-50 has dilation to increase
output resolution.
Achieves 43.3/63.1 AP/AP50 on COCO val5k.
def detr_resnet50_dc5(pretrained=False, num_classes=91, return_postprocessor=False):
    '\n    DETR-DC5 R50 with 6 encoder and 6 decoder layers.\n\n    The last block of ResNet-50 has dilation to increase\n    output resolution.\n    Achieves 43.3/63.1 AP/AP50 on COCO val5k.\n    '
    model = _make_detr('resnet50', dilation=True, num_classes=num_classes)
    if pretrained:
        checkpoint = torch.hub.load_state_dict_from_url(url='https://dl.fbaipublicfiles.com/detr/detr-r50-dc5-f0fb7ef5.pth', map_location='cpu', check_hash=True)
        model.load_state_dict(checkpoint['model'])
    if return_postprocessor:
        return (model, PostProcess())
    return model