mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
6d443ed864
commit
3bbaea78eb
Binary file not shown.
@ -480,8 +480,7 @@ class LibriSpeechAsrDataModule:
|
||||
self.args.manifest_dir / f"librispeech_cuts_test-clean.jsonl"
|
||||
)
|
||||
elif option == 'user':
|
||||
print(self.args.manifest_dir)
|
||||
json_list = sorted(glob(self.args.manifest_dir + "/userlibri/test-clean/*"))
|
||||
json_list = sorted(glob(str(self.args.manifest_dir) + "/userlibri/test-clean/*"))
|
||||
spk_list = [json.split('/')[-1][:-6] for json in json_list]
|
||||
|
||||
return [load_manifest_lazy(json) for json in json_list], spk_list
|
||||
@ -498,7 +497,7 @@ class LibriSpeechAsrDataModule:
|
||||
self.args.manifest_dir / f"librispeech_cuts_test-other_{option}.jsonl"
|
||||
)
|
||||
elif option == 'user':
|
||||
json_list = sorted(glob(self.args.manifest_dir + "/userlibri/test-other/*"))
|
||||
json_list = sorted(glob(str(self.args.manifest_dir) + "/userlibri/test-other/*"))
|
||||
spk_list = [json.split('/')[-1][:-6] for json in json_list]
|
||||
|
||||
return [load_manifest_lazy(json) for json in json_list], spk_list
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user