Hi there, I am trying to migrate faster rcnn implementation of torchvision to c++ to do that I simply run these lines of code to obtain ‘pt’ file.
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained=True)
model.eval()
script_model = torch.jit.script(model)
This part is work as intended but after when I try to upload this produced model in c++ I get the Microsofct C++ exception: torch::jit::ErrorReport at memory location 0x0000… error. Any ideas about what should i do?