{"action":"closed","issue":{"url":"https://api.github.com/repos/OdingdongO/BD_XJTU/issues/4","repository_url":"https://api.github.com/repos/OdingdongO/BD_XJTU","labels_url":"https://api.github.com/repos/OdingdongO/BD_XJTU/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/OdingdongO/BD_XJTU/issues/4/comments","events_url":"https://api.github.com/repos/OdingdongO/BD_XJTU/issues/4/events","html_url":"https://github.com/OdingdongO/BD_XJTU/issues/4","id":320533732,"number":4,"title":"KeyError: 'unexpected key \"base_model.0.weight\" in state_dict'","user":{"login":"struggling-man","id":20451328,"avatar_url":"https://avatars3.githubusercontent.com/u/20451328?v=4","gravatar_id":"","url":"https://api.github.com/users/struggling-man","html_url":"https://github.com/struggling-man","followers_url":"https://api.github.com/users/struggling-man/followers","following_url":"https://api.github.com/users/struggling-man/following{/other_user}","gists_url":"https://api.github.com/users/struggling-man/gists{/gist_id}","starred_url":"https://api.github.com/users/struggling-man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struggling-man/subscriptions","organizations_url":"https://api.github.com/users/struggling-man/orgs","repos_url":"https://api.github.com/users/struggling-man/repos","events_url":"https://api.github.com/users/struggling-man/events{/privacy}","received_events_url":"https://api.github.com/users/struggling-man/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-05T19:06:54Z","updated_at":"2018-05-06T02:25:00Z","closed_at":"2018-05-06T02:25:00Z","author_association":"NONE","body":"Traceback (most recent call last):\r\n  File \"/home/sky/work/soft/PycharmProjects/untitled1/BD_XJTU/predict/pred_BDXJTU.py\", line 59, in <module>\r\n    model.load_state_dict(torch.load(resume))\r\n  File \"/home/sky/work/environment/python/anaconda/envs/baidu_match/lib/python2.7/site-packages/torch/nn/modules/module.py\", line 522, in load_state_dict\r\n    .format(name))\r\nKeyError: 'unexpected key \"base_model.0.weight\" in state_dict'\r\n\r\n在预测阶段报的错误，查找了下，这个是模型加载的一个错误，有点迷茫，调试也不太了解原因是什么？有没有大佬跑过的？"}}
{"actor":{"display_login":"OdingdongO"}}