You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where CONFIG_FILE is the path to the configuration file of the model. We suggest to use the fast_eval flag to speed up the test phase.
Note that the folder configs contains configuration files for Co-CGE and all other methods, i.e. CGE in configs/cge, CompCos in configs/compcos, and the other methods in configs/baselines.
To train for OW-CZSL a non-open world method, just add --open_world after the command. E.g. for running SymNet in the open world scenario on Mit-States, the command is:
Note 1: Not all methods are compatible with the fast_eval (e.g. SymNet is one)
Note 2: To create a new config, all the available arguments are indicated in flags.py.
Test
Closed World. To test a model, the code is simple:
python test.py --logpath LOG_DIR
where LOG_DIR is the directory containing the logs of a model.
Open World. To test a model in the open world setting, run:
@inproceedings{mancini2022learning,
title={Learning Graph Embeddings for Open World Compositional Zero-shot Learning},
author={Mancini, M and Naeem, MF and Xian, Y and Akata, Zeynep},
booktitle={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2022},
organization={IEEE}
}