Update demo.py: fix inference OOM error
Hi, thanks for open-sourcing such wonderful work!
I noticed that once the number of inference audio increases, it will run into the OOM error because all the predictions are saved in GPU.
The solution is to move the predictions to cpu as `out_dict[wav_f][dataset_name] = out.cpu()`.
合并状态:已合并 合并于 2024-08-08 关闭于 2024-08-08 1 条评论