README.md

March 29, 2022 · View on GitHub

Install APIs

Please replace the empty directories pycocotools and visual_genome_python_driver with the one with the same name in COCO Python API and Visual Genome Python Driver.

Setup downloaded datasets

COCO

Please download COCO2017 and annotations to coco:

coco/
    ├── annotations/
    │   ├── instances_train2017.json
    │   ├── instances_val2017.json
    │   ├── ... 
    ├── train2017/
    ├── val2017/
    └── ...

Visual Genome

Please download the images to vg:

vg/
    ├── VG_100k/
    │   ├── 1.jpg
    │   ├── ... 
    └── ...
  • Preprocessed annotations can be directly used to train explainers is also provided as vg/vg_labels.pkl and vg/vg_objects.json.