From 5d15727b1e545a17793a5776bbe5c35b87654398 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期一, 04 九月 2023 17:16:04 +0800
Subject: [PATCH] set wav sample rate and PCM for h5 (#919)
---
funasr/bin/vad_inference_launch.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/bin/vad_inference_launch.py b/funasr/bin/vad_inference_launch.py
index 47af011..0cde570 100644
--- a/funasr/bin/vad_inference_launch.py
+++ b/funasr/bin/vad_inference_launch.py
@@ -123,7 +123,7 @@
vad_results.append(item)
if writer is not None:
ibest_writer["text"][keys[i]] = "{}".format(results[i])
-
+ torch.cuda.empty_cache()
return vad_results
return _forward
--
Gitblit v1.9.1