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

PreActBottleneck #145

Open
Juice808999 opened this issue Feb 23, 2024 · 0 comments
Open

PreActBottleneck #145

Juice808999 opened this issue Feb 23, 2024 · 0 comments

Comments

@Juice808999
Copy link

why did the author use PreActBottleneck as the name , but in the code it used GroupNorm and Relu after Convolution?

def forward(self, x):
    # Residual branch
    residual = x
    if hasattr(self, 'downsample'):
        residual = self.downsample(x)
        residual = self.gn_proj(residual)

    # Unit's branch
    y = self.relu(self.gn1(self.conv1(x)))
    y = self.relu(self.gn2(self.conv2(y)))
    y = self.gn3(self.conv3(y))

    y = self.relu(residual + y)
    return y
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

1 participant