This code requires the following:
- Python 3.6
- Pytorch 1.2.0
- scikit-learn
- pyyaml
Download the dataset (AWA1/AWA2/CUB/FLO) from the work of Xian et al. (CVPR2017), and save corresponding data into directory ./data/
.
Run Co-GZSL.py:
Set parameter values in './Co_para/{dataset}_4w_2s.yaml'
Modify training dataset in Co-GZSL.py