ruotianluo / self-critical.pytorch

Unofficial pytorch implementation for Self-critical Sequence Training for Image Captioning. and others.
MIT License
998 stars 278 forks source link

FILE NOT FOUNDERROR #233

Open lszcaption opened 4 years ago

lszcaption commented 4 years ago

hi,when I run : python tools/evals.py --model model.pth --infos_path infos.pkl --image_folder blah --num_images 10.it tell me no such file or directory:"infos.pkl".so I find csdn tell me that 如果文件夹路径不存在,则创建文件夹路径. def init(self,path='./'):

save the path

   self.path=path
   if not os.path.exists(path):
          os.mkdir(path)

and then I do the same,but still have this error. would you tell me how to solve it?

ruotianluo commented 4 years ago

这个名字要换的,换成你训练出来的模型的model.pth 和infos.pkl,或者你下载model zoo里面的