Ver Fonte

Merge pull request #850 from alibaba-damo-academy/dev_lhn

fix dataset bug
hnluo há 2 anos atrás
pai
commit
74eb3b105d

+ 0 - 1
funasr/datasets/small_datasets/sequence_iter_factory.py

@@ -68,7 +68,6 @@ class SequenceIterFactory(AbsIterFactory):
             sort_in_batch=dataset_conf["sort_in_batch"] if hasattr(dataset_conf, "sort_in_batch") else "descending",
             sort_in_batch=dataset_conf["sort_in_batch"] if hasattr(dataset_conf, "sort_in_batch") else "descending",
             sort_batch=dataset_conf["sort_batch"] if hasattr(dataset_conf, "sort_batch") else "descending",
             sort_batch=dataset_conf["sort_batch"] if hasattr(dataset_conf, "sort_batch") else "descending",
             drop_last=False,
             drop_last=False,
-            min_batch_size=torch.distributed.get_world_size(),
             padding=True,
             padding=True,
         )
         )