SE_DenseNet icon indicating copy to clipboard operation
SE_DenseNet copied to clipboard

More variant architecture of se_densnet need to try and test

Open John1231983 opened this issue 5 years ago • 8 comments

Hi, thanks for sharing your experiment results. I checked and found that you may have some redundant code in the _Dense layer that adds thr seblock in of convolution. You added it in loop (for) and after first convolution. Why do you add seblock in _Dense_layer again? Thanks

John1231983 avatar Nov 08 '18 02:11 John1231983

@John1231983 Hi, I found redundant code which you pointed, I think it's my mistake. For testing se_densenet, I have write some scripts to test se_densenet on cifar10 datasset today. And I will test whether redundant code removed can influence train-test result.Let's wait a few days to see result, and I will update README in a week.

ygean avatar Nov 09 '18 07:11 ygean

Good. And consider to remove seblock after transition block also. We often use seblock after denseblock only. Transition block only helps to reduce feature size

John1231983 avatar Nov 09 '18 11:11 John1231983

@John1231983 Yes, thank you for your suggestions, I will take it and make more comparative experiments.

ygean avatar Nov 10 '18 06:11 ygean

@John1231983 Hi, John. I update my test result just now, pls check it. Thank you very much.

ygean avatar Nov 15 '18 02:11 ygean

Good job, But the result shows that with and without seblock has similar performance. In full code, you have added the sebock in Trans layer and Dense layer. How about add them in the loop function and remove in the _Transition and _Dense layer? I mean add in https://github.com/zhouyuangan/SE_DenseNet/blob/e5bb2fda0e49d50c274e29330c0948d3aa4a4376/se_densenet_full.py#L209

and https://github.com/zhouyuangan/SE_DenseNet/blob/e5bb2fda0e49d50c274e29330c0948d3aa4a4376/se_densenet_full.py#L219

And remove it in https://github.com/zhouyuangan/SE_DenseNet/blob/e5bb2fda0e49d50c274e29330c0948d3aa4a4376/se_densenet_full.py#L167

https://github.com/zhouyuangan/SE_DenseNet/blob/e5bb2fda0e49d50c274e29330c0948d3aa4a4376/se_densenet_full.py#L137

Thanks

John1231983 avatar Nov 15 '18 02:11 John1231983

@John1231983 It's worthy to make a test, I will update new result after job done, pls keep watching.Thanks.

ygean avatar Nov 15 '18 06:11 ygean

The new test result has updated. I will release train and test code in a few days.

ygean avatar Nov 17 '18 04:11 ygean

Good. That is what I expect. You also can try something as:

  1. Sebock in loop only after denseblock ( remove seblock in transittion)
  2. Seblock in loop only after transition block ( remove seblock in denseblock)

Actually, we do not know where seblock will be good for densenet architecture. In my opinion, the first case may get better result

John1231983 avatar Nov 17 '18 08:11 John1231983