Spaces:
Runtime error
Runtime error
Download infer/lib/jit/get_rmvpe.py from Gorgefound/easyGUI-RVC: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/Gorgefound/easyGUI-RVC/resolve/main/infer/lib/jit/get_rmvpe.py
- Command line
-
hf download hf://spaces/Gorgefound/easyGUI-RVC/infer/lib/jit/get_rmvpe.py
-
curl -L -o get_rmvpe.py https://huggingface.co/spaces/Gorgefound/easyGUI-RVC/resolve/main/infer/lib/jit/get_rmvpe.py
311 Bytes
| import torch | |
| def get_rmvpe(model_path="assets/rmvpe/rmvpe.pt", device=torch.device("cpu")): | |
| from infer.lib.rmvpe import E2E | |
| model = E2E(4, 1, (2, 2)) | |
| ckpt = torch.load(model_path, map_location=device) | |
| model.load_state_dict(ckpt) | |
| model.eval() | |
| model = model.to(device) | |
| return model | |