From dce5a05e80d7ebde61afecc1f15d78fb0fb89394 Mon Sep 17 00:00:00 2001 From: Bajibabu Bollepalli Date: Tue, 18 Dec 2018 15:49:24 +0200 Subject: [PATCH 1/2] Update train.py --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 8fe07ded..6d18e3c0 100644 --- a/train.py +++ b/train.py @@ -478,7 +478,7 @@ if __name__ == '__main__': default=False, help='Do not verify commit integrity to run training.') parser.add_argument( - '--data_path', type=str, help='dataset path.', default='Defines the data path. It overwrites config.json.') + '--data_path', type=str, help='Defines the data path. It overwrites config.json.', default='') args = parser.parse_args() # setup output paths and read configs From a97e4b28843e201082e271a79347199ccce5ebda Mon Sep 17 00:00:00 2001 From: Bajibabu Bollepalli Date: Tue, 18 Dec 2018 15:50:44 +0200 Subject: [PATCH 2/2] Update extract_features.py linear_len is undefined if args.only_mel is set --- extract_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract_features.py b/extract_features.py index 56629d1d..055759cb 100644 --- a/extract_features.py +++ b/extract_features.py @@ -82,13 +82,13 @@ if __name__ == "__main__": linear_len = linear.shape[1] np.save(linear_path, linear, allow_pickle=False) output.insert(2, linear_path+".npy") + assert mel_len == linear_len if args.process_audio: audio_file = file_name + "_audio" audio_path = os.path.join(CACHE_PATH, 'audio', audio_file) np.save(audio_path, x, allow_pickle=False) del output[0] output.insert(0, audio_path+".npy") - assert mel_len == linear_len return output