@@ -37,6 +37,12 @@ def main():
37
37
parser .add_argument ("--img-width" , help = "image width" , type = int , default = 224 )
38
38
parser .add_argument ("--img-height" , help = "image height" , type = int , default = 224 )
39
39
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
+ )
40
46
parser .add_argument (
41
47
"--histogram-equalization" ,
42
48
"--eqhist" ,
@@ -45,7 +51,6 @@ def main():
45
51
)
46
52
parser .add_argument ("--gpu" , help = "whether to bench GPU" , action = "store_true" )
47
53
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" )
49
54
parser .add_argument (
50
55
"--remote-bench-data-dir" ,
51
56
help = "when bench data directory, when available remotely on the server" ,
@@ -144,6 +149,7 @@ def service_create(bs):
144
149
"height" : args .img_height ,
145
150
"bw" : args .bw ,
146
151
"histogram_equalization" : args .histogram_equalization ,
152
+ "scale" : args .scale ,
147
153
}
148
154
if args .segmentation :
149
155
parameters_input ["segmentation" ] = True
@@ -158,6 +164,8 @@ def service_create(bs):
158
164
"maxBatchSize" : bs ,
159
165
"dla" : 0 ,
160
166
"maxWorkspaceSize" : args .max_workspace_size ,
167
+ "gpu" : args .gpu ,
168
+ "gpuid" : args .gpuid ,
161
169
}
162
170
else :
163
171
parameters_mllib = {
@@ -167,6 +175,8 @@ def service_create(bs):
167
175
"writeEngine" : True ,
168
176
"maxBatchSize" : bs ,
169
177
"maxWorkspaceSize" : args .max_workspace_size ,
178
+ "gpu" : args .gpu ,
179
+ "gpuid" : args .gpuid ,
170
180
}
171
181
parameters_output = {}
172
182
dd .put_service (
0 commit comments