From 2f5d11f8e2802410b0e9a04442d0e40966b46ce6 Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期三, 19 七月 2023 11:20:24 +0800
Subject: [PATCH] bug fix for empty audio
---
funasr/datasets/large_datasets/datapipes/batch.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/funasr/datasets/large_datasets/datapipes/batch.py b/funasr/datasets/large_datasets/datapipes/batch.py
index c980ae3..8ec43e9 100644
--- a/funasr/datasets/large_datasets/datapipes/batch.py
+++ b/funasr/datasets/large_datasets/datapipes/batch.py
@@ -46,6 +46,7 @@
batch = []
bucket = []
max_lengths = 0
+ min_lengths = 999999
batch_lengths = 0
if self.batch_mode == "clipping":
--
Gitblit v1.9.1