Hello, the model_best.pth.tar obtained after training in the first stage is used to perform the following error in the second stage:
Traceback ( most recent call last):
File "train.py", line 119, in
main()
File "train.py", line 53, in main
model = FDGANModel(opt)
File "/home/zhihui/Documents/ZHIHUI/FD-GAN/fdgan/model.py", line 28, in init
self._init_models()
File "/home/zhihui/Documents/ZHIHUI/FD-GAN/fdgan/model.py", line 55, in _init_models
self.net_E.load_state_dict(state_dict)
File "/home/zhihui/.local/lib/python3.5/site-packages/torchnn/modules/module.py",line 522, in load_state_dict
.format(name))
KeyError: 'unexpected key "state_dict" in state_dict'
Hello, the model_best.pth.tar obtained after training in the first stage is used to perform the following error in the second stage: Traceback ( most recent call last): File "train.py", line 119, in
main()
File "train.py", line 53, in main
model = FDGANModel(opt)
File "/home/zhihui/Documents/ZHIHUI/FD-GAN/fdgan/model.py", line 28, in init
self._init_models()
File "/home/zhihui/Documents/ZHIHUI/FD-GAN/fdgan/model.py", line 55, in _init_models
self.net_E.load_state_dict(state_dict)
File "/home/zhihui/.local/lib/python3.5/site-packages/torchnn/modules/module.py",line 522, in load_state_dict
.format(name))
KeyError: 'unexpected key "state_dict" in state_dict'