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

some question about resnet-12 #35

Open
Sword-keeper opened this issue Jun 29, 2020 · 3 comments
Open

some question about resnet-12 #35

Sword-keeper opened this issue Jun 29, 2020 · 3 comments

Comments

@Sword-keeper
Copy link

Hi I have some questions about resnet-12 . I have found some models which also use resnet-12 to extract feature. However,I found that your's and other's resnet-12 are not exactly same. For example, the layers's channel in your resnet is 160,320,640. But others may follows the resnet setting. 128,256,512. Could you tell me why you design like this? I tried to search some information about resnet-12 on the Internet. But i can't found. Could you give me some information about resnet-12 ? Thank you!

@yaoyao-liu
Copy link
Owner

Hi,

The numbers of channels in our ResNet-12 are 64, 128, 256, and 512 respectively.

weights = self.construct_residual_block_weights(weights, 3, 3, 64, conv_initializer, dtype, 'block1')
weights = self.construct_residual_block_weights(weights, 3, 64, 128, conv_initializer, dtype, 'block2')
weights = self.construct_residual_block_weights(weights, 3, 128, 256, conv_initializer, dtype, 'block3')
weights = self.construct_residual_block_weights(weights, 3, 256, 512, conv_initializer, dtype, 'block4')

In PyTorch version, we use ResNet-25 instead of ResNet-12, following FEAT. We'll provide a ResNet-12 PyTorch implementation later. If you hope to implement ResNet-12 yourself, you may follow MetaOptNet and DeepEMD.

@Sword-keeper
Copy link
Author

Hi I have another question. In resnet's paper, the first conv layer's kernel size is 7. However in your torch code, the first conv layer's kernel size is 3. What's more, I also found some code which use resnet and they set first conv layer's kernel size is 3 or even delete this layer . Could you tell me what's the reason you change it?

@yaoyao-liu
Copy link
Owner

For the backbone in the PyTorch implementation, we follow FEAT. That means, we're using exactly the same hyperparameters (e.g., kernel size) as FEAT's implementation. You may directly refer to their paper for details: Supplementary Material C, Implementation Details.

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

2 participants