Using detr with custom backbone

this will load the pretrained backbone “microsoft/resnet-50” with randomly initialized encoder, decoder, and head of the transformer, am i right?
but what i’m trying to do, but i’m unable to do it is, i need to use a pretrained transformer, for exmaple: “microsoft/conditional-detr-resnet-50”, but i want to change the backbone to a fine tunned resnet backbone that i have the .pth or ckpt file for it

1 Like