use librosa 0.7.2 and fix vocoder datatset assert

This commit is contained in:
erogol 2020-07-12 16:09:03 +02:00
Родитель 83d42ba7fa
Коммит c33068ad40
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -3,7 +3,7 @@ tensorflow>=2.2
numpy>=1.16.0
scipy>=0.19.0
numba==0.48
librosa==0.6.2
librosa==0.7.2
unidecode==0.4.20
attrdict
tensorboardX

Просмотреть файл

@ -3,7 +3,7 @@ tensorflow==2.3rc
numpy>=1.16.0
scipy>=0.19.0
numba==0.48
librosa==0.6.2
librosa==0.7.2
unidecode==0.4.20
attrdict
tensorboardX

Просмотреть файл

@ -82,7 +82,7 @@ requirements = {
"numpy>=1.16.0",
"numba==0.48",
"scipy>=0.19.0",
"librosa==0.6.2",
"librosa==0.7.2",
"unidecode==0.4.20",
"attrdict",
"tensorboardX",

Просмотреть файл

@ -59,9 +59,9 @@ def gan_dataset_case(batch_size, seq_len, hop_len, conv_pad, return_segments, us
audio = wav1[idx].squeeze()
feat = feat1[idx]
mel = ap.melspectrogram(audio)
# the first 2 and the last frame is skipped due to the padding
# applied in spec. computation.
assert (feat - mel[:, :feat1.shape[-1]])[:, 2:-1].sum() == 0, f' [!] {(feat - mel[:, :feat1.shape[-1]])[:, 2:-1].sum()}'
# the first 2 and the last 2 frames are skipped due to the padding
# differences in stft
assert (feat - mel[:, :feat1.shape[-1]])[:, 2:-2].sum() <= 0, f' [!] {(feat - mel[:, :feat1.shape[-1]])[:, 2:-2].sum()}'
count_iter += 1
# if count_iter == max_iter: