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

用预模型请解决下报错 #571

Open
bluesfeng-feng opened this issue Oct 26, 2023 · 3 comments
Open

用预模型请解决下报错 #571

bluesfeng-feng opened this issue Oct 26, 2023 · 3 comments

Comments

@bluesfeng-feng
Copy link

Number of frames available for inference: 373
Traceback (most recent call last):
File "inference.py", line 280, in
main()
File "inference.py", line 225, in main
mel = audio.melspectrogram(wav)
File "/root/W字幕君交流场所Lip/audio.py", line 47, in melspectrogram
S = _amp_to_db(_linear_to_mel(np.abs(D))) - hp.ref_level_db
File "/root/W字幕君交流场所Lip/audio.py", line 95, in _linear_to_mel
_mel_basis = _build_mel_basis()
File "/root/W字幕君交流场所Lip/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

@Smit-VI
Copy link

Smit-VI commented Oct 26, 2023

https://www.youtube.com/watch?v=P4PXI4Cx3hc&t=153s follow this video

@Leungsiuyin
Copy link

把根目录下audio.py 第 100行改成 : return librosa.filters.mel(sr=hp.sample_rate, n_fft=hp.n_fft, n_mels=hp.num_mels, fmin=hp.fmin, fmax=hp.fmax)

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

4 participants
@Leungsiuyin @Smit-VI @bluesfeng-feng and others