-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.py
More file actions
27 lines (19 loc) · 685 Bytes
/
cli.py
File metadata and controls
27 lines (19 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from utils import image_pred, plt_show
import argparse
def argparsee():
parser = argparse.ArgumentParser()
parser.add_argument('--modelPath',
type = str,
required=True,
help = 'model giriniz'
)
parser.add_argument('--imagePath',
type = str,
required=True,
help = 'path giriniz'
)
return parser.parse_args()
if __name__ == "__main__":
args = argparsee()
modelPath, imagePath = args.modelPath, args.imagePath
pred, preds = image_pred(modelPath, imagePath)