parser.add_argument('--resume',action='store_true',help='resume training from last.pt')
parser.add_argument('--resume',nargs='?',const='get_last',default=False,help='resume training from given path/to/last.pt, or most recent run if blank.')
parser.add_argument('--nosave',action='store_true',help='only save final checkpoint')
parser.add_argument('--notest',action='store_true',help='only test final epoch')