KeyError:'enc_c' appeared while testing
b0ba11 opened this issue · 0 comments
b0ba11 commented
this is my code for testing :python test.py --dataroot ../datasets/test/test_blur/ --num 1 --resume ../models/VGGFace16.pth --name job_name --orig_dir ../datasets/test/test_orig --percep face --result_dir ../datasets/test/results
And error occured:
Traceback (most recent call last):
File "test.py", line 105, in
main()
File "test.py", line 41, in main
model.resume(opts.resume, train=False)
File "D:\Study\deblur\Unsupervised-Domain-Specific-Deblurring-master\src\model.py", line 326, in resume
self.enc_c.load_state_dict(checkpoint['enc_c'])
KeyError: 'enc_c'
There is no result, how to solve the problem?