modify in 2024/08/21 tested on python3.10 with refcoco
-
Download coco2014 train datasets from :https://cocodataset.org/#download (about 13 GB) and extract into
refer/data/images/mscoco/images/train2014 -
clone this repositories https://github.com/cocodataset/cocoapi and following instruction to compile Pythonapi.
-
Download refcoco here
https://web.archive.org/web/20220413011718/https://bvisionweb1.cs.unc.edu/licheng/referit/data/refcoco.zip
and extract into
refer/data -
install following package:
pip install scikit-image
-
Run
makebefore using the code. It will generate_mask.cand_mask.soinexternal/folder. If anything goes wrong , just usepip install xxxto install the missing package. -
Modify
refer.pyline 336, change data_root into your absolute path. -
Run
python3 refer.py