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

a problem with librosa version #25

Open
lunar333 opened this issue Feb 21, 2023 · 0 comments
Open

a problem with librosa version #25

lunar333 opened this issue Feb 21, 2023 · 0 comments

Comments

@lunar333
Copy link

Start loading data
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0259.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0260.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0261.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0262.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0263.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0264.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0265.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0266.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0267.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0268.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0269.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0270.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0271.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0272.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0273.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0274.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0275.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0276.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0277.wav
/home/zhonghuihang/data/LJSpeech-1.1/wavs/LJ050-0278.wav
Finish loading data
Traceback (most recent call last):
File "Data.py", line 245, in
for batch in loader:
File "/home/zhonghuihang/miniconda3/envs/gst/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 628, in next
data = self._next_data()
File "/home/zhonghuihang/miniconda3/envs/gst/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 671, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/zhonghuihang/miniconda3/envs/gst/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/zhonghuihang/miniconda3/envs/gst/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "Data.py", line 34, in getitem
_, mel, mag = load_spectrograms(self.fpaths[idx])
File "/home/zhonghuihang/GST-Tacotron/utils.py", line 129, in load_spectrograms
mel, mag = get_spectrograms(fpath)
File "/home/zhonghuihang/GST-Tacotron/utils.py", line 44, in get_spectrograms
mel_basis = librosa.filters.mel(hp.sr, hp.n_fft, hp.n_mels) # (n_mels, 1+n_fft//2)
TypeError: mel() takes 0 positional arguments but 3 were given

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

1 participant