|
|
@ -82,6 +82,12 @@ def default_argument_parser(parser=None):
|
|
|
|
type=int,
|
|
|
|
type=int,
|
|
|
|
default=1,
|
|
|
|
default=1,
|
|
|
|
help="number of parallel processes. 0 for cpu.")
|
|
|
|
help="number of parallel processes. 0 for cpu.")
|
|
|
|
|
|
|
|
train_group.add_argument(
|
|
|
|
|
|
|
|
'--nxpu',
|
|
|
|
|
|
|
|
type=int,
|
|
|
|
|
|
|
|
default=0,
|
|
|
|
|
|
|
|
choices=[0, 1],
|
|
|
|
|
|
|
|
help="if nxpu == 0 and ngpu == 0, use cpu.")
|
|
|
|
train_group.add_argument(
|
|
|
|
train_group.add_argument(
|
|
|
|
"--config", metavar="CONFIG_FILE", help="config file.")
|
|
|
|
"--config", metavar="CONFIG_FILE", help="config file.")
|
|
|
|
train_group.add_argument(
|
|
|
|
train_group.add_argument(
|
|
|
|