Do you solve a “warm up” scripted model problem?
Simplest way to share this problem is:

import torchvision, torch, time
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)
model = torch.jit.script(model)
model.eval()
x = [torch.randn((3,224,224))]
for i in range(3):
start = time.time()
model(x)
print(‘Time elapsed: {}’.format(time.time()-start))

Output:
 Time elapsed: 38.297527551651
Time elapsed: 6.655704021453857
Time elapsed: 6.651334762573242
So, can anybody help with explaining how I can load and run scripted model without this "warm up’?
Thanx.