@@ -37,6 +37,12 @@ def main():
3737 parser .add_argument ("--img-width" , help = "image width" , type = int , default = 224 )
3838 parser .add_argument ("--img-height" , help = "image height" , type = int , default = 224 )
3939 parser .add_argument ("--bw" , help = "whether images are bw" , action = "store_true" )
40+ parser .add_argument (
41+ "--scale" ,
42+ help = "Multiply all pixels value by a constant factor" ,
43+ type = float ,
44+ default = 1 ,
45+ )
4046 parser .add_argument (
4147 "--histogram-equalization" ,
4248 "--eqhist" ,
@@ -45,7 +51,6 @@ def main():
4551 )
4652 parser .add_argument ("--gpu" , help = "whether to bench GPU" , action = "store_true" )
4753 parser .add_argument ("--gpuid" , help = "gpu id to use" , type = int , default = 0 )
48- parser .add_argument ("--cpu" , help = "whether to bench CPU" , action = "store_true" )
4954 parser .add_argument (
5055 "--remote-bench-data-dir" ,
5156 help = "when bench data directory, when available remotely on the server" ,
@@ -144,6 +149,7 @@ def service_create(bs):
144149 "height" : args .img_height ,
145150 "bw" : args .bw ,
146151 "histogram_equalization" : args .histogram_equalization ,
152+ "scale" : args .scale ,
147153 }
148154 if args .segmentation :
149155 parameters_input ["segmentation" ] = True
@@ -158,6 +164,8 @@ def service_create(bs):
158164 "maxBatchSize" : bs ,
159165 "dla" : 0 ,
160166 "maxWorkspaceSize" : args .max_workspace_size ,
167+ "gpu" : args .gpu ,
168+ "gpuid" : args .gpuid ,
161169 }
162170 else :
163171 parameters_mllib = {
@@ -167,6 +175,8 @@ def service_create(bs):
167175 "writeEngine" : True ,
168176 "maxBatchSize" : bs ,
169177 "maxWorkspaceSize" : args .max_workspace_size ,
178+ "gpu" : args .gpu ,
179+ "gpuid" : args .gpuid ,
170180 }
171181 parameters_output = {}
172182 dd .put_service (
0 commit comments