ustclby / Unsupervised-Domain-Specific-Deblurring

Implementation of "Unsupervised Domain-Specific Deblurring via Disentangled Representations"
109 stars 28 forks source link

KeyError:'enc_c' appeared while testing #11

Open b0ba11 opened 3 years ago

b0ba11 commented 3 years ago

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?