{"action":"created","issue":{"url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/35","repository_url":"https://api.github.com/repos/yhenon/pytorch-retinanet","labels_url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/35/comments","events_url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/35/events","html_url":"https://github.com/yhenon/pytorch-retinanet/issues/35","id":372163882,"node_id":"MDU6SXNzdWUzNzIxNjM4ODI=","number":35,"title":"AssertionError during the validation phase","user":{"login":"akhanss","id":2861268,"node_id":"MDQ6VXNlcjI4NjEyNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/2861268?v=4","gravatar_id":"","url":"https://api.github.com/users/akhanss","html_url":"https://github.com/akhanss","followers_url":"https://api.github.com/users/akhanss/followers","following_url":"https://api.github.com/users/akhanss/following{/other_user}","gists_url":"https://api.github.com/users/akhanss/gists{/gist_id}","starred_url":"https://api.github.com/users/akhanss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhanss/subscriptions","organizations_url":"https://api.github.com/users/akhanss/orgs","repos_url":"https://api.github.com/users/akhanss/repos","events_url":"https://api.github.com/users/akhanss/events{/privacy}","received_events_url":"https://api.github.com/users/akhanss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-20T02:30:20Z","updated_at":"2018-11-15T03:13:42Z","closed_at":null,"author_association":"NONE","body":"Thanks for the great repo. I am facing the following issue when train a model during the validation phase.\r\n\r\n  File \"train.py\", line 156, in main\r\n    mAP = csv_eval.evaluate(dataset_val, retinanet) \r\n  File \"/home/a_khanss/pytorch-retinanet/csv_eval.py\", line 187, in evaluate\r\n    all_detections     = _get_detections(generator, retinanet, score_threshold=score_threshold, max_detections=max_det\r\n  File \"/home/a_khanss/pytorch-retinanet/csv_eval.py\", line 36, in _get_detections\r\n    scores, labels, boxes = retinanet(data['img'].permute(2, 0, 1).cuda().float().unsqueeze(dim=0))\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 477, in\r\n __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py\", line\r\n 124, in forward\r\n    return self.gather(outputs, self.output_device)\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py\", line\r\n 136, in gather\r\n    return gather(outputs, output_device, dim=self.dim)\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/scatter_gather.py\", lin\r\ne 67, in gather\r\n   return gather_map(outputs)\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/scatter_gather.py\", lin\r\ne 62, in gather_map\r\n    return type(out)(map(gather_map, zip(*outputs)))\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/scatter_gather.py\", lin\r\ne 54, in gather_map\r\n   return Gather.apply(target_device, dim, *outputs)\r\n  File \"/home/a_khanss/anaconda3/envs/pytorch-tf/lib/python3.6/site-packages/torch/nn/parallel/_functions.py\", line 52\r\n, in forward\r\n    assert all(map(lambda i: i.is_cuda, inputs))\r\nAssertionError"},"comment":{"url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/comments/438901825","html_url":"https://github.com/yhenon/pytorch-retinanet/issues/35#issuecomment-438901825","issue_url":"https://api.github.com/repos/yhenon/pytorch-retinanet/issues/35","id":438901825,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODkwMTgyNQ==","user":{"login":"mahaling","id":11140437,"node_id":"MDQ6VXNlcjExMTQwNDM3","avatar_url":"https://avatars0.githubusercontent.com/u/11140437?v=4","gravatar_id":"","url":"https://api.github.com/users/mahaling","html_url":"https://github.com/mahaling","followers_url":"https://api.github.com/users/mahaling/followers","following_url":"https://api.github.com/users/mahaling/following{/other_user}","gists_url":"https://api.github.com/users/mahaling/gists{/gist_id}","starred_url":"https://api.github.com/users/mahaling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahaling/subscriptions","organizations_url":"https://api.github.com/users/mahaling/orgs","repos_url":"https://api.github.com/users/mahaling/repos","events_url":"https://api.github.com/users/mahaling/events{/privacy}","received_events_url":"https://api.github.com/users/mahaling/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T03:13:42Z","updated_at":"2018-11-15T03:13:42Z","author_association":"NONE","body":"@Kwongrf the train.py already has that line of code out of the for loop.. I am still getting the same error.. Any idea on what else is wrong?"}}
{"actor":{"display_login":"mahaling"}}