karpathy / neuraltalk

NeuralTalk is a Python+numpy project for learning Multimodal Recurrent Neural Networks that describe images with sentences.
5.4k stars 1.32k forks source link

eval_sentence_predictions.py: error: too few arguments #52

Open NEUdeep opened 6 years ago

NEUdeep commented 6 years ago

~/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.

jhonpj commented 5 years ago

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

brightbsit commented 3 years ago

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

brightbsit commented 3 years ago

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?