Skip to content

yeyingdege/refcoco_data_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

To install requirements:

pip install -r requirements.txt

Setting up dataset

The data/ folder should look like this:

data
├── refcoco
|   ├── anns
|   |   ├── refcoco
|   |   ├── refcoco+
|   |   ├── refcocog
│   ├── images
|   │   ├── train2014  # images from train 2014
│   ├── masks
|   |   ├── refcoco
|   |   ├── ...

  1. Download MSCOCO and link the train2014 folder to data/refcoco/images/train2014.

  2. Download refcoco/masks and link it to data/refcoco/masks

  3. Download refcoco/anns and put it under data/refcoco/

Build Spatial Reasoning Dataset

  1. Run the following script to process RefCOCO dataset. It generates new annotation files under data/refcoco/anns_spatial
python datasets/build_spatial_anno.py
  1. New dataloader (under development): datasets/SpatialReasoningDataset.py

Old dataloader

Run datasets/refer_segmentation.py at root directory to dive into the dataloader and visualize annotations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages