Skip to content

iterative shrinking for referring expression grounding using deep reinforcement learning

Notifications You must be signed in to change notification settings

insomnia94/ISREG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Python 2.7
  • Pytorch 0.4
  • CUDA 9.0

Installation the environment

Please first refer to MattNet and KPRN (Knowledge-guided Pairwise Reconstruction Network for Weakly Supervised Referring Expression Grounding) to prepare related data. Then replace all files in this repository. "loaders" and "evals" should be placed in the "./lib/" and the main model file "model.py" should be placed in "./lib/layers/".

Pre-trained models

All pre-trained models and related data can be downloaded here. "mrcn_cmr_with_st.json","mrcn_cmr_with_st.pth","mrcn_cmr_with_st_critic.pth","mrcn_cmr_with_st_Re.pth" should be replaced in "./output/dataset_split/id_num/". "sent_extract.json" should be replaced in "./cache/sub_obj_wds/dataset_split/".

Generate the Triads

You can generate the triad file thourgh our previous work DTWREG.

Supervised Training

python ./tools/train_SL.py

Reinforcement Training

python ./tools/train_AC.py

Evaluation

python ./eval.py

About

iterative shrinking for referring expression grounding using deep reinforcement learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages