-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were given #727
Comments
I encounter a very similar issue when executing following command in collab:
Ill attach my collab-output:
CallStack might be different - but at the bottom line both errors are thrown by Method librosa.filters.mel in "/content/Wav2Lip/audio.py", line 100. Librosa Package is installed a couple Collab-steps before:
A new Version might be the reason for a interface change of librosa.filters.mel. It would be awesome if you fix this issue :) |
The current code in
Newer
This is the change in PR #710 |
127.0.0.1 - - [26/Dec/2024 02:23:10] "POST /ask HTTP/1.1" 500 -
Press CTRL+C to quit
127.0.0.1 - - [26/Dec/2024 02:32:03] "OPTIONS /ask HTTP/1.1" 200 -
Using cuda for inference.
Reading video frames...
Number of frames available for inference: 1
Traceback (most recent call last):
File "C:\Users\wacha\OneDrive\Desktop\Storage\avatar wav2lip\Wav2Lip\inference.py", line 280, in
main()
File "C:\Users\wacha\OneDrive\Desktop\Storage\avatar wav2lip\Wav2Lip\inference.py", line 225, in main
mel = audio.melspectrogram(wav)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wacha\OneDrive\Desktop\Storage\avatar wav2lip\Wav2Lip\audio.py", line 47, in melspectrogram
S = _amp_to_db(_linear_to_mel(np.abs(D))) - hp.ref_level_db
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wacha\OneDrive\Desktop\Storage\avatar wav2lip\Wav2Lip\audio.py", line 95, in _linear_to_mel
_mel_basis = _build_mel_basis()
^^^^^^^^^^^^^^^^^^
File "C:\Users\wacha\OneDrive\Desktop\Storage\avatar wav2lip\Wav2Lip\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 given
127.0.0.1 - - [26/Dec/2024 02:32:30] "POST /ask HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered: