Skip to content

Linux path error (\\base_model\\rmvpe.pt) #5

Open
@hAmos07

Description

@hAmos07

On Linux system get error:
No such file or directory: '/usr/local/lib/python3.10/dist-packages/rvc_python\base_model\rmvpe.p

rmvpe_path = Path(f"{self.lib_dir}\\base_model\\rmvpe.pt")

  File "/usr/local/lib/python3.10/dist-packages/rvc_python/modules/vc/modules.py", line 184, in vc_single
    audio_opt = self.pipeline.pipeline(
  File "/usr/local/lib/python3.10/dist-packages/rvc_python/modules/vc/pipeline.py", line 359, in pipeline
    pitch, pitchf = self.get_f0(
  File "/usr/local/lib/python3.10/dist-packages/rvc_python/modules/vc/pipeline.py", line 152, in get_f0
    self.model_rmvpe = RMVPE(
  File "/usr/local/lib/python3.10/dist-packages/rvc_python/lib/rmvpe.py", line 563, in __init__
    self.model = get_default_model()
  File "/usr/local/lib/python3.10/dist-packages/rvc_python/lib/rmvpe.py", line 544, in get_default_model
    ckpt = torch.load(model_path, map_location="cpu")
  File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 998, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 445, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 426, in __init__
    super().__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/rvc_python\\base_model\\rmvpe.pt'

Activity

braydenchubb

braydenchubb commented on Feb 20, 2024

@braydenchubb

Had this error too, it's a windows file path. For a temp fix you can change the line in modules/vc/pipeline.py to this:

rmvpe_path = Path(self.lib_dir) / "base_model" / "rmvpe.pt"

jakiestfu

jakiestfu commented on Mar 6, 2024

@jakiestfu

+1 to this issue, can we get a fix @daswer123? 🙏

added a commit that references this issue on Mar 7, 2024
daswer123

daswer123 commented on Mar 7, 2024

@daswer123
Owner

Hi, thanks braydenchubb for the fix, updated the python package

MisileLab

MisileLab commented on Aug 16, 2024

@MisileLab

I think cross-platform solution is perfect like path.join

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jakiestfu@daswer123@braydenchubb@MisileLab@hAmos07

        Issue actions

          Linux path error (\\base_model\\rmvpe.pt) · Issue #5 · daswer123/rvc-python