├── .gitignore ├── LICENSE.txt ├── README.md ├── exp_clevr ├── cfgs │ └── lcgn.yaml ├── cfgs_ref │ └── lcgn_ref.yaml ├── data │ ├── answers_clevr.txt │ ├── build_clevr_imdb.py │ ├── build_clevr_locplus_imdb.py │ ├── collect_clevr_locplus_vocab.py │ ├── extract_features.py │ ├── features │ │ └── spatial │ │ │ └── .keep │ ├── vocabulary_clevr.txt │ └── vocabulary_clevr_locplus.txt ├── main.py └── main_ref.py ├── exp_gqa ├── cfgs │ ├── lcgn_objects.yaml │ ├── lcgn_scene_graph.yaml │ └── lcgn_spatial.yaml ├── data │ ├── answers_gqa.txt │ ├── attr_gqa.txt │ ├── gloves_gqa_no_pad.npy │ ├── name_gqa.txt │ ├── rel_gqa.txt │ └── vocabulary_gqa.txt └── main.py ├── models_clevr ├── __init__.py ├── config.py ├── input_unit.py ├── lcgn.py ├── model.py ├── ops.py ├── output_unit.py └── vis.py ├── models_gqa ├── __init__.py ├── config.py ├── input_unit.py ├── lcgn.py ├── model.py ├── ops.py ├── output_unit.py └── vis.py └── util ├── __init__.py ├── attr_dict.py ├── boxes.py ├── clevr_feature_loader ├── __init__.py └── feature_loader.py ├── clevr_test └── CLEVR_eval_with_q_type.py ├── clevr_train ├── __init__.py └── data_reader.py ├── gqa_feature_loader ├── __init__.py └── feature_loader.py ├── gqa_train └── data_reader.py ├── positional_encoding.py └── text_processing.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/README.md -------------------------------------------------------------------------------- /exp_clevr/cfgs/lcgn.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/cfgs/lcgn.yaml -------------------------------------------------------------------------------- /exp_clevr/cfgs_ref/lcgn_ref.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/cfgs_ref/lcgn_ref.yaml -------------------------------------------------------------------------------- /exp_clevr/data/answers_clevr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/answers_clevr.txt -------------------------------------------------------------------------------- /exp_clevr/data/build_clevr_imdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/build_clevr_imdb.py -------------------------------------------------------------------------------- /exp_clevr/data/build_clevr_locplus_imdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/build_clevr_locplus_imdb.py -------------------------------------------------------------------------------- /exp_clevr/data/collect_clevr_locplus_vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/collect_clevr_locplus_vocab.py -------------------------------------------------------------------------------- /exp_clevr/data/extract_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/extract_features.py -------------------------------------------------------------------------------- /exp_clevr/data/features/spatial/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exp_clevr/data/vocabulary_clevr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/vocabulary_clevr.txt -------------------------------------------------------------------------------- /exp_clevr/data/vocabulary_clevr_locplus.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/data/vocabulary_clevr_locplus.txt -------------------------------------------------------------------------------- /exp_clevr/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/main.py -------------------------------------------------------------------------------- /exp_clevr/main_ref.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_clevr/main_ref.py -------------------------------------------------------------------------------- /exp_gqa/cfgs/lcgn_objects.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/cfgs/lcgn_objects.yaml -------------------------------------------------------------------------------- /exp_gqa/cfgs/lcgn_scene_graph.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/cfgs/lcgn_scene_graph.yaml -------------------------------------------------------------------------------- /exp_gqa/cfgs/lcgn_spatial.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/cfgs/lcgn_spatial.yaml -------------------------------------------------------------------------------- /exp_gqa/data/answers_gqa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/answers_gqa.txt -------------------------------------------------------------------------------- /exp_gqa/data/attr_gqa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/attr_gqa.txt -------------------------------------------------------------------------------- /exp_gqa/data/gloves_gqa_no_pad.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/gloves_gqa_no_pad.npy -------------------------------------------------------------------------------- /exp_gqa/data/name_gqa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/name_gqa.txt -------------------------------------------------------------------------------- /exp_gqa/data/rel_gqa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/rel_gqa.txt -------------------------------------------------------------------------------- /exp_gqa/data/vocabulary_gqa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/data/vocabulary_gqa.txt -------------------------------------------------------------------------------- /exp_gqa/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/exp_gqa/main.py -------------------------------------------------------------------------------- /models_clevr/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models_clevr/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/config.py -------------------------------------------------------------------------------- /models_clevr/input_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/input_unit.py -------------------------------------------------------------------------------- /models_clevr/lcgn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/lcgn.py -------------------------------------------------------------------------------- /models_clevr/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/model.py -------------------------------------------------------------------------------- /models_clevr/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/ops.py -------------------------------------------------------------------------------- /models_clevr/output_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/output_unit.py -------------------------------------------------------------------------------- /models_clevr/vis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_clevr/vis.py -------------------------------------------------------------------------------- /models_gqa/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models_gqa/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/config.py -------------------------------------------------------------------------------- /models_gqa/input_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/input_unit.py -------------------------------------------------------------------------------- /models_gqa/lcgn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/lcgn.py -------------------------------------------------------------------------------- /models_gqa/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/model.py -------------------------------------------------------------------------------- /models_gqa/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/ops.py -------------------------------------------------------------------------------- /models_gqa/output_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/output_unit.py -------------------------------------------------------------------------------- /models_gqa/vis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/models_gqa/vis.py -------------------------------------------------------------------------------- /util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/attr_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/attr_dict.py -------------------------------------------------------------------------------- /util/boxes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/boxes.py -------------------------------------------------------------------------------- /util/clevr_feature_loader/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/clevr_feature_loader/feature_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/clevr_feature_loader/feature_loader.py -------------------------------------------------------------------------------- /util/clevr_test/CLEVR_eval_with_q_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/clevr_test/CLEVR_eval_with_q_type.py -------------------------------------------------------------------------------- /util/clevr_train/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/clevr_train/data_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/clevr_train/data_reader.py -------------------------------------------------------------------------------- /util/gqa_feature_loader/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /util/gqa_feature_loader/feature_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/gqa_feature_loader/feature_loader.py -------------------------------------------------------------------------------- /util/gqa_train/data_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/gqa_train/data_reader.py -------------------------------------------------------------------------------- /util/positional_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/positional_encoding.py -------------------------------------------------------------------------------- /util/text_processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ronghanghu/lcgn/HEAD/util/text_processing.py --------------------------------------------------------------------------------