chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:35:17 +08:00
commit 344816a5d8
136 changed files with 25044 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from utils import hparams
from .pm import ParselmouthPE
from .pw import HarvestPE
from .rmvpe import RMVPE
def initialize_pe():
pe = hparams['pe']
pe_ckpt = hparams['pe_ckpt']
if pe == 'parselmouth':
return ParselmouthPE()
elif pe == 'rmvpe':
return RMVPE(pe_ckpt)
elif pe == 'harvest':
return HarvestPE()
else:
raise ValueError(f" [x] Unknown f0 extractor: {pe}")