Skip to content

Commit

Permalink
Small fixes of layer numbers for MobileNetV3
Browse files Browse the repository at this point in the history
  • Loading branch information
aclex committed Apr 5, 2020
1 parent 5e5a756 commit eaa555e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/ssd/mobilenetv3_ssd_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def SeperableConv2d(in_channels, out_channels, kernel_size=1, stride=1, padding=
def create_mobilenetv3_large_ssd_lite(num_classes, width_mult=1.0, use_batch_norm=True, onnx_compatible=False, is_test=False):
base_net = MobileNetV3_Large().features

source_layer_indexes = [ 16, 20 ]
source_layer_indexes = [ 15, 21 ]
extras = ModuleList([
Block(3, 960, 256, 512, hswish(), None, stride=2),
Block(3, 512, 128, 256, hswish(), None, stride=2),
Expand Down Expand Up @@ -58,7 +58,7 @@ def create_mobilenetv3_large_ssd_lite(num_classes, width_mult=1.0, use_batch_nor
def create_mobilenetv3_small_ssd_lite(num_classes, width_mult=1.0, use_batch_norm=True, onnx_compatible=False, is_test=False):
base_net = MobileNetV3_Small().features

source_layer_indexes = [ 11, 16 ]
source_layer_indexes = [ 11, 17 ]
extras = ModuleList([
Block(3, 576, 256, 512, hswish(), None, stride=2),
Block(3, 512, 128, 256, hswish(), None, stride=2),
Expand Down

0 comments on commit eaa555e

Please sign in to comment.