parser.add_argument()已经设置了默认值,但调试时仍然报错:main.py: error: the following arguments are required: data
报错的代码:
parser.add_argument('data', type=str, default='/home/user1/datasets/cifar10', help='path to dataset')
在data前加"--",修改后的代码:
parser.add_argument('--data', type=str, default='/home/user1/datasets/cifar10', help='path to dataset')
curie.