From c3ef815c08ecb1e1ffdd0c01d2c56218f2f52ccd Mon Sep 17 00:00:00 2001
From: haoneng.lhn <haoneng.lhn@alibaba-inc.com>
Date: 星期五, 11 八月 2023 10:26:32 +0800
Subject: [PATCH] update setup.py for mossformer
---
funasr/utils/prepare_data.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/funasr/utils/prepare_data.py b/funasr/utils/prepare_data.py
index 3ae18b8..c9615e7 100644
--- a/funasr/utils/prepare_data.py
+++ b/funasr/utils/prepare_data.py
@@ -198,6 +198,7 @@
data_names = args.dataset_conf.get("data_names", "speech,text").split(",")
data_types = args.dataset_conf.get("data_types", "sound,text").split(",")
file_names = args.data_file_names.split(",")
+ batch_type = args.dataset_conf["batch_conf"]["batch_type"]
print("data_names: {}, data_types: {}, file_names: {}".format(data_names, data_types, file_names))
assert len(data_names) == len(data_types) == len(file_names)
if args.dataset_type == "small":
@@ -228,7 +229,7 @@
filter_wav_text(args.data_dir, args.train_set)
filter_wav_text(args.data_dir, args.valid_set)
- if args.dataset_type == "small":
+ if args.dataset_type == "small" and batch_type != "unsorted":
calc_shape(args, args.train_set)
calc_shape(args, args.valid_set)
--
Gitblit v1.9.1