Skip to content

Commit e9ca9d3

Browse files
BubblyYiZwwWayne
authored andcommitted
Fix DyDCNv2 RuntimeError (#8485)
the parameter of offset is not set as continuous will trigger the runtime error: offset must be continuous
1 parent d929c63 commit e9ca9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmdet/models/necks/dyhead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self,
4444

4545
def forward(self, x, offset, mask):
4646
"""Forward function."""
47-
x = self.conv(x.contiguous(), offset, mask)
47+
x = self.conv(x.contiguous(), offset.contiguous(), mask)
4848
if self.with_norm:
4949
x = self.norm(x)
5050
return x

0 commit comments

Comments
 (0)