This means that the data you are supplying to the model is not in the proper format. Can you show the image shapes and target shapes. Also, I think the faster-rcnn of torchvision requires a list of images and a list of targets (which is slightly different from other models).