错误 FileNotFoundError: [Errno 2] 没有那个文件或目录

时间:2021-01-06 04:30:27

标签: google-colaboratory

!python -m svoice.separate --model_path="/content/drive/My Drive/Colab Notebooks/svoice/svoice/outputs/exp_dset=debug_2/checkpoint.th" --mix_dir="/content/drive/My Drive/Colab Notebooks/svoice/in_dir" --out_dir="/content/drive/My Drive/Colab Notebooks/svoice/out_dir"


Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/content/drive/My Drive/Colab Notebooks/svoice/svoice/svoice/separate.py", line 133, in <module>
    separate(args, local_out_dir=args.out_dir)
  File "/content/drive/My Drive/Colab Notebooks/svoice/svoice/svoice/separate.py", line 88, in separate
    pkg = torch.load(args.model_path)
  File "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 571, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 229, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 210, in __init__
    super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: '--model_path=/content/drive/MyDrive/Colab Notebooks/svoice/svoice/outputs/exp_dset=debug_2/checkpoint.th'

0 个答案:

没有答案