Skip to content

Commit

Permalink
Set number of backbone_in_channels for yolox_nano model
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Apr 14, 2022
1 parent 44c2f31 commit d264836
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions exps/default/yolox_nano.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(self):
super(Exp, self).__init__()
self.depth = 0.33
self.width = 0.25
self.backbone_in_channels = 3
self.input_size = (416, 416)
self.random_size = (10, 20)
self.mosaic_scale = (0.5, 1.5)
Expand All @@ -34,8 +35,12 @@ def init_yolo(M):
in_channels = [256, 512, 1024]
# NANO model use depthwise = True, which is main difference.
backbone = YOLOPAFPN(
self.depth, self.width, in_channels=in_channels,
act=self.act, depthwise=True,
self.depth,
self.width,
backbone_in_channels=self.backbone_in_channels,
in_channels=in_channels,
act=self.act,
depthwise=True,
)
head = YOLOXHead(
self.num_classes, self.width, in_channels=in_channels,
Expand Down

0 comments on commit d264836

Please sign in to comment.