【发布时间】:2020-09-10 05:30:35
【问题描述】:
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-d", "--dataset", required=True,
help="path to input dataset")
ap.add_argument("-p", "--plot", type=str, default="plot.png",
help="path to output loss/accuracy plot")
ap.add_argument("-m", "--model", type=str,
default="mask_detector.model",
help="path to output face mask detector model")
args = vars(ap.parse_args())
我收到错误用法:ipykernel_launcher.py [-h] -d DATASET [-p PLOT] [-m MODEL] ipykernel_launcher.py:错误:需要以下参数:-d/--dataset 异常已发生,请使用 %tb 查看完整的回溯。
SystemExit:2 /usr/local/lib/python3.6/dist-packages/IPython/core/interactiveshell.py:2890:用户警告:退出:使用“退出”、“退出”或 Ctrl-D。 warn("要退出:使用 'exit'、'quit' 或 Ctrl-D。", stacklevel=1)
【问题讨论】:
标签: python dataset google-colaboratory conv-neural-network