Skip to content

where is model_name.npz? #32

Description

@fancyerii

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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions