Skip to content
/ CaliCO Public

Code for ICCV2021 paper: Calibrating Concepts and Operations: Towards Symbolic Reasoning on Real Images

Notifications You must be signed in to change notification settings

Lizw14/CaliCO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaliCO

This is pytorch implementation for ICCV21 paper: Calibrating Concepts and Operations: Towards Symbolic Reasoning on Real Images

Prerequisites

The codebase is tested with Python3.8 and Pytorch1.7.

Part of this codebase is built on NSCL. Great thanks to the authors! Please refer to the prerequisites of NSCL codebase. Specially, install Jacinle:

git clone https://github.com/vacancy/Jacinle --recursive
export PATH=<path_to_jacinle>/bin:$PATH

Data preparation

Download the GQA dataset (ver1.2) into data/orig_data. Download the extracted images features from this link into data/features. The data directory should look like:

data/orig_data/questions1.2
 - train_balanced_questions.json
 - val_balanced_questions.json
 - testdev_balanced_questions.json
data/orig_data/sceneGraphs
 - train_sceneGraphs.json
 - val_sceneGraphs.json
data/features
 - sgg_features.h5
 - sgg_info.json
...

Testing

Download the trained model from this link and put it under ckpt/cco_trained. Then run the following command. It should reach accuracy 55.81 (on testdev split).

sh scripts/cco_test.sh

Training

Run the following command to train:

sh scripts/cco_train.sh

Analysis

The dataset splits (filtered by operation weights, easy/hard) as in Table 4 and Fig 5 can be downloaded here.

Citation

@InProceedings{li2021calibrating,
    author = {Li, Zhuowan and Stengel-Eskin, Elias and Zhang, Yixiao and Xie, Cihang and Tran, Quan and Van Durme, Benjamin and Yuille, Alan},
    title = {Calibrating Concepts and Operations: Towards Symbolic Reasoning on Real Images},
    booktitle = {Proceedings of the IEEE International Conference on Computer Vision (ICCV)},
    year = {2021}
}

About

Code for ICCV2021 paper: Calibrating Concepts and Operations: Towards Symbolic Reasoning on Real Images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published