Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method definition of self.bbox_tower #151

Open
sdsy888 opened this issue Jul 13, 2020 · 1 comment
Open

method definition of self.bbox_tower #151

sdsy888 opened this issue Jul 13, 2020 · 1 comment

Comments

@sdsy888
Copy link

sdsy888 commented Jul 13, 2020

Hi, I just found the definition of methods, such as self.cls_tower, self.bbox_tower, could not be found in the repo:

self.cls_tower, self.bbox_tower,
self.share_tower, self.cls_logits,
self.bbox_pred, self.ctrness

Could you tell me where is the definition of these methods?

Thank you.

@sdsy888 sdsy888 changed the title self.bbox_tower method definition method definition self.bbox_tower Jul 13, 2020
@sdsy888 sdsy888 changed the title method definition self.bbox_tower method definition of self.bbox_tower Jul 13, 2020
@WeianMao
Copy link

    for head in head_configs:
        tower = []
        num_convs, use_deformable = head_configs[head]
        if use_deformable:
            conv_func = DFConv2d
        else:
            conv_func = nn.Conv2d
        for i in range(num_convs):
            tower.append(conv_func(
                in_channels, in_channels,
                kernel_size=3, stride=1,
                padding=1, bias=True
            ))
            if norm == "GN":
                tower.append(nn.GroupNorm(32, in_channels))
            tower.append(nn.ReLU())
        self.add_module('{}_tower'.format(head),
                        nn.Sequential(*tower))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants