This repo contains the official implementation of paper "Relation-aware Compositional Zero-shot Learning for Attribute-Object Pair Recognition".
pytorch.yaml
provided in the repo:
conda env create -n RCZL -f pytorch.yaml
conda activate RCZL
data/[mitstates|ut-zap50k]/
. Alternatively, remove the --pre_feat
flag from eval.sh
if you don't want to use the these features.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
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.
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}
}