Skip to content

Commit

Permalink
feat: added bw image input support to dd_bench
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and sileht committed Sep 16, 2020
1 parent 8bf52c0 commit 6e558d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/python/dd_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
parser.add_argument('--sname',help='service name')
parser.add_argument('--img-width',help='image width',type=int,default=224)
parser.add_argument('--img-height',help='image height',type=int,default=224)
parser.add_argument('--bw',help='whether images are bw',action='store_true')
parser.add_argument('--gpu',help='whether to bench GPU',action='store_true')
parser.add_argument('--gpuid',help='gpu id to use',type=int,default=0)
parser.add_argument('--cpu',help='whether to bench CPU',action='store_true')
Expand Down Expand Up @@ -74,7 +75,7 @@ def service_create(bs):
description = 'image classification service'
mllib = args.mllib
model = {'repository':args.create}
parameters_input = {'connector':'image','width':args.img_width,'height':args.img_height}
parameters_input = {'connector':'image','width':args.img_width,'height':args.img_height,'bw':args.bw}
if args.segmentation:
parameters_input['segmentation'] = True
if args.dla:
Expand Down

0 comments on commit 6e558d6

Please sign in to comment.