pytracking icon indicating copy to clipboard operation
pytracking copied to clipboard

AttributeError: module 'torch' has no attribute 'rfft'

Open laisimiao opened this issue 2 years ago • 3 comments

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

laisimiao avatar Nov 30 '22 14:11 laisimiao

i also meet this problems , Can someone give me a solution ?

faicaiwawa avatar Mar 22 '23 11:03 faicaiwawa

Use torch.fft.irfft() instead of torch.rfft() But that is just the beginning of your problems in trying to run pytracking

prexen avatar May 10 '23 03:05 prexen

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.

TsingWei avatar Sep 13 '23 12:09 TsingWei