From 6fa45b7fdbe850b9da2f8baf68fbc3f5d1785b88 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 16 五月 2023 09:37:23 +0800
Subject: [PATCH] Merge pull request #513 from alibaba-damo-academy/for-html5-demo

---
 funasr/bin/vad_inference_online.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/funasr/bin/vad_inference_online.py b/funasr/bin/vad_inference_online.py
index e1dbcf2..a363309 100644
--- a/funasr/bin/vad_inference_online.py
+++ b/funasr/bin/vad_inference_online.py
@@ -156,8 +156,6 @@
     
     if batch_size > 1:
         raise NotImplementedError("batch decoding is not implemented")
-    if ngpu > 1:
-        raise NotImplementedError("only single GPU decoding is supported")
 
     logging.basicConfig(
         level=log_level,
@@ -168,7 +166,7 @@
         device = "cuda"
     else:
         device = "cpu"
-
+        batch_size = 1
     # 1. Set random-seed
     set_all_random_seed(seed)
 

--
Gitblit v1.9.1