Skip to content

This is the official code for the paper NEUCORE: Neural Concept Reasoning for Composed Image Retrieval (UniReps Workshop @ NeurIPS23).

License

Notifications You must be signed in to change notification settings

Tree-Shu-Zhao/NEUCORE.pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEUCORE code release

This repository contains the code release of NEUCORE, from our paper:

NEUCORE: Neural Concept Reasoning for Composed Image Retrieval Shu Zhao, Huijuan Xu. UniReps Workshop @ Neural Information Processing Systems, 2023.

If this code and/or paper is useful in your research, please cite:

@article{zhao2023neucore,
  title={NEUCORE: Neural Concept Reasoning for Composed Image Retrieval},
  author={Zhao, Shu and Xu, Huijuan},
  journal={arXiv preprint arXiv:2310.01358},
  year={2023}
}

Architecture

Task

Preparations

Environment

Create the environment for running our code as follow:

conda create --name neucore python=3.8
conda activate neucore
pip install -r requirements.txt

Note: using cuda version 11.1 (please modify requirements.txt otherwise)

Datasets

Please refer to ARTEMIS repo to prepare datasets.

Datasets should be put into data folder.

Extract concepts from sentences by NLTK:

python scripts/extract_concepts_<dataset>.py

Training

sh ./scripts/train.sh <dataset>

Evaluation

Pre-trained model: google drive

sh ./scripts/test.sh <dataset> <checkpoint_path>

Acknowledgement

Our code is based on ARTEMIS. Thanks for their great work!

About

This is the official code for the paper NEUCORE: Neural Concept Reasoning for Composed Image Retrieval (UniReps Workshop @ NeurIPS23).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published