Skip to content

Commit

Permalink
Update inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JusperLee authored Sep 18, 2024
1 parent 732c8ab commit fb56d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb56d56

Please sign in to comment.