apoorvumang / CronKGQA

ACL 2021: Question Answering over Temporal Knowledge Graphs
MIT License
93 stars 19 forks source link

Complex pretrained embeddings for embedkgqa_complex ? #9

Closed xdcui-nlp closed 2 years ago

xdcui-nlp commented 3 years ago

hi,I have another question,I trained embedkgqa_complex,but when I to eval it , the following error occurred: Traceback (most recent call last): File "./train_qa_model.py", line 551, in qa_model.load_state_dict(torch.load(filename)) File "/opt/current-env/anaconda3/envs/tf_2.x/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1223, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for QA_model_EmbedKGQA_complex: Missing key(s) in state_dict: "entity_embedding.weight", "time_embedding.weight". Unexpected key(s) in state_dict: "tkbc_model.embeddings.0.weight", "tkbc_model.embeddings.1.weight", "tkbc_model.embeddings.2.weight", "entity_time_embedding.weight", "answer_type_embedding.weight", "combine_all_entities_func_forReal.weight", "combine_all_entities_func_forReal.bias", "combine_all_entities_func_forCmplx.weight", "combine_all_entities_func_forCmplx.bias", "linear2.weight", "linear2.bias", "bn2.weight", "bn2.bias", "bn2.running_mean", "bn2.running_var", "bn2.num_batches_tracked".

Originally posted by @AdienQ in https://github.com/apoorvumang/CronKGQA/issues/8#issuecomment-960497334