Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Bug in ResNet of ModulatedDeformConv version #9

@wang2wei1

Description

@wang2wei1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions