I am new with python and here I am practicing to understand the code by debugging.
python: add_argument for read data set but unable to read data folder.
Please check the attachment and below code.
ap = argparse.ArgumentParser()
## This is a useful line because it adds an option that we are interested in. The input file
ap.add_argument("-d", "--dataset", required=True,
help="path to input dataset")
## The plot
ap.add_argument("-p", "--plot", type=str, default="plot.png",
help="path to output loss/accuracy plot")
## The model
ap.add_argument("-m", "--model", type=str,
default="mask_detector.model",
help="path to output kite detector model")
## Parse the command line argument
args = vars(ap.parse_args())
Getting the error:
kite_detector.py: error: the following arguments are required: -d/--dataset
but the data with folder name dataset already exists in the project folder in which multiple classification folders.
please provide the link to understand and reason for the getting issue.
thanks in advance.
[![enter image description here][2]][2]