Actually, I am using a Custom(layers changed) resnet50 as a Backbone.
The Problem is arising in this line(in the forward function of retinaface):
    `out = self.body(inputs)`

The standard Resnet 50 (used with Torchvision) works fine. But when I use custom resent50 then I am facing the issue.
I am attaching the Retinaface Architecture with Standard resnet50(which works) and custom resnet50(which throws error) below:
Retinaface Architecture with Standard resnet50(which works): https://drive.google.com/file/d/11296uAtcTFJf8JZ-Q2Zys0PGGDUx_rdp/view?usp=sharing
Retinaface Architecture with custom resnet50(which throws error)https://drive.google.com/file/d/133VFhjsHDbXSemtdmknAIyJOVTCjylRt/view?usp=sharing
I feel the Custom ResNet50 is throwing an error, because self.body is the backbone which is resnet50.
Thanks.
Darshan