This repository provides dataset splits and code for Paper:
Disentangling before Composing: Learning Invariant Disentangled Features for Compositional Zero-Shot Learning
-
Clone the repo.
-
We recommend using Anaconda for environment setup. To create the environment and activate it, please run:
conda env create --file environment.yml
conda activate czsl
-
The dataset and splits can be downloaded from: CZSL-dataset.
-
To run DBC for UT-Zappos dataset:
Training:
python train.py --config config/zappos.yml
Testing:
python test.py --logpath LOG_DIR
Note: Most of the code is an improvement based on https://github.com/ExplainableML/czsl.