rinne ohara
rinne ohara
I also had this problem, but I solved it, and it was easy to get by looking at Missing Key and Unexpected Key, each Module differed by a "." Punctuation,...
> RuntimeError: Error(s) in loading state_dict for dehaze: Missing key(s) in state_dict: "tran_est.layer2.layer2_conv.weight", "tran_est.layer2.layer2_bn.weight", "tran_est.layer2.layer2_bn.bias", "tran_est.layer2.layer2_bn.running_mean", "tran_est.layer2.layer2_bn.running_var", "tran_est.layer3.layer3_conv.weight", "tran_est.layer3.layer3_bn.weight", "tran_est.layer3.layer3_bn.bias", "tran_est.layer3.layer3_bn.running_mean", "tran_est.layer3.layer3_bn.running_var", "tran_est.layer4.layer4_conv.weight", "tran_est.layer4.layer4_bn.weight", "tran_est.layer4.layer4_bn.bias", "tran_est.layer4.layer4_bn.running_mean", "tran_est.layer4.layer4_bn.running_var", "tran_est.layer5.layer5_conv.weight", "tran_est.layer5.layer5_bn.weight", "tran_est.layer5.layer5_bn.bias",...
via adding "strict = False" between "del load" and "if strict",the problem fixed
> 请问你解决了吗 我也遇到了这样的问题 dahaze22中,block module 把里面的参数%d后面的点删掉就行,