neuraltalk icon indicating copy to clipboard operation
neuraltalk copied to clipboard

eval_sentence_predictions.py: error: too few arguments

Open NEUdeep opened this issue 6 years ago • 3 comments

~/tf/neuraltalk-master$ python eval_sentence_predictions.py usage: eval_sentence_predictions.py [-h] [-b BEAM_SIZE] [--result_struct_filename RESULT_STRUCT_FILENAME] [-m MAX_IMAGES] [-d DUMP_FOLDER] checkpoint_path eval_sentence_predictions.py: error: too few arguments

when i run this script i got this error,is checkpoint path error or others?thank you.

NEUdeep avatar Jun 03 '18 08:06 NEUdeep

because it need at least a argument in eval_sentence_predictions.py, for parser.add_argument('checkpoint_path', type=str, help='the input checkpoint') , so checkpoint_path argument is to have to bring parameter in runing, meanwhile other arguments may not bring ,checkpoint_path is your checkpoint_path, such as cv/model_checkpoint_flickr8k_jhon-computer_baseline_17.29.p

jhonpj avatar Jul 06 '19 02:07 jhonpj

Did u fix this problem? i meet this issue too.

brightbsit avatar Nov 29 '20 11:11 brightbsit

because it need at least a argument in eval_sentence_predictions.py, for parser.add_argument('checkpoint_path', type=str, help='the input checkpoint') , so checkpoint_path argument is to have to bring parameter in runing, meanwhile other arguments may not bring ,checkpoint_path is your checkpoint_path, such as cv/model_checkpoint_flickr8k_jhon-computer_baseline_17.29.p

I changed checkpoint_path to "D:\neuraltalk\cv\model_checkpoint_flickr8k_DESKTOP-4PPS67A_baseline_17.27.p" but doesn't work. what can i do?

brightbsit avatar Dec 01 '20 10:12 brightbsit