-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on hilbert transform #13
Comments
You're absolutely right, thanks a lot! For torch under 1.8, it will work as expected though as what I called it def conj(filt):
return torch.stack([filt[:, :, :, 1], -filt[:, :, :, 0]], dim=-1) Do you want to submit a fix for torch version > 1.8 with the correct rotation? That would be awesome! Thanks again for spoting it! |
Yes, I'd like to. I'll submit a fix some time this or next week. Just want to make sure that to fix this: in 1.7, pytorch uses additional dimension to store real and image parts, while in 1.8 it's already a tensor in complex datatype. So it's simply:
Right? Also I think conj could be misleading. |
Thanks ! 🎉 Yes this is correct : And the conj name should also be changed, you're right |
Thanks for this project, very impressive contribution! I have a question on the hibert transform from the code asteroid-filterbanks/asteroid_filterbanks/analytic_free_fb.py :
As far as I know, the hilbert transform is performed like this:
From the code, it looks like using conj to perform rotation operation, is this correct?
The text was updated successfully, but these errors were encountered: