├── .gitignore ├── README.md ├── core ├── datasets │ ├── datasets.py │ ├── defi_attrcept.py │ ├── preprocess.py │ ├── program_translator.py │ └── utils.py ├── models │ ├── concept_embedding.py │ ├── model.py │ ├── symbolic.py │ └── utils.py ├── optimization.py └── utils.py ├── data ├── define_prog_12.json ├── features │ └── sgg_info.json ├── gqa_vocab_13.json ├── gqa_vocab_taxo.json ├── sg_all_concepts.json └── vcml │ ├── gqa_forbidden.json │ ├── gqa_hypernym.json │ ├── gqa_isinstanceof.json │ ├── gqa_most_common.json │ └── gqa_synonym.json └── scripts ├── cco_test.sh ├── cco_train.sh └── train_main.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/README.md -------------------------------------------------------------------------------- /core/datasets/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/datasets/datasets.py -------------------------------------------------------------------------------- /core/datasets/defi_attrcept.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/datasets/defi_attrcept.py -------------------------------------------------------------------------------- /core/datasets/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/datasets/preprocess.py -------------------------------------------------------------------------------- /core/datasets/program_translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/datasets/program_translator.py -------------------------------------------------------------------------------- /core/datasets/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/datasets/utils.py -------------------------------------------------------------------------------- /core/models/concept_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/models/concept_embedding.py -------------------------------------------------------------------------------- /core/models/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/models/model.py -------------------------------------------------------------------------------- /core/models/symbolic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/models/symbolic.py -------------------------------------------------------------------------------- /core/models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/models/utils.py -------------------------------------------------------------------------------- /core/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/optimization.py -------------------------------------------------------------------------------- /core/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/core/utils.py -------------------------------------------------------------------------------- /data/define_prog_12.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/define_prog_12.json -------------------------------------------------------------------------------- /data/features/sgg_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/features/sgg_info.json -------------------------------------------------------------------------------- /data/gqa_vocab_13.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/gqa_vocab_13.json -------------------------------------------------------------------------------- /data/gqa_vocab_taxo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/gqa_vocab_taxo.json -------------------------------------------------------------------------------- /data/sg_all_concepts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/sg_all_concepts.json -------------------------------------------------------------------------------- /data/vcml/gqa_forbidden.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/vcml/gqa_forbidden.json -------------------------------------------------------------------------------- /data/vcml/gqa_hypernym.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/vcml/gqa_hypernym.json -------------------------------------------------------------------------------- /data/vcml/gqa_isinstanceof.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/vcml/gqa_isinstanceof.json -------------------------------------------------------------------------------- /data/vcml/gqa_most_common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/vcml/gqa_most_common.json -------------------------------------------------------------------------------- /data/vcml/gqa_synonym.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/data/vcml/gqa_synonym.json -------------------------------------------------------------------------------- /scripts/cco_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/scripts/cco_test.sh -------------------------------------------------------------------------------- /scripts/cco_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/scripts/cco_train.sh -------------------------------------------------------------------------------- /scripts/train_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lizw14/CaliCO/HEAD/scripts/train_main.py --------------------------------------------------------------------------------