Skip to content

Commit 557ac62

Browse files
committed
♻️ [Refactor] RD's module atoms format
1 parent 76f07da commit 557ac62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yolo/model/module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
498498

499499

500500
class DConv(nn.Module):
501-
def __init__(self, in_channels=512, alpha=0.8, atoms=4096):
501+
def __init__(self, in_channels=512, alpha=0.8, atoms=512):
502502
super().__init__()
503503
self.alpha = alpha
504504

@@ -521,9 +521,9 @@ def forward(self, r):
521521

522522

523523
class RepNCSPELAND(RepNCSPELAN):
524-
def __init__(self, *args, rd_args={}, **kwargs):
524+
def __init__(self, *args, atoms: 512, rd_args={}, **kwargs):
525525
super().__init__(*args, **kwargs)
526-
self.dconv = DConv(**rd_args)
526+
self.dconv = DConv(atoms=atoms, **rd_args)
527527

528528
def forward(self, x):
529529
x = super().forward(x)

0 commit comments

Comments
 (0)