SNARE Dataset

March 27, 2024 ยท View on GitHub

SNARE dataset and code for MATCH and LaGOR models.

Paper and Citation

Language Grounding with 3D Objects

@article{snare,
  title={Language Grounding with {3D} Objects},
  author={Jesse Thomason and Mohit Shridhar and Yonatan Bisk and Chris Paxton and Luke Zettlemoyer},
  journal={arXiv},
  year={2021},
  url={https://arxiv.org/abs/2107.12514}
}

Installation

Clone

$ git clone https://github.com/snaredataset/snare.git

$ virtualenv -p $(which python3) --system-site-packages snare_env # or whichever package manager you prefer
$ source snare_env/bin/activate

$ pip install --upgrade pip
$ pip install -r requirements.txt

Edit root_dir in cfgs/train.yaml to reflect your working directory.

Download Data and Checkpoints

Download pre-extracted image features, language features, and pre-trained checkpoints from here and put them in the data/ folder.

Usage

Zero-shot CLIP Classifier

$ python train.py train.model=zero_shot_cls train.aggregator.type=maxpool 

MATCH

$ python train.py train.model=single_cls train.aggregator.type=maxpool 

LaGOR

$ python train.py train.model=rotator train.aggregator.type=two_random_index train.lr=5e-5 train.rotator.pretrained_cls=<path_to_pretrained_single_cls_ckpt>

Scripts

Run scripts/train_classifiers.sh and scripts/train_rotators.sh to reproduce the results from the paper.

To train the rotators, edit scripts/train_rotators.sh and replace the PRETRAINED_CLS with the path to the checkpoint you wish to use to train the rotator:

PRETRAINED_CLS="<root_path>/clip-single_cls-random_index/checkpoints/<ckpt_name>.ckpt'"

Preprocessing

If you want to extract CLIP vision and language features from raw images:

  1. Download models-screenshot.zip from ShapeNetSem, and extract it inside ./data/.
  2. Edit and run python scripts/extract_clip_features.py to save shapenet-clipViT32-frames.json.gz and langfeat-512-clipViT32.json.gz

Leaderboard

Please send your ...test.json prediction results to Mohit Shridhar. We will get back to you as soon as possible.

Instructions:

  • Include a name for your model, your team name, and affiliation (if not anonymous).
  • Submissions are limited to a maximum of one per week. Please do not create fake email accounts and send multiple submissions.

Rankings:

RankModelAllVisualBlind
1DA4LG
(Anonymous)
5 Feb 2024
81.988.575.0
2MAGiC
(Mitra et al.)
8 Jun 2023
81.787.775.4
3DA4LG
(Anonymous)
27 Jan 2024
80.987.773.7
4VLG
(Corona et al.)
15 Mar 2022
79.086.071.7
5LOCKET
(Anonymous)
14 Oct 2022
79.086.171.5
6VLG
(Corona et al.)
13 Nov 2021
78.785.871.3
7LOCKET
(Anonymous)
23 Oct 2022
77.785.569.5
8LAGOR
(Thomason et. al)
15 Sep 2021
77.084.369.4
9MATCH
(Thomason et. al)
15 Sep 2021
76.483.768.7