-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinput_args.py
14 lines (11 loc) · 985 Bytes
/
input_args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import argparse
import sys
def get_input_args():
parser = argparse.ArgumentParser(description='Driver Drowsiness Detection')
parser.add_argument('-s', '--setup', action='store_true', default = False, help = 'Setup Kaggle API to download data')
parser.add_argument('-d', '--download_datasets', action='store_true', default = False, help = 'Download Datasets from Kaggle')
parser.add_argument('-p', '--preprocess_data', action='store_true', default = False, help = 'Apply preprocessing to images')
parser.add_argument('-t', '--train_model', action='store_true', default = False, help = 'Train model on data')
parser.add_argument('--train_dir', type=str, default=None, help = 'Path to training directory', required=('--train_model' in sys.argv or '-t' in sys.argv) and '-p' in sys.argv)
parser.add_argument('--logging_level', type = str, default = 'debug', help = 'Set logging level', choices=['debugging', 'info', 'warning'])
return parser.parse_args()