Skip to content

Commit

Permalink
Added mb2-ssd-lite
Browse files Browse the repository at this point in the history
Fixed missing mb2-ssd-lite
  • Loading branch information
kaustubh-pandey authored Jul 5, 2019
1 parent 1e86eb3 commit 8e9505d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion convert_to_caffe2_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from vision.ssd.mobilenetv1_ssd import create_mobilenetv1_ssd
from vision.ssd.mobilenetv1_ssd_lite import create_mobilenetv1_ssd_lite
from vision.ssd.squeezenet_ssd_lite import create_squeezenet_ssd_lite
from vision.ssd.mobilenet_v2_ssd_lite import create_mobilenetv2_ssd_lite

import sys
import torch.onnx
Expand All @@ -26,6 +27,8 @@
net = create_mobilenetv1_ssd(len(class_names), is_test=True)
elif net_type == 'mb1-ssd-lite':
net = create_mobilenetv1_ssd_lite(len(class_names), is_test=True)
elif net_type == 'mb2-ssd-lite':
net = create_mobilenetv2_ssd_lite(len(class_names), is_test=True)
elif net_type == 'sq-ssd-lite':
net = create_squeezenet_ssd_lite(len(class_names), is_test=True)
else:
Expand Down Expand Up @@ -58,4 +61,4 @@
f.write(str(init_net))

with open(predict_net_txt_path, 'w') as f:
f.write(str(predict_net))
f.write(str(predict_net))

0 comments on commit 8e9505d

Please sign in to comment.