File backbones/resnet.py -> class BasicBlock(nn.Module) -> def forward(self, x) ->
offset = offset_mask[:, :18, :, :]
mask = offset_mask[:, -9:, :, :].sigmoid()
we know shape(offset_mask)[1] = deformable_groups * offset_channels with deformable_groups = 1 and offset_channels = 27. From definition, offset_channels = 27 is fixed, but deformable_groups is a parameter to be passed in with default value 1. If a value other than 1 is passed in to deformable_groups, then shape(offset_mask)[1] = deformable_groups * offset_channels > 27 and values in offset_mask[:, 18:-9, :, :] is discarded in the code segment above. Same problem in class Bottleneck.