Generating Easy-to-Understand Referring Expressions for Target Identifications
Jupyter Notebook
18
32 commits
updated Aug 30, 2019

If you use rerank, please install cplex by conda install -c ibmdecisionoptimization cplex.
Training with refcocog and refgta requires 16 GB and 32 GB gpu respectively for the default setting. If the memory is insufficient, please reduce the batch size.
Baseline code is here.
Please go to this directory.
Download RefCOCO, RefCOCO+, RefCOCOg and RefGTA(our dataset).
Run below codes or download preprocessed data and extracted features from here.
Run prepro.py.
python prepro.py --dataset refgta --splitBy utokyo
python scripts/extract_target_emb_feats.py --dataset refgta --splitBy utokyo --batch_size 64
# local spatial features
python scripts/extract_target_feats.py --dataset refgta --splitBy utokyo --batch_size 1
python scripts/extract_image_feats.py --dataset refgta --splitBy utokyo --batch_size 64
First, train reinforcer.
If you train with ranking on RefGTA, please add -r.
python scripts/train_vlsim.py --dataset refgta --splitBy utokyo --id sp
Second, train speaker using reinforcer whose parameters are fixed.
If you train with ranking on RefGTA, please add -r.
python train.py --dataset refgta --splitBy utokyo --id sp
Pretrained model is here.
Generated sentences are here.
python eval_generation.py --dataset refgta --splitBy utokyo --split test --batch_size 1 --id sp
python rerank_generated_captions.py --dataset refgta --splitBy utokyo --split test --id sp
python eval_comprehension.py --dataset refgra --splitBy utokyo --split test --mode 0 --id sp
Our codes are based on this repositry.
MIT License
32 commits
Jupyter Notebook
84.7%
Python
15.2%
Generating Easy-to-Understand Referring Expressions for Target Identifications
Jupyter Notebook
18
32 commits
updated Aug 30, 2019

If you use rerank, please install cplex by conda install -c ibmdecisionoptimization cplex.
Training with refcocog and refgta requires 16 GB and 32 GB gpu respectively for the default setting. If the memory is insufficient, please reduce the batch size.
Baseline code is here.
Please go to this directory.
Download RefCOCO, RefCOCO+, RefCOCOg and RefGTA(our dataset).
Run below codes or download preprocessed data and extracted features from here.
Run prepro.py.
python prepro.py --dataset refgta --splitBy utokyo
python scripts/extract_target_emb_feats.py --dataset refgta --splitBy utokyo --batch_size 64
# local spatial features
python scripts/extract_target_feats.py --dataset refgta --splitBy utokyo --batch_size 1
python scripts/extract_image_feats.py --dataset refgta --splitBy utokyo --batch_size 64
First, train reinforcer.
If you train with ranking on RefGTA, please add -r.
python scripts/train_vlsim.py --dataset refgta --splitBy utokyo --id sp
Second, train speaker using reinforcer whose parameters are fixed.
If you train with ranking on RefGTA, please add -r.
python train.py --dataset refgta --splitBy utokyo --id sp
Pretrained model is here.
Generated sentences are here.
python eval_generation.py --dataset refgta --splitBy utokyo --split test --batch_size 1 --id sp
python rerank_generated_captions.py --dataset refgta --splitBy utokyo --split test --id sp
python eval_comprehension.py --dataset refgra --splitBy utokyo --split test --mode 0 --id sp
Our codes are based on this repositry.
MIT License
32 commits
Jupyter Notebook
84.7%
Python
15.2%