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

Regarding final classifier layer implementation #3

Open
dipamgoswami opened this issue Jun 15, 2022 · 0 comments
Open

Regarding final classifier layer implementation #3

dipamgoswami opened this issue Jun 15, 2022 · 0 comments

Comments

@dipamgoswami
Copy link

dipamgoswami commented Jun 15, 2022

Hello,
Thanks for the well documented code.

I have a query regarding the final classifier layer used in SSUL implementation and the architecture mentioned in the paper. The paper states that the final layer consists of 1*1 filters, one for each output class and in incremental steps, only the 1*1 filters are learned.
But in the code, the classifier layer is as follows:
self.head = nn.ModuleList( [ nn.Sequential( nn.Conv2d(256, 256, 3, padding=1, bias=False), nn.BatchNorm2d(256), nn.ReLU(inplace=True), nn.Conv2d(256, c, 1) ) for c in num_classes] )
This entire head is learned for each new set of classes and the weight transfer is done for the entire head as well.

Can you clarify this ? Can I reproduce the results using only the final conv2d layer like self.head = [nn.Conv2d(256, c, 1) for c in num_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