mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
ff5e9708c4
commit
6c6180bd7e
Binary file not shown.
Binary file not shown.
@ -144,6 +144,25 @@ def add_model_arguments(parser: argparse.ArgumentParser) -> None:
|
|||||||
default=0,
|
default=0,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--interctc",
|
||||||
|
type=str2bool,
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--condition",
|
||||||
|
type=str2bool,
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--interctc-weight",
|
||||||
|
type=float,
|
||||||
|
default=0.3,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_parser() -> argparse.ArgumentParser:
|
def get_parser() -> argparse.ArgumentParser:
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
@ -297,24 +316,6 @@ def get_parser() -> argparse.ArgumentParser:
|
|||||||
help="Whether to use half precision training.",
|
help="Whether to use half precision training.",
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"--interctc",
|
|
||||||
type=str2bool,
|
|
||||||
default=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"--condition",
|
|
||||||
type=str2bool,
|
|
||||||
default=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
"--interctc-weight",
|
|
||||||
type=float,
|
|
||||||
default=0.3,
|
|
||||||
)
|
|
||||||
|
|
||||||
add_model_arguments(parser)
|
add_model_arguments(parser)
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user