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

Hello #12

Closed
greg2paris opened this issue Oct 9, 2018 · 2 comments
Closed

Hello #12

greg2paris opened this issue Oct 9, 2018 · 2 comments

Comments

@greg2paris
Copy link

First I want to thank you for your implementation of Squeeze-and-Excitation Networks in keras.
I tried your network and it worked very well, but I got a question.
As I underderstand, resnet is very similar to resnext.
Resnet reduces the size of the input 5 times, for exemple :
256 -> 128 , 128->64, 64->32, 32->16, 16->8.
But when I used the code you provided to create a resnext I end up with only 3 reduction of the size :
256->128, 128->64, 64->32
Is it normal?
Does this affect the precision of the network?

i used this inputs to create the network :
resnet_base = SEResNext(input_shape=input_shape,
#depth=155,
depth=56,
cardinality=64,
width=4,
weight_decay=5e-4,
include_top=False,
weights=None,
input_tensor=input_layer,
pooling=None)

@titu1994
Copy link
Owner

titu1994 commented Oct 9, 2018

This is more suitable on the SE GitHub, but it makes no difference where I answer.

The fact is that the ResNeXt implementation is a placeholder while we wait for Grouped Convolutions in Keras/Tensorflow.

Therefore the ResNext model I wrote is not based on the ImageNet version with 5 pooling layers, but the Cifar 10 version with 3 pooling layers.

However, I do not recommend you use my ResNext implementation, and stick to PyTorch or Torch versions, as they properly support grouped convolution

@titu1994 titu1994 closed this as completed Oct 9, 2018
@greg2paris
Copy link
Author

greg2paris commented Oct 9, 2018 via email

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