From 4c3e502cb8fbbd16c7cf37e0c2564050cc55fd16 Mon Sep 17 00:00:00 2001
From: 嘉渊 <wangjiaming.wjm@alibaba-inc.com>
Date: 星期二, 25 四月 2023 01:23:14 +0800
Subject: [PATCH] update
---
funasr/bin/train.py | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/funasr/bin/train.py b/funasr/bin/train.py
index 916693c..b8cbf64 100755
--- a/funasr/bin/train.py
+++ b/funasr/bin/train.py
@@ -242,6 +242,12 @@
help="Enable resuming if checkpoint is existing",
)
parser.add_argument(
+ "--train_dtype",
+ default="float32",
+ choices=["float16", "float32", "float64"],
+ help="Data type for training.",
+ )
+ parser.add_argument(
"--use_amp",
type=str2bool,
default=False,
@@ -253,6 +259,12 @@
help="Show the logs every the number iterations in each epochs at the "
"training phase. If None is given, it is decided according the number "
"of training samples automatically .",
+ )
+ parser.add_argument(
+ "--use_tensorboard",
+ type=str2bool,
+ default=True,
+ help="Enable tensorboard logging",
)
# pretrained model related
@@ -298,6 +310,12 @@
help="whether to use dataloader for large dataset",
)
parser.add_argument(
+ "--dataset_conf",
+ action=NestedDictAction,
+ default=dict(),
+ help=f"The keyword arguments for dataset",
+ )
+ parser.add_argument(
"--train_data_file",
type=str,
default=None,
--
Gitblit v1.9.1