Refactor and add one-click training

This commit is contained in:
litagin02
2023-12-28 23:21:27 +09:00
parent 5ec33b8d85
commit b0fbcc4667
3 changed files with 230 additions and 97 deletions

View File

@@ -65,6 +65,8 @@ if __name__ == "__main__":
twople = (spk_dir, filename, args)
tasks.append(twople)
if len(tasks) == 0:
raise ValueError(f"No wav files found in {args.in_dir}")
for _ in tqdm(
pool.imap_unordered(process, tasks), file=sys.stdout, total=len(tasks)
):