Skip to content

Commit

Permalink
Merge pull request #2 from ElectronicElephant/yolo-dev
Browse files Browse the repository at this point in the history
unify registry
  • Loading branch information
ElectronicElephant authored Jun 23, 2020
2 parents 035793a + 0edf116 commit e13afb6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mmdet/models/backbones/darknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def make_conv_and_res_block(in_channels, out_channels, res_repeat):
return model


@BACKBONES.register_module
@BACKBONES.register_module()
class DarkNet53(nn.Module):

def __init__(self,
Expand Down
2 changes: 1 addition & 1 deletion mmdet/models/dense_heads/yolo_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
_EPSILON = 1e-6


@HEADS.register_module
@HEADS.register_module()
class YoloHead(BaseDenseHead):

# TODO: Move into cfg
Expand Down
2 changes: 1 addition & 1 deletion mmdet/models/detectors/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ..builder import DETECTORS


@DETECTORS.register_module
@DETECTORS.register_module()
class YoloNet(SingleStageDetector):

def __init__(self,
Expand Down
2 changes: 1 addition & 1 deletion mmdet/models/necks/yolo_neck.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def forward(self, x):
return out


@NECKS.register_module
@NECKS.register_module()
class YoloNeck(nn.Module):

"""The tail side of the YoloNet.
Expand Down

0 comments on commit e13afb6

Please sign in to comment.