kelvinxu / arctic-captions

960 stars 349 forks source link

where is model_name.npz? #32

Open fancyerii opened 8 years ago

fancyerii commented 8 years ago

any tutorial for the codes? I can hardly understand all these files. I run the ipynb cells and can't find model_name.npz. It seems dev_list and image_path also need be specified.

datasets = {'flickr8k': (flickr8k.load_data, flickr8k.prepare_data), 'flickr30k': (flickr30k.load_data, flickr30k.prepare_data), 'coco': (coco.load_data, coco.prepare_data)}

location of the model file, the pkl file should be named "model_name.npz.pkl"

model= 'model_name.npz'

location of the devset split file like the ones in /splits

dev_list = './splits/coco_val.txt' image_path = './path_to_coco_dev_image/'

load model model_options

with open('%s.pkl'%model, 'rb') as f: options = pkl.load(f)

print 'Loading: ' + options['dataset']

flist = [] with open(dev_list, 'r') as f: for l in f: flist.append(l.strip())

pankajb64 commented 7 years ago

+1. Kindly mention where to get the models from so we can get the code to run.

pankajb64 commented 7 years ago

Got it from #35