Skip to content

Commit

Permalink
minor fix (open-mmlab#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywgz authored Aug 18, 2020
1 parent c1c537b commit 467873a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions ppdet/data/transform/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2061,6 +2061,7 @@ def __call__(self, sample, context=None):
return sample


@register_op
class Lighting(BaseOperator):
"""
Lighting the imagen by eigenvalues and eigenvectors
Expand Down
6 changes: 3 additions & 3 deletions ppdet/modeling/architectures/ttfnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, backbone, ttf_head='TTFHead', num_classes=80):
self.ttf_head = ttf_head
self.num_classes = num_classes

def build(self, feed_vars, mode='train'):
def build(self, feed_vars, mode='train', exclude_nms=False):
im = feed_vars['image']

mixed_precision_enabled = mixed_precision_global_state() is not None
Expand Down Expand Up @@ -128,5 +128,5 @@ def train(self, feed_vars):
def eval(self, feed_vars):
return self.build(feed_vars, mode='test')

def test(self, feed_vars):
return self.build(feed_vars, mode='test')
def test(self, feed_vars, exclude_nms=False):
return self.build(feed_vars, mode='test', exclude_nms=exclude_nms)
2 changes: 1 addition & 1 deletion ppdet/modeling/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def DeformConvNorm(input,
initializer=None,
bias_attr=False,
name=None):
assert norm_type in ['bn', 'sync_bn', 'affine_channel']
assert norm_type in ['bn', 'sync_bn', 'affine_channel', 'gn']
conv = DeformConv(input, num_filters, filter_size, stride, groups, dilation,
lr_scale, initializer, bias_attr, name)

Expand Down
2 changes: 2 additions & 0 deletions tools/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def dump_infer_config(FLAGS, config):
'RetinaNet': 40,
'Face': 3,
'TTFNet': 3,
'FCOS': 3,
'EfficientDet': 40
}
infer_arch = config['architecture']

Expand Down

0 comments on commit 467873a

Please sign in to comment.