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

Collab TDLR issue - Type Error #96

Open
preethamsmetaphy opened this issue Nov 20, 2023 · 1 comment
Open

Collab TDLR issue - Type Error #96

preethamsmetaphy opened this issue Nov 20, 2023 · 1 comment

Comments

@preethamsmetaphy
Copy link


TypeError Traceback (most recent call last)
in <cell line: 76>()
86 c = AutoVC_mel_Convertor('examples')
87
---> 88 au_data_i = c.convert_single_wav_to_autovc_input(audio_filename=os.path.join('examples', ain), autovc_model_path=opt_parser.load_AUTOVC_name)
89 au_data += au_data_i
90 if(os.path.isfile('examples/tmp.wav')):

1 frames
/content/MakeItTalk/src/autovc/retrain_version/vocoder_spec/extract_f0_func.py in extract_f0_func_audiofile(audio_file, gender)
95 def extract_f0_func_audiofile(audio_file, gender='M'):
96 floor_sp, ceil_sp = -80, 30
---> 97 mel_basis = mel(16000, 1024, fmin=90, fmax=7600, n_mels=80).T
98 min_level = np.exp(-100 / 20 * np.log(10))
99 b, a = butter_highpass(30, 16000, order=5)

TypeError: mel() takes 0 positional arguments but 2 positional arguments (and 3 keyword-only arguments) were given

@gurtejtalwar
Copy link

@UUPrEEth Change line 97 in /content/MakeItTalk/src/autovc/retrain_version/vocoder_spec/extract_f0_func.py
to:

mel_basis = mel(sr=16000, n_fft=1024, fmin=90, fmax=7600, n_mels=80).T

That should fix the issue of mel() recieving 2 positional arguments.

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

2 participants