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

Inception Implementation Problem #1

Open
yunhenk opened this issue Apr 30, 2020 · 2 comments
Open

Inception Implementation Problem #1

yunhenk opened this issue Apr 30, 2020 · 2 comments

Comments

@yunhenk
Copy link

yunhenk commented Apr 30, 2020

class Inception1(nn.Module):
    def __init__(self, input_dim, conv_dim=64):
        super(Inception1, self).__init__()
        self.cnn = nn.Sequential(
            nn.Conv1d(input_dim, conv_dim, kernel_size=1),
            nn.ReLU(),
            nn.Conv1d(conv_dim, conv_dim, kernel_size=2),
            nn.ReLU()
        )
        self.global_avg_pool = nn.AvgPool1d(input_dim)
        self.global_max_pool = nn.MaxPool1d(input_dim)

    def forward(self, x):
        out = self.cnn(x)
        avg_pool, max_pool = mean_max(x)
        return torch.cat((avg_pool, max_pool), dim=1)

out in forward fuction seems not used? the same problem also exists in Inception2,Inception3

@yunhenk yunhenk changed the title Inception Implementation Probelm Inception Implementation Problem Apr 30, 2020
@iblahimovic
Copy link

also found this problem. And some problem exists in the implement of Enhanced RCNN

@daviddwlee84
Copy link
Owner

Thanks, the forward function of the Inceptions has been fixed.

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

3 participants