Skip to content
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

Trouble running script #4

Closed
peet0 opened this issue Oct 17, 2019 · 3 comments
Closed

Trouble running script #4

peet0 opened this issue Oct 17, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@peet0
Copy link

peet0 commented Oct 17, 2019

Hi,

I really like the project, but unfortunately I'm having trouble running your script. I have Python3.7 installed, and have the required Packages installed per 'requirements.txt'.

However, every time I try and run the script, I receive the following traceback:

C:\vocal-remover>python inference.py --input "C:\test.wav"
loading model... done
loading wave source... done
wave source stft... Traceback (most recent call last):
File "inference.py", line 42, in
X, phase = spec_utils.calc_spec(X, args.hop_length, phase=True)
File "C:\vocal-remover\lib\spec_utils.py", line 22, in calc_spec
spec_left = librosa.stft(X[0], n_fft, hop_length=hop_length)
File "C:\Python37\lib\site-packages\librosa\core\spectrum.py", line 215, in stft
util.valid_audio(y)
File "C:\Python37\lib\site-packages\librosa\util\utils.py", line 278, in valid_audio
raise ParameterError('Audio buffer is not Fortran-contiguous. '
librosa.util.exceptions.ParameterError: Audio buffer is not Fortran-contiguous. Use numpy.asfortranarray to ensure Fortran contiguity.

Any ideas? Any sort of support would be highly appreciated. I look forward to running your script in the future! :)

@AndroXD
Copy link

AndroXD commented Oct 18, 2019

If my memory is correct, try downgrading librosa to version 0.6.3 or lower version, I think that's what fixed it for me.

@peet0
Copy link
Author

peet0 commented Oct 19, 2019

Yup - you are right! That fixed it. Thanks for your help!

@peet0 peet0 closed this as completed Oct 19, 2019
tsurumeso added a commit that referenced this issue Oct 21, 2019
@tsurumeso tsurumeso added the bug Something isn't working label Oct 21, 2019
@padisarala
Copy link

load the wav file using the librosa package.
wav,sr=librosa.load(filename,sr=16000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants