|
|
@ -104,7 +104,7 @@ group.add_argument('--class-map', default='', type=str, metavar='FILENAME',
|
|
|
|
# Model parameters
|
|
|
|
# Model parameters
|
|
|
|
group = parser.add_argument_group('Model parameters')
|
|
|
|
group = parser.add_argument_group('Model parameters')
|
|
|
|
group.add_argument('--model', default='resnet50', type=str, metavar='MODEL',
|
|
|
|
group.add_argument('--model', default='resnet50', type=str, metavar='MODEL',
|
|
|
|
help='Name of model to train (default: "resnet50"')
|
|
|
|
help='Name of model to train (default: "resnet50")')
|
|
|
|
group.add_argument('--pretrained', action='store_true', default=False,
|
|
|
|
group.add_argument('--pretrained', action='store_true', default=False,
|
|
|
|
help='Start with pretrained version of specified network (if avail)')
|
|
|
|
help='Start with pretrained version of specified network (if avail)')
|
|
|
|
group.add_argument('--initial-checkpoint', default='', type=str, metavar='PATH',
|
|
|
|
group.add_argument('--initial-checkpoint', default='', type=str, metavar='PATH',
|
|
|
@ -157,7 +157,7 @@ scripting_group.add_argument('--dynamo', default=False, action='store_true',
|
|
|
|
# Optimizer parameters
|
|
|
|
# Optimizer parameters
|
|
|
|
group = parser.add_argument_group('Optimizer parameters')
|
|
|
|
group = parser.add_argument_group('Optimizer parameters')
|
|
|
|
group.add_argument('--opt', default='sgd', type=str, metavar='OPTIMIZER',
|
|
|
|
group.add_argument('--opt', default='sgd', type=str, metavar='OPTIMIZER',
|
|
|
|
help='Optimizer (default: "sgd"')
|
|
|
|
help='Optimizer (default: "sgd")')
|
|
|
|
group.add_argument('--opt-eps', default=None, type=float, metavar='EPSILON',
|
|
|
|
group.add_argument('--opt-eps', default=None, type=float, metavar='EPSILON',
|
|
|
|
help='Optimizer Epsilon (default: None, use opt default)')
|
|
|
|
help='Optimizer Epsilon (default: None, use opt default)')
|
|
|
|
group.add_argument('--opt-betas', default=None, type=float, nargs='+', metavar='BETA',
|
|
|
|
group.add_argument('--opt-betas', default=None, type=float, nargs='+', metavar='BETA',
|
|
|
@ -222,7 +222,7 @@ group.add_argument('--warmup-prefix', action='store_true', default=False,
|
|
|
|
group.add_argument('--cooldown-epochs', type=int, default=0, metavar='N',
|
|
|
|
group.add_argument('--cooldown-epochs', type=int, default=0, metavar='N',
|
|
|
|
help='epochs to cooldown LR at min_lr, after cyclic schedule ends')
|
|
|
|
help='epochs to cooldown LR at min_lr, after cyclic schedule ends')
|
|
|
|
group.add_argument('--patience-epochs', type=int, default=10, metavar='N',
|
|
|
|
group.add_argument('--patience-epochs', type=int, default=10, metavar='N',
|
|
|
|
help='patience epochs for Plateau LR scheduler (default: 10')
|
|
|
|
help='patience epochs for Plateau LR scheduler (default: 10)')
|
|
|
|
group.add_argument('--decay-rate', '--dr', type=float, default=0.1, metavar='RATE',
|
|
|
|
group.add_argument('--decay-rate', '--dr', type=float, default=0.1, metavar='RATE',
|
|
|
|
help='LR decay rate (default: 0.1)')
|
|
|
|
help='LR decay rate (default: 0.1)')
|
|
|
|
|
|
|
|
|
|
|
@ -419,7 +419,7 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
in_chans = 3
|
|
|
|
in_chans = 3
|
|
|
|
if args.in_chans is not None:
|
|
|
|
if args.in_chans is not None:
|
|
|
|
in_chans = args.in_chanes
|
|
|
|
in_chans = args.in_chans
|
|
|
|
elif args.input_size is not None:
|
|
|
|
elif args.input_size is not None:
|
|
|
|
in_chans = args.input_size[0]
|
|
|
|
in_chans = args.input_size[0]
|
|
|
|
|
|
|
|
|
|
|
|