Find model of latest epoch: output/128_shortcut1_inject1_none/checkpoint/weights.49.pth
Traceback (most recent call last):
File "test.py", line 80, in <module>
attgan.load(find_model(join('output', args.experiment_name, 'checkpoint'), args.load_epoch))
File "/home/people/16206131/reproduce_attgan/attgan.py", line 270, in load
self.G.load_state_dict(states['G'])
File "/home/people/16206131/reproduce_attgan/attgan/lib64/python3.6/site-packages/torch/nn/modules/module.py", line 845, 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: "enc_layers.0.layers.0.weight", "enc_layers.0.layers.1.weight", "enc_layers.0.layers.1.bias", "enc_layers.0.layers.1.ru$
Unexpected key(s) in state_dict: "module.enc_layers.0.layers.0.weight", "module.enc_layers.0.layers.1.weight", "module.enc_layers.0.layers.1.bias", "$
Hi I have found that the pre-trained weights do not work with the scripts here. The weights do not match the Generator.
In addition, I trained the model from scratch, with
and when I tried to run
it I got this error