ghostnet.pytorch icon indicating copy to clipboard operation
ghostnet.pytorch copied to clipboard

Custom Weight Initialization

Open glenn-jocher opened this issue 4 years ago • 3 comments

I noticed you use code for custom weight initialization: https://github.com/iamhankai/ghostnet.pytorch/blob/2c90e67d8c33c44ec1bad12c9686f645b0d4de08/ghost_net.py#L162-L169

I've not seen this before. Is there a reason behind this specific strategy? Do you know the effect this has on the training, and have you compared this with the pytorch default weight initialization? Thank you!

glenn-jocher avatar Apr 10 '20 20:04 glenn-jocher

kaiming_normal_ is a commonly used initialization strategy.

iamhankai avatar Apr 11 '20 05:04 iamhankai

@iamhankai thank you! Do you know what the default pytorch weights init strategy is?

I suppose this makes for easier comparisons with the TF version of ghostnet to use the same strategy on both?

glenn-jocher avatar Apr 11 '20 17:04 glenn-jocher

@glenn-jocher TF version of ghostnet also used Kaiming normal initialization.

iamhankai avatar Apr 12 '20 04:04 iamhankai