Skip to content

Commit

Permalink
fixed minor mobilenet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
t-martyniuk authored Sep 2, 2019
1 parent adb9e7d commit d76d9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/fpn_mobilenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def forward(self, x):

class FPNMobileNet(nn.Module):

def __init__(self, norm_layer, output_ch=3, num_filters=128, num_filters_fpn=128, pretrained=True):
def __init__(self, norm_layer, output_ch=3, num_filters=64, num_filters_fpn=128, pretrained=True):
super().__init__()

# Feature Pyramid Network (FPN) with four feature maps of resolutions
# 1/4, 1/8, 1/16, 1/32 and `num_filters` filters for all feature maps.

self.fpn = FPN(num_filters=num_filters_fpn, pretrained=pretrained)
self.fpn = FPN(num_filters=num_filters_fpn, norm_layer = norm_layer, pretrained=pretrained)

# The segmentation heads on top of the FPN

Expand Down Expand Up @@ -71,7 +71,7 @@ def forward(self, x):

class FPN(nn.Module):

def __init__(self, num_filters=128, pretrained=True):
def __init__(self, norm_layer, num_filters=128, pretrained=True):
"""Creates an `FPN` instance for feature extraction.
Args:
num_filters: the number of filters in each output pyramid level
Expand Down

0 comments on commit d76d9c6

Please sign in to comment.