Skip to content

An official PyTorch implementation of "Hierarchical Visual Primitive Experts for Compositional Zero-Shot Learning", ICCV 2023.

Notifications You must be signed in to change notification settings

HanjaeKim98/CoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoT

Code for the paper Hierarchical Visual Primitive Experts for Compositional Zero-Shot Learning, ICCV 2023.

Hanjae Kim, Jiyoung Lee, Seongheon Park, Kwanghoon Sohn

Installation

  1. Please create conda environment and install dependencies following the below steps.
conda env create --file environment.yml
conda activate cot
  1. Download C-GQA and VAW-CZSL dataset.
  1. Download Glove word embedding.
  1. Unzip all downloaded files and place it to the dataset folder following the below structures:
dataset
└─cgqa
│    └─compositional-split-natural
│    └─images
└─vaw-czsl
│    └─...
└─glove
     └─glove.6B.300d.txt
     └─glove_vocab.txt

Training & Testing

  1. Update dataset directory in config/*.yml files.
  2. To run training code, type
python train.py --cfg config/vaw-czsl.yml
  1. For testing, type
python test.py --cfg config/vaw-czsl.yml --load vaw-czsl.pth

Acknowledgement

Our code is based on the following excellent projects;

Citation

@inproceedings{kim2023hierarchical,
  title={Hierarchical Visual Primitive Experts for Compositional Zero-Shot Learning},
  author={Kim, Hanjae and Lee, Jiyoung and Park, Seongheon and Sohn, Kwanghoon},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={5675--5685},
  year={2023}
}

About

An official PyTorch implementation of "Hierarchical Visual Primitive Experts for Compositional Zero-Shot Learning", ICCV 2023.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages