trackformer icon indicating copy to clipboard operation
trackformer copied to clipboard

ImportError: cannot import name '_new_empty_tensor' from 'torchvision.ops'

Open pranoyr opened this issue 3 years ago • 2 comments

pranoyr avatar Jan 11 '22 12:01 pranoyr

Can u post the full error log?

timmeinhardt avatar Jan 12 '22 17:01 timmeinhardt

I have met a similar problem. My solution is simply to comment the line 24-26 in misc.py if float(torchvision.__version__[:3]) < 0.7:

The reason in my case is that I have to use PyTorch 1.9.0 in my project and my GPU only supports Cuda 11+

CeZh avatar Feb 21 '22 15:02 CeZh