Cannot load model from disk

I get this error when I load a model from disk. Pytorch version 1.4

ImportError: cannot import name 'Optional' from 'torch.jit.annotations'

This error is usually raised, if you are using a newer torchvision version with an older PyTorch version, which doesn’t support the needed utilities in the torchvision model.
Make sure to update both libraries to their latest stable release (or matching versions, if you need an older one).

Thanks for the reply.