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

where is the gating operation? #3

Open
jcxu0 opened this issue Oct 24, 2018 · 3 comments
Open

where is the gating operation? #3

jcxu0 opened this issue Oct 24, 2018 · 3 comments

Comments

@jcxu0
Copy link

jcxu0 commented Oct 24, 2018

Thanks for sharing the project,I have one problem, in the paper, gating operation follws the each [k,1,1] temporal convolutions, but in the code from S3DG_Pytorch.py, I can't find the gating operation...

class STConv3d(nn.Module):
    def __init__(self,in_planes,out_planes,kernel_size,stride,padding=0):
        super(STConv3d, self).__init__()
        self.conv = nn.Conv3d(in_planes, out_planes, kernel_size=(1,kernel_size,kernel_size),stride=(1,stride,stride),padding=(0,padding,padding))
        self.conv2 = nn.Conv3d(out_planes,out_planes,kernel_size=(kernel_size,1,1),stride=(stride,1,1),padding=(padding,0,0))

        self.bn=nn.BatchNorm3d(out_planes, eps=1e-3, momentum=0.001, affine=True)
        self.relu = nn.ReLU(inplace=True)
        
        self.bn2=nn.BatchNorm3d(out_planes, eps=1e-3, momentum=0.001, affine=True)
        self.relu2=nn.ReLU(inplace=True)
        
        nn.init.normal(self.conv2.weight,mean=0,std=0.01)
        nn.init.constant(self.conv2.bias,0)
    
    def forward(self,x):
        x=self.conv(x)
        #x=self.conv2(x)
        x=self.bn(x)
        x=self.relu(x)
        x=self.conv2(x)
        x=self.bn2(x)
        x=self.relu2(x)
        return x
@buaa-luzhi
Copy link

@jcxu0 i have the same question, do you know how to implement, thank you!

@syangdung
Copy link

i have the same question, i refer to other repositories and find that the common way is to utilize the squeeze and excitation to implement the feature gating mechanism.

@tobeatraceur
Copy link

i have the same question, i refer to other repositories and find that the common way is to utilize the squeeze and excitation to implement the feature gating mechanism.

Could you please share the links of the repos you mentioned? Thanks!

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

4 participants