bshall / knn-vc

Voice Conversion With Just Nearest Neighbors
https://bshall.github.io/knn-vc/
Other
431 stars 64 forks source link

torchaudio version #7

Closed Blakey-Gavin closed 1 year ago

Blakey-Gavin commented 1 year ago

Hi, When I execute the program according to the Quickstart in README.md, the following error is reported:

AttributeError: module 'torchaudio.functional' has no attribute 'loudness'

I guess it is not supported in the torchaudio version I am using, the version I am using is: pytorch==1.12.1 torchaudio==0.12.1.

Can you tell me which version you are using? Thanks.

RF5 commented 1 year ago

Hi, sorry for the confusion. The code requires pytorch>=2.0 to work. I updated the readme now to state this.

The older pytorch v1.12 will not work, but if you update to pytorch and torchaudio to >=2.0, then it should work correctly.

Hope that helps!

Blakey-Gavin commented 1 year ago

Yes, I've got it working as you suggested. Thanks a lot for your answer.