Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hAmos07 opened this issue Feb 17, 2024 · 4 comments
Open

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

hAmos07 opened this issue Feb 17, 2024 · 4 comments

Comments

@hAmos07
Copy link

hAmos07 commented Feb 17, 2024

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'

@braydenchubb
Copy link

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
Copy link

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

daswer123 added a commit that referenced this issue Mar 7, 2024
@daswer123
Copy link
Owner

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

@MisileLab
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants