Skip to content

Commit 836e89c

Browse files
authored
Merge pull request #738 from onnx/gs/mobile-v3
add mobilenet-v3, ssd-mobilnet-v3
2 parents 6bfba19 + 7a2381f commit 836e89c

File tree

1 file changed

+44
-15
lines changed

1 file changed

+44
-15
lines changed

tests/run_pretrained_models.yaml

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ googlenet_v4_slim:
175175
- InceptionV4/Logits/Predictions:0
176176
rtol: 0.1
177177

178+
mobilenet_v3_large_float:
179+
url: https://storage.googleapis.com/mobilenet_v3/checkpoints/v3-large_224_1.0_float.tgz
180+
model: v3-large_224_1.0_float/v3-large_224_1.0_float.pb
181+
input_get: get_beach
182+
inputs:
183+
"input:0": [1, 224, 224, 3]
184+
outputs:
185+
- MobilenetV3/Predictions/Softmax:0
186+
178187
mobilenet_v2_1.4_224:
179188
url: https://storage.googleapis.com/mobilenet_v2/checkpoints/mobilenet_v2_1.4_224.tgz
180189
model: mobilenet_v2_1.4_224_frozen.pb
@@ -237,7 +246,6 @@ resnet50_v2_nchw: # NOTE: Tensorflow 1.9.0 fails
237246
- ArgMax:0
238247
- softmax_tensor:0
239248

240-
241249
resnet50_v2_nhwc:
242250
model_type: saved_model
243251
url: http://download.tensorflow.org/models/official/20181001_resnet/savedmodels/resnet_v2_fp32_savedmodel_NHWC.tar.gz
@@ -261,7 +269,6 @@ resnet50_fp16_v2:
261269
- ArgMax:0
262270
- softmax_tensor:0
263271

264-
265272
resnet50_v1:
266273
disabled: true # works, disabled because its nearly the same as resnet50_v2_nchw
267274
skip_tensorflow: true # tensorflow fails: Default MaxPoolingOp only supports NHWC on device type CPU
@@ -275,19 +282,18 @@ resnet50_v1:
275282
- ArgMax:0
276283
- softmax_tensor:0
277284

278-
#
279-
# models that will never work
280-
#
281-
style-transfer:
282-
# quantitized model
283-
disabled: true
284-
url: https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip
285-
model: stylize_quantized.pb
285+
ssd_mobilenet_v3_large_coco:
286+
url: http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v3_large_coco_2019_08_14.tar.gz
287+
model: ssd_mobilenet_v3_large_coco_2019_08_14/frozen_inference_graph.pb
288+
opset_constraints:
289+
"onnx":
290+
"min": 10
286291
input_get: get_beach
287292
inputs:
288-
"input:0": [1, 416, 416, 3]
293+
"normalized_input_image_tensor:0": [1, 320, 320, 3]
289294
outputs:
290-
- output:0
295+
- raw_outputs/box_encodings:0
296+
- raw_outputs/class_predictions:0
291297

292298
ssd_mobilenet_v1_coco:
293299
url: http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_2017_11_17.tar.gz
@@ -305,10 +311,13 @@ ssd_mobilenet_v1_coco:
305311
- detection_classes:0
306312

307313
ssd_mobilenet_v2_coco:
308-
# issues with control flow
314+
# works with opset-10
309315
disabled: true
310316
url: http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v2_coco_2018_03_29.tar.gz
311317
model: ssd_mobilenet_v2_coco_2018_03_29/frozen_inference_graph.pb
318+
opset_constraints:
319+
"onnx":
320+
"min": 10
312321
input_get: get_beach
313322
inputs:
314323
"image_tensor:0": [1, 224, 224, 3]
@@ -319,10 +328,13 @@ ssd_mobilenet_v2_coco:
319328
- detection_classes:0
320329

321330
ssdlite_mobilenet_v2_coco:
322-
# issues with control flow
331+
# works with opset-10
323332
disabled: true
324333
url: http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz
325334
model: ssdlite_mobilenet_v2_coco_2018_05_09/frozen_inference_graph.pb
335+
opset_constraints:
336+
"onnx":
337+
"min": 10
326338
input_get: get_beach
327339
inputs:
328340
"image_tensor:0": [1, 224, 224, 3]
@@ -333,10 +345,12 @@ ssdlite_mobilenet_v2_coco:
333345
- detection_classes:0
334346

335347
ssd_inception_v2_coco:
336-
# issues with control flow
337348
disabled: true
338349
url: http://download.tensorflow.org/models/object_detection/ssd_inception_v2_coco_2017_11_17.tar.gz
339350
model: ssd_inception_v2_coco_2017_11_17/frozen_inference_graph.pb
351+
opset_constraints:
352+
"onnx":
353+
"min": 10
340354
input_get: get_beach
341355
inputs:
342356
"image_tensor:0": [1, 224, 224, 3]
@@ -345,3 +359,18 @@ ssd_inception_v2_coco:
345359
- detection_scores:0
346360
- num_detections:0
347361
- detection_classes:0
362+
363+
#
364+
# models that will not work
365+
#
366+
style-transfer:
367+
# quantitized model
368+
disabled: true
369+
url: https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip
370+
model: stylize_quantized.pb
371+
input_get: get_beach
372+
inputs:
373+
"input:0": [1, 416, 416, 3]
374+
outputs:
375+
- output:0
376+

0 commit comments

Comments
 (0)