Skip to content

Commit a7f1766

Browse files
author
Ubuntu
committed
Fix tutorial
1 parent 4750b8f commit a7f1766

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

tutorials/nnvm/deploy_ssd.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,14 @@
3939
# x86 conv2d schedule doesn't support dilation.
4040

4141
supported_model = [
42-
'ssd_512_resnet18_v1_voc',
43-
'ssd_512_resnet18_v1_coco',
44-
'ssd_512_resnet18_v1_custom',
4542
'ssd_512_resnet50_v1_voc',
4643
'ssd_512_resnet50_v1_coco',
47-
'ssd_512_resnet50_v1_custom',
4844
'ssd_512_resnet101_v2_voc',
49-
'ssd_512_resnet152_v2_voc',
50-
'ssd_512_mobilenet1_0_voc',
51-
'ssd_512_mobilenet1_0_coco',
52-
'ssd_512_mobilenet1_0_custom',
45+
'ssd_512_mobilenet1.0_voc',
46+
'ssd_512_mobilenet1.0_coco',
5347
]
5448

5549
model_name = "ssd_512_resnet50_v1_voc"
56-
test_image = "dog.jpg"
5750
dshape = (1, 3, 512, 512)
5851
dtype = "float32"
5952
target = "llvm"
@@ -86,12 +79,12 @@
8679
# execute
8780
m.run()
8881
# get outputs
89-
class_IDs, scores, bounding_boxs = tvm.get_output(0), tvm.get_output(1), tvm.get_output(2)
82+
class_IDs, scores, bounding_boxs = m.get_output(0), m.get_output(1), m.get_output(2)
9083

9184
######################################################################
9285
# Display result
9386

94-
ax = utils.viz.plot_bbox(img, bounding_boxs[0], scores[0],
95-
class_IDs[0], class_names=block.classes)
87+
ax = utils.viz.plot_bbox(img, bounding_boxs.asnumpy()[0], scores.asnumpy()[0],
88+
class_IDs.asnumpy()[0], class_names=block.classes)
9689
plt.show()
9790

0 commit comments

Comments
 (0)