aboutsummaryrefslogtreecommitdiffstats
path: root/inference.py
diff options
context:
space:
mode:
authorKai Li (李凯) <tsinghua.kaili@gmail.com>2025-01-07 23:46:46 +0800
committerKai Li (李凯) <tsinghua.kaili@gmail.com>2025-01-07 23:46:46 +0800
commitec25e5e4495b37d73097f786901dea083c35eefd (patch)
treec9446222b02479a60763f7e2015209d830296d39 /inference.py
parentbaf931c712257c3071dd9f2e868d8a0c4fd98663 (diff)
parent0130c633d3d126e76df9840d293d9dd5b78bddce (diff)
downloadapollo-gfx803-ec25e5e4495b37d73097f786901dea083c35eefd.tar.gz
Merge branch 'main' of https://github.com/JusperLee/Apollo
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)