Improve: transc order by path, train.list preserves order

This commit is contained in:
litagin02
2024-05-26 10:47:14 +09:00
parent d8ca829e28
commit e52453040c
2 changed files with 18 additions and 8 deletions

View File

@@ -152,7 +152,7 @@ if __name__ == "__main__":
output_file.parent.mkdir(parents=True, exist_ok=True)
wav_files = [f for f in input_dir.rglob("*.wav") if f.is_file()]
wav_files = sorted(wav_files, key=lambda x: x.name)
wav_files = sorted(wav_files, key=lambda x: str(x))
if output_file.exists():
logger.warning(f"{output_file} exists, backing up to {output_file}.bak")