daoyuan98 / Relation-CZSL

Official implementation of the TMM paper "Relation-aware Compositional Zero-shot Learning for Attribute-Object Pair Recognition".
MIT License
8 stars 1 forks source link

Relation-CZSL

This repo contains the official implementation of paper "Relation-aware Compositional Zero-shot Learning for Attribute-Object Pair Recognition".

Requirements

Setup

Data and Model Preparation

Evaluation

Modify variables at line 4-8 in eval.sh to a proper batch size (depending on the VRAM you have), the path to the model, and the path to the data etc. Then run

bash eval.sh

Training

Change the datapath in line3 in train_[utzap50k|mitstates].sh to the path you stored data, then run

bash train_utzap50k.sh
bash train_mitstates.sh

to start the training.

Reference

If you find this repository helpful in your research, please cite the following paper:

@article{Xu2021RZSL,
  author={Xu, Ziwei and Wang, Guangzhi and Wong, Yongkang and Kankanhalli, Mohan S.},
  journal={IEEE Transactions on Multimedia}, 
  title={Relation-aware Compositional Zero-shot Learning for Attribute-Object Pair Recognition}, 
  year={2021},
  volume={},
  number={},
  pages={1-1},
  doi={10.1109/TMM.2021.3104411}
}