speech_asr
2023-04-17 831d00aec2434187266489a5f396d88f63709fe0
funasr/bin/train.py
@@ -4,6 +4,7 @@
import torch
from funasr.torch_utils.set_all_random_seed import set_all_random_seed
from funasr.utils import config_argparse
from funasr.utils.build_distributed import build_distributed
from funasr.utils.prepare_data import prepare_data
@@ -340,4 +341,10 @@
                                                                   distributed_option.dist_rank,
                                                                   distributed_option.local_rank))
    # prepare files for dataloader
    prepare_data(args, distributed_option)
    set_all_random_seed(args.seed)
    torch.backends.cudnn.enabled = args.cudnn_enabled
    torch.backends.cudnn.benchmark = args.cudnn_benchmark
    torch.backends.cudnn.deterministic = args.cudnn_deterministic