Like written in the README.md, I downloaded the pretrained model and put it in the './ckpt' directory. But when I run:
python main.py --reload --previous_dir "cpn"
I got this error:
Traceback (most recent call last):
File "main.py", line 117, in <module>
model_path = sorted(glob.glob(os.path.join(opt.previous_dir, '*.pth')))[0]
IndexError: list index out of range
After reviewing the code, I found the reason lies in opt.previous_dir, it is set as "cpn" by the code above. I added some to the main.py in line 117, and it looks like this:
Like written in the README.md, I downloaded the pretrained model and put it in the './ckpt' directory. But when I run:
I got this error:
After reviewing the code, I found the reason lies in opt.previous_dir, it is set as "cpn" by the code above. I added some to the main.py in line 117, and it looks like this:
Then I could evaluate the pretrained model.