pytracking
pytracking copied to clipboard
AttributeError: module 'torch' has no attribute 'rfft'
When I update PyTorch to 1.9.0 and eval atom default, it occurs this error:
AttributeError: module 'torch' has no attribute 'rfft'
in fourier.py, which means function changed its signature using higher version pytorch.
So rather than downgrading pytorch version, how to modify the codes to adapt it to more versions of pytorch?
Here:
https://github.com/visionml/pytracking/blob/47d9c1641eca44137c9c71ed398da91bf301c751/pytracking/libs/fourier.py#L19-L31
i also meet this problems , Can someone give me a solution ?
Use torch.fft.irfft() instead of torch.rfft() But that is just the beginning of your problems in trying to run pytracking
Use torch.fft.irfft() instead of torch.rfft() But that is just the beginning of your problems in trying to run pytracking
Agree. So much grateful to pytracking but the code of it is out of date.