Weight initialization problem
YIRuriZhongtian opened this issue · comments
YIRuriZhongtian commented
hi, I noticed that the code when initializing the weights is different from AttnGAN. Can you tell me the reason for doing this?
T2I_CL/AttnGAN+CL/code/miscc/utils.py
Lines 290 to 295 in 6f749b8
huiyegit commented
I think the weights may have the Dictionary type to store them, then we can use different keys (.i.e ''weight'' and ''weight_bar'') to get the values(weights).
YIRuriZhongtian commented
Thank you for your reply. Sorry, I still don’t understand the difference between these two.
if classname.find('Conv') != -1:
nn.init.orthogonal_(m.weight.data, 1.0)
Can I think that they have the same effect?
huiyegit commented
I think so. It is the same way to initialize the weight of 'Conv' layer.
YIRuriZhongtian commented
ok, thank you!