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

The OutputTransition of the VNet model exists with one more than Conv3D #30

Open
XmySz opened this issue Aug 7, 2023 · 0 comments
Open

Comments

@XmySz
Copy link

XmySz commented Aug 7, 2023

According to the structure diagram of the paper, the final OutputTransition should look like the following:

class OutputTransition(nn.Module):
    def __init__(self, in_channels, classes, elu):
        super(OutputTransition, self).__init__()
        self.classes = classes
        # self.conv1 = nn.Conv3d(in_channels, classes, kernel_size=5, padding=2)    # 修改
        self.conv1 = nn.Conv3d(in_channels, classes, kernel_size=1)
        self.bn1 = torch.nn.BatchNorm3d(classes)

        self.conv2 = nn.Conv3d(classes, classes, kernel_size=1)
        self.relu1 = ELUCons(elu, classes)

    def forward(self, x):
        out = self.relu1(self.bn1(self.conv1(x)))
        # out = self.conv2(out) # 修改
        return out

We simply use the only 111 convolutional layer to make the number of channels the same as the classes.

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