fartashf / vsepp

PyTorch Code for the paper "VSE++: Improving Visual-Semantic Embeddings with Hard Negatives"
Apache License 2.0
489 stars 125 forks source link

how to get coco_precomp_vocab.pkl? #7

Closed chirstinaFan closed 6 years ago

chirstinaFan commented 6 years ago

I can not open this file.Can you tell me how to build it?

fartashf commented 6 years ago

You can simply download the vocabularies from here: http://www.cs.toronto.edu/~faghri/vsepp/vocab.tar

Please refer to the instructions in the section "Download Data" in the readme file.

chirstinaFan commented 6 years ago

I want to know when I use my data,how to build our vocab.pkl?

fartashf commented 6 years ago

You would need to modify and run vocab.py. Look at the how supported datasets are handled in that file. https://github.com/fartashf/vsepp/blob/master/vocab.py