maum-ai / phaseaug

ICASSP 2023 Accepted
https://maum-ai.github.io/phaseaug/
BSD 3-Clause "New" or "Revised" License
188 stars 14 forks source link

Missing variable in forward_sync #10

Closed yzmyyff closed 1 year ago

yzmyyff commented 1 year ago

I got an exception from forward_sync:

...
  File "/usr/local/lib/python3.8/dist-packages/phaseaug/phaseaug.py", line 117, in forward_sync
    phi = self.sample_phi(self, X.shape[0] // 2) #[2B, nfft//2+1]
NameError: name 'X' is not defined

X is the result of stft and is removed in version 1.0.0

junjun3518 commented 1 year ago

Thank you for pointing out my mistakes! I fixed it and released as version 1.0.1

yzmyyff commented 1 year ago

Thanks a lot. Version 1.0.1 worked.