- Notifications
You must be signed in to change notification settings - Fork53
Code release for Hu et al. Natural Language Object Retrieval, in CVPR, 2016
License
NotificationsYou must be signed in to change notification settings
ronghanghu/natural-language-object-retrieval
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains the code for the following paper:
- R. Hu, H. Xu, M. Rohrbach, J. Feng, K. Saenko, T. Darrell,Natural Language Object Retrieval, in Computer Vision and Pattern Recognition (CVPR), 2016 (PDF)
@article{hu2016natural, title={Natural Language Object Retrieval}, author={Hu, Ronghang and Xu, Huazhe and Rohrbach, Marcus and Feng, Jiashi and Saenko, Kate and Darrell, Trevor}, journal={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition}, year={2016}}
Project Page:http://ronghanghu.com/text_obj_retrieval
- Download this repository or clone with Git, and then
cd
into the root directory of the repository. - Run
./external/download_caffe.sh
to download the SCRC Caffe version for this experiment. It will be downloaded and unzipped intoexternal/caffe-natural-language-object-retrieval
. This version is modified from theCaffe LRCN implementation. - Build the SCRC Caffe version in
external/caffe-natural-language-object-retrieval
, following theCaffe installation instruction.Remember to also build pycaffe.
- Download the pretrained models with
./models/download_trained_models.sh
. - Run the SCRC demo in
./demo/retrieval_demo.ipynb
withJupyter Notebook (IPython Notebook).
- Download the ReferIt dataset:
./datasets/download_referit_dataset.sh
. - Download pre-extracted EdgeBox proposals:
./data/download_edgebox_proposals.sh
. - You may need to add the SRCR root directory to Python's module path:
export PYTHONPATH=.:$PYTHONPATH
. - Preprocess the ReferIt dataset to generate metadata needed for training and evaluation:
python ./exp-referit/preprocess_dataset.py
. - Cache the scene-level contextual features to disk:
python ./exp-referit/cache_referit_context_features.py
. - Build training image lists and HDF5 batches:
python ./exp-referit/cache_referit_training_batches.py
. - Initialize the model parameters and train with SGD:
python ./exp-referit/initialize_weights_scrc_full.py && ./exp-referit/train_scrc_full_on_referit.sh
. - Evaluate the trained model:
python ./exp-referit/test_scrc_on_referit.py
.
Optionally, you may also train a SCRC version without contextual feature, usingpython ./exp-referit/initialize_weights_scrc_no_context.py && ./exp-referit/train_scrc_no_context_on_referit.sh
.
- Download the Kitchen dataset:
./datasets/download_kitchen_dataset.sh
. - You may need to add the SRCR root directory to Python's module path:
export PYTHONPATH=.:$PYTHONPATH
. - Build training image lists and HDF5 batches:
python exp-kitchen/cache_kitchen_training_batches.py
. - Train with SGD:
./exp-kitchen/train_scrc_kitchen.sh
. - Evaluate the trained model:
python exp-kitchen/test_scrc_on_kitchen.py
.
About
Code release for Hu et al. Natural Language Object Retrieval, in CVPR, 2016
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published