You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thers are some errors when I run 'python test-deploy.py' directly, I have tried different pytorch version but it didn't work, could you help me? thanks!
Hi, thers are some errors when I run 'python test-deploy.py' directly, I have tried different pytorch version but it didn't work, could you help me? thanks!
Traceback (most recent call last):
File "test-deploy.py", line 112, in
netG.load_state_dict(torch.load('netD.pth', map_location=lambda storage, loc:storage))
File "/root/anaconda3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 777, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Generator:
Missing key(s) in state_dict: "preprocess.0.weight", "preprocess.0.bias", "preprocess.1.running_mean", "preprocess.1.weight", "preprocess.1.bias", "preprocess.1.running_var", "preprocess.3.weight", "preprocess.3.bias", "preprocess.4.running_mean", "preprocess.4.weight", "preprocess.4.bias", "preprocess.4.running_var", "preprocess.6.weight", "preprocess.6.bias", "preprocess.7.running_mean", "preprocess.7.weight", "preprocess.7.bias", "preprocess.7.running_var", "block1.0.weight", "block1.0.bias", "block1.1.running_mean", "block1.1.weight", "block1.1.bias", "block1.1.running_var", "block2.0.weight", "block2.0.bias", "block2.1.running_mean", "block2.1.weight", "block2.1.bias", "block2.1.running_var", "block2.3.weight", "block2.3.bias", "block2.4.running_mean", "block2.4.weight", "block2.4.bias", "block2.4.running_var", "block3.0.weight", "block3.0.bias", "block3.1.running_mean", "block3.1.weight", "block3.1.bias", "block3.1.running_var", "block3.3.weight", "block3.3.bias", "block3.4.running_mean", "block3.4.weight", "block3.4.bias", "block3.4.running_var", "block3.6.weight", "block3.6.bias", "block3.7.running_mean", "block3.7.weight", "block3.7.bias", "block3.7.running_var", "deconv_out.weight", "deconv_out.bias".
Unexpected key(s) in state_dict: "main.0.weight", "main.0.bias", "main.2.weight", "main.2.bias", "main.4.weight", "main.4.bias", "linear.weight", "linear.bias".
(/root/anaconda3)
The text was updated successfully, but these errors were encountered: