From a951500963c62330c1ca3f1f018d1d5ebfbb8b0f Mon Sep 17 00:00:00 2001
From: VirtuosoQ <2416050435@qq.com>
Date: 星期一, 29 四月 2024 16:47:23 +0800
Subject: [PATCH] 16:47 commit
---
funasr/datasets/audio_datasets/samplers.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/funasr/datasets/audio_datasets/samplers.py b/funasr/datasets/audio_datasets/samplers.py
index 108e68a..1394f7e 100644
--- a/funasr/datasets/audio_datasets/samplers.py
+++ b/funasr/datasets/audio_datasets/samplers.py
@@ -301,6 +301,7 @@
batch_type="token",
num_replicas=None,
rank=None,
+ rank_split=False,
shuffle=True,
drop_last=False,
is_training: bool = True,
@@ -314,6 +315,12 @@
except:
rank = 0
num_replicas = 1
+
+ # if rank_split:
+ # logging.info(f"Warning, rank_split: {rank_split}, batch and shuffle data in local rank")
+ # rank = 0
+ # num_replicas = 1
+
self.rank = rank
self.num_replicas = num_replicas
self.dataset = dataset
--
Gitblit v1.9.1