1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-10 13:00:36 +08:00

optimize(jit): package hierarchy

This commit is contained in:
源文雨
2024-06-03 15:41:25 +09:00
parent ae04d4f9cc
commit 17e703a9ad
7 changed files with 172 additions and 171 deletions

12
infer/lib/jit/rmvpe.py Normal file
View File

@@ -0,0 +1,12 @@
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