Image_Captioning_AI_Challenger icon indicating copy to clipboard operation
Image_Captioning_AI_Challenger copied to clipboard

No such file or directory: 'log_dense_box_bn/infos_dense_box_bn.pkl'

Open cuteding opened this issue 7 years ago • 9 comments

数据和特征都准备好了,但是训练一直报错

read 240000 image features assigned 220000 images to split train assigned 10000 images to split val assigned 10000 images to split test Traceback (most recent call last): File "train.py", line 228, in train(opt) File "train.py", line 48, in train with open(os.path.join(opt.start_from, 'infos_'+opt.id+'.pkl')) as f: IOError: [Errno 2] No such file or directory: 'log_dense_box_bn/infos_dense_box_bn.pkl' Terminating BlobFetcher

cuteding avatar Mar 19 '19 15:03 cuteding

已找到解决方案 https://github.com/ruotianluo/ImageCaptioning.pytorch/issues/49

感谢罗博士的帮助!

dingdajun avatar Mar 20 '19 09:03 dingdajun

您好,请问这个问题具体是咋解决的,我遇到了和您一样的问题。我看了你引用的解决方案还是没有理解 @dingdajun

zmskye avatar May 08 '19 02:05 zmskye

Have you solved this problem? I encountered the same problem, please help!

danmeng90 avatar Jul 10 '19 04:07 danmeng90

Problem solved! Add --use_box 0 into run_train.sh.

danmeng90 avatar Jul 11 '19 04:07 danmeng90

Sorry to disturb you. @danmeng90 I still can't solve this problem even if I add --use_box 0 into run_train.sh. There are two "python train.py " in the run_train.sh file. I add "--use_box 0" after both of them. But it still report the same error.

mzh1996 avatar Jan 15 '20 06:01 mzh1996

Problem solved! Add --use_box 0 into run_train.sh.

Sorry to disturb you. @danmeng90 I still can't solve this problem even if I add --use_box 0 into run_train.sh. There are two "python train.py " in the run_train.sh file. I add "--use_box 0" after both of them. But it still report the same error.

mzh1996 avatar Jan 15 '20 06:01 mzh1996

数据和特征都准备好了,但是训练一直报错

read 240000 image features assigned 220000 images to split train assigned 10000 images to split val assigned 10000 images to split test Traceback (most recent call last): File "train.py", line 228, in train(opt) File "train.py", line 48, in train with open(os.path.join(opt.start_from, 'infos_'+opt.id+'.pkl')) as f: IOError: [Errno 2] No such file or directory: 'log_dense_box_bn/infos_dense_box_bn.pkl' Terminating BlobFetcher

Sorry to disturb you. @cuteding I still can't solve this problem. Have you solved this problem?

mzh1996 avatar Jan 15 '20 06:01 mzh1996

Problem solved! Add --use_box 0 into run_train.sh.

Sorry to disturb you. @danmeng90 I still can't solve this problem even if I add --use_box 0 into run_train.sh. There are two "python train.py " in the run_train.sh file. I add "--use_box 0" after both of them. But it still report the same error.

Try to modify "--use_bn 1 --use_box 1" into "--use_bn 0 --use_box 0" in run_train.sh file, which is located in both "python train.py" lines.

danmeng90 avatar Jan 15 '20 08:01 danmeng90

Thank you so much! Everything gets correct except the meteor evaluation. I will ignore it. Thanks again!

---Original--- From: "danmeng90"<[email protected]> Date: Wed, Jan 15, 2020 16:18 PM To: "ruotianluo/Image_Captioning_AI_Challenger"<[email protected]>; Cc: "Comment"<[email protected]>;"mzh1996"<[email protected]>; Subject: Re: [ruotianluo/Image_Captioning_AI_Challenger] No such file or directory: 'log_dense_box_bn/infos_dense_box_bn.pkl' (#13)

Problem solved! Add --use_box 0 into run_train.sh.

Sorry to disturb you. @danmeng90 I still can't solve this problem even if I add --use_box 0 into run_train.sh. There are two "python train.py " in the run_train.sh file. I add "--use_box 0" after both of them. But it still report the same error.

Try to modify "--use_bn 1 --use_box 1" into "--use_bn 0 --use_box 0" in run_train.sh file, which is located in both "python train.py" lines.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

mzh1996 avatar Jan 15 '20 13:01 mzh1996