aboutsummaryrefslogtreecommitdiffstats
path: root/inference.py
diff options
context:
space:
mode:
authorKai Li (李凯) <tsinghua.kaili@gmail.com>2024-09-18 09:23:47 +0800
committerGitHub <noreply@github.com>2024-09-18 09:23:47 +0800
commitfb56d561aa0c1591331d029b2358cb0ac48f9102 (patch)
treed3a01b34ac1d246fba728dde27f650e8300033f0 /inference.py
parent732c8ab50bd522fbf07c86f2a0e4483ce3f7726f (diff)
downloadapollo-gfx803-fb56d561aa0c1591331d029b2358cb0ac48f9102.tar.gz
Update inference.py
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/inference.py b/inference.py
index ce97d90..872c77c 100644
--- a/inference.py
+++ b/inference.py
@@ -15,7 +15,7 @@ def save_audio(file_path, audio, samplerate=44100):
def main(input_wav, output_wav):
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
- model = look2hear.models.BaseModel.from_pretrain("JusperLee/Apollo").cuda()
+ model = look2hear.models.BaseModel.from_pretrain("JusperLee/Apollo", sr=44100, win=20, feature_dim=256, layer=6).cuda()
test_data = load_audio(input_wav)
with torch.no_grad():
out = model(test_data)