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

inference.py problem #22

Closed
SoberDanz opened this issue Mar 4, 2024 · 1 comment
Closed

inference.py problem #22

SoberDanz opened this issue Mar 4, 2024 · 1 comment

Comments

@SoberDanz
Copy link

I was running the inference.py and I got this error

Traceback (most recent call last):
File "/sharefiles/zhaodan/projects/EmoGen-master/inference.py", line 298, in
main()
File "/sharefiles/zhaodan/projects/EmoGen-master/inference.py", line 233, in main
mel = audio.melspectrogram(wav)
File "/sharefiles/zhaodan/projects/EmoGen-master/audio.py", line 47, in melspectrogram
S = _amp_to_db(_linear_to_mel(np.abs(D))) - hp.ref_level_db
File "/sharefiles/zhaodan/projects/EmoGen-master/audio.py", line 95, in _linear_to_mel
_mel_basis = _build_mel_basis()
File "/sharefiles/zhaodan/projects/EmoGen-master/audio.py", line 100, in _build_mel_basis
return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,
TypeError: mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were give

Thanks and regards

@zk19971101
Copy link

this problem is caused by the incompatibale version of librosa, try
pip uninstall librosa
pip install librosa==0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants