espnet / espnet

End-to-End Speech Processing Toolkit
https://espnet.github.io/espnet/
Apache License 2.0
8.55k stars 2.19k forks source link

Bug in espnet-ez trainer #5949

Open juice500ml opened 2 weeks ago

juice500ml commented 2 weeks ago

Describe the bug

Basic environments:

Task information:

To Reproduce

Error logs

Traceback (most recent call last):
  File "/ocean/projects/cis240125p/vtiwari2/homework/espnet_tutorial_f2024.py", line 82, in <module>
    trainer = ez.Trainer(
  File "/ocean/projects/cis240125p/vtiwari2/espnet/espnetez/trainer.py", line 197, in __init__
    train_dump_dir = Path(train_dump_dir)
  File "/jet/home/vtiwari2/miniconda3/envs/espnet/lib/python3.9/pathlib.py", line 1082, in __new__
    self = cls._from_parts(args, init=False)
  File "/jet/home/vtiwari2/miniconda3/envs/espnet/lib/python3.9/pathlib.py", line 707, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "/jet/home/vtiwari2/miniconda3/envs/espnet/lib/python3.9/pathlib.py", line 691, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
sw005320 commented 2 weeks ago

@Masao-Someki, can you check this?

Masao-Someki commented 2 weeks ago

Thank you, @juice500ml! I think these two lines would fit between lines 224 and 225. I'll create a PR to fix this.