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

training and validation loss looks funny

Open munziliashali opened this issue 6 years ago • 4 comments

image Dear @meijieru and all,

I am using your model with additional cnn layer on my part to predict my custom dataset and got this funny-looking training loss and validation loss... Can you point out how should I fix this?

Thank you.

munziliashali avatar Oct 26 '18 09:10 munziliashali

Hi, did you solve your problem? Did you try using a smaller learning rate?

GSWS avatar Feb 02 '19 22:02 GSWS

Hi, there.

Yes, I solved it by using batchNormalization=True in every CNN layer.. good luck

munziliashali avatar Feb 04 '19 02:02 munziliashali

@munziliashali Hi,if you use batchNormalization=True,the pretrained model can not load straightly,how you solve this new problem.....Only one way I can come out——rebuild the network and get the convs(weights bias) from pretrained model by keys,but It's too trouble.....

zhengshangdong avatar Mar 16 '19 04:03 zhengshangdong

@munziliashali Hi,if you use batchNormalization=True,the pretrained model can not load straightly,how you solve this new problem.....Only one way I can come out——rebuild the network and get the convs(weights bias) from pretrained model by keys,but It's too trouble.....

does param 'strict' help? try model.load_state_dict(pretrained_dict, strict=False)

Heisenberg0391 avatar Jul 31 '19 05:07 Heisenberg0391