{"action":"created","issue":{"url":"https://api.github.com/repos/kuangliu/torchcv/issues/44","repository_url":"https://api.github.com/repos/kuangliu/torchcv","labels_url":"https://api.github.com/repos/kuangliu/torchcv/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/kuangliu/torchcv/issues/44/comments","events_url":"https://api.github.com/repos/kuangliu/torchcv/issues/44/events","html_url":"https://github.com/kuangliu/torchcv/issues/44","id":377538421,"node_id":"MDU6SXNzdWUzNzc1Mzg0MjE=","number":44,"title":"Problem in getting anchor box","user":{"login":"AlanStark","id":26146781,"node_id":"MDQ6VXNlcjI2MTQ2Nzgx","avatar_url":"https://avatars2.githubusercontent.com/u/26146781?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanStark","html_url":"https://github.com/AlanStark","followers_url":"https://api.github.com/users/AlanStark/followers","following_url":"https://api.github.com/users/AlanStark/following{/other_user}","gists_url":"https://api.github.com/users/AlanStark/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanStark/subscriptions","organizations_url":"https://api.github.com/users/AlanStark/orgs","repos_url":"https://api.github.com/users/AlanStark/repos","events_url":"https://api.github.com/users/AlanStark/events{/privacy}","received_events_url":"https://api.github.com/users/AlanStark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T19:02:38Z","updated_at":"2018-11-05T19:41:29Z","closed_at":null,"author_association":"NONE","body":"When I train the FPNSSD on my dataset, I encounter the problem as below. \r\n\r\nTraceback (most recent call last):\r\n  File \"train.py\", line 37, in <module>\r\n    box_coder = FPNSSDBoxCoder()\r\n  File \"/home/masterpy/GitLab/Aerial-Detection/torchcv/models/fpnssd/box_coder.py\", line 15, in __init__\r\n    self.anchor_boxes = self._get_anchor_boxes(input_size=torch.tensor([512.,512.]))\r\n  File \"/home/masterpy/GitLab/Aerial-Detection/torchcv/models/fpnssd/box_coder.py\", line 58, in _get_anchor_boxes\r\n    xy = (xy*grid_size).view(fm_h,fm_w,1,2).expand(fm_h,fm_w,9,2)\r\nRuntimeError: Expected object of type torch.LongTensor but found type torch.FloatTensor for argument #2 'other'\r\n\r\nCould you help me resolve it?"},"comment":{"url":"https://api.github.com/repos/kuangliu/torchcv/issues/comments/436008519","html_url":"https://github.com/kuangliu/torchcv/issues/44#issuecomment-436008519","issue_url":"https://api.github.com/repos/kuangliu/torchcv/issues/44","id":436008519,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjAwODUxOQ==","user":{"login":"AlanStark","id":26146781,"node_id":"MDQ6VXNlcjI2MTQ2Nzgx","avatar_url":"https://avatars2.githubusercontent.com/u/26146781?v=4","gravatar_id":"","url":"https://api.github.com/users/AlanStark","html_url":"https://github.com/AlanStark","followers_url":"https://api.github.com/users/AlanStark/followers","following_url":"https://api.github.com/users/AlanStark/following{/other_user}","gists_url":"https://api.github.com/users/AlanStark/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanStark/subscriptions","organizations_url":"https://api.github.com/users/AlanStark/orgs","repos_url":"https://api.github.com/users/AlanStark/repos","events_url":"https://api.github.com/users/AlanStark/events{/privacy}","received_events_url":"https://api.github.com/users/AlanStark/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T19:41:29Z","updated_at":"2018-11-05T19:41:29Z","author_association":"NONE","body":"When I train the FPNSSD on my dataset, I encounter the problem of LongTensor / FloatTensor mismatch problem all the time. Does it result from PyTorch Version conflict? "}}
{"actor":{"display_login":"AlanStark"}}