After Fine-tuning  faster rcnn as
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html 6
when want to make a prediction I got the :
Exception has occurred: RuntimeError
cannot reshape tensor of 0 elements into shape [0, -1] because the unspecified dimension size -1 can be any value and is ambiguous
Here is the code:
‘’’
images = [img]
model = get_model_instance_segmentation(2)
model.load_state_dict(torch.load(‘faster_rcnn_1.model’))
model.eval()
pred = model(images) == > here is the error

‘’’