change bool to str2bool for arg parser

This commit is contained in:
Tiance Wang 2023-01-18 16:47:24 +08:00 committed by GitHub
parent 881d9e8587
commit 623fe22ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ def add_model_arguments(parser: argparse.ArgumentParser):
parser.add_argument( parser.add_argument(
"--skip-add", "--skip-add",
type=bool, type=str2bool,
default=False, default=False,
help="""Use skip connection in the encoder. help="""Use skip connection in the encoder.
""", """,