Hi
I am new to computer vision I have  been trying to change the backbone of maskrcnn  to resnet 101 as follows:
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=False) backbone = resnet_fpn_backbone(‘resnet101’, pretrained=False)
model.backbone = backbone
When I start the training my losses are and the system exits.  I do not know if there is anything else I can do.  If someone can help I would be very grateful.
Epoch: [0]  [ 0/60]  eta: 0:00:46  lr: 0.00the 0090  loss: 66788.3438 (66788.3438)  loss_classifier: 553.5748 (553.5748)  loss_box_reg: 1551.7709 (1551.7709)  loss_mask: 63966.0742 (63966.0742)  loss_objectness: 543.3094 (543.3094)  loss_rpn_box_reg: 173.6078 (173.6078)  time: 0.7696  data: 0.2757  max mem: 11470
Loss is nan, stopping training
{‘loss_classifier’: tensor(0., device=‘cuda:0’, grad_fn=), ‘loss_box_reg’: tensor(6.8742e+30, device=‘cuda:0’, grad_fn=), ‘loss_mask’: tensor(nan, device=‘cuda:0’, grad_fn=), ‘loss_objectness’: tensor(8.7334e+11, device=‘cuda:0’,
grad_fn=), ‘loss_rpn_box_reg’: tensor(1.5060e+12, device=‘cuda:0’, grad_fn=)}
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1