{"action":"created","issue":{"url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/5","repository_url":"https://api.github.com/repos/yikang-li/FactorizableNet","labels_url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/5/comments","events_url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/5/events","html_url":"https://github.com/yikang-li/FactorizableNet/issues/5","id":360199132,"node_id":"MDU6SXNzdWUzNjAxOTkxMzI=","number":5,"title":"RuntimeError: cuda runtime error (8) : invalid device function at /pytorch/torch/lib/THC/generic/THCTensorMath.cu:35","user":{"login":"LinXin2018","id":40270939,"node_id":"MDQ6VXNlcjQwMjcwOTM5","avatar_url":"https://avatars3.githubusercontent.com/u/40270939?v=4","gravatar_id":"","url":"https://api.github.com/users/LinXin2018","html_url":"https://github.com/LinXin2018","followers_url":"https://api.github.com/users/LinXin2018/followers","following_url":"https://api.github.com/users/LinXin2018/following{/other_user}","gists_url":"https://api.github.com/users/LinXin2018/gists{/gist_id}","starred_url":"https://api.github.com/users/LinXin2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinXin2018/subscriptions","organizations_url":"https://api.github.com/users/LinXin2018/orgs","repos_url":"https://api.github.com/users/LinXin2018/repos","events_url":"https://api.github.com/users/LinXin2018/events{/privacy}","received_events_url":"https://api.github.com/users/LinXin2018/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-14T08:06:22Z","updated_at":"2018-09-27T00:55:12Z","closed_at":"2018-09-27T00:55:12Z","author_association":"NONE","body":"Hello author:\r\n    When I trying to run your code, it rports:\r\n\r\n`THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCTensorMath.cu line=35 error=8 : invalid device function\r\nTraceback (most recent call last):\r\n  File \"train_FN.py\", line 390, in <module>\r\n    main()\r\n  File \"train_FN.py\", line 277, in main\r\n    use_gt_boxes=args.use_gt_boxes)\r\n  File \"/home/linxin/FactorizableNet/models/HDN_v2/engines_v1.py\", line 123, in test\r\n    use_gt_boxes=use_gt_boxes)\r\n  File \"/home/linxin/FactorizableNet/models/HDN_v2/factorizable_network_v4.py\", line 271, in evaluate\r\n    object_result, predicate_result = self.forward_eval(im_data, im_info,)\r\n  File \"/home/linxin/FactorizableNet/models/HDN_v2/factorizable_network_v4.py\", line 232, in forward_eval\r\n    pooled_object_features = self.roi_pool_object(features, object_rois).view(len(object_rois), -1)\r\n  File \"/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py\", line 357, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/linxin/FactorizableNet/lib/roi_align/modules/roi_align.py\", line 16, in forward\r\n    self.spatial_scale)(features, rois)\r\n  File \"/home/linxin/FactorizableNet/lib/roi_align/functions/roi_align.py\", line 22, in forward\r\n    output = features.new(num_rois, num_channels, self.aligned_height, self.aligned_width).zero_()\r\nRuntimeError: cuda runtime error (8) : invalid device function at /pytorch/torch/lib/THC/generic/THCTensorMath.cu:35\r\n`\r\n### I have changed the lib/make.sh file since my CUDA_ARCH do not support 6.0. The make.sh seems to work for me, only having a few warning. After reading [I](https://github.com/jwyang/faster-rcnn.pytorch/issues/110\r\n) have re-built the make.sh for a few times, the cuda error does not overcomed.\r\n`/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBHWD_updateGradInput’:\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:190:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable]\r\n         real inBottomRight=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:189:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable]\r\n         real inBottomLeft=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:188:14: warning: unused variable ‘inTopRight’ [-Wunused-variable]\r\n         real inTopRight=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:187:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable]\r\n         real inTopLeft=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:186:14: warning: unused variable ‘v’ [-Wunused-variable]\r\n         real v=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c: In function ‘BilinearSamplerBCHW_updateGradInput’:\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:441:14: warning: unused variable ‘inBottomRight’ [-Wunused-variable]\r\n         real inBottomRight=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:440:14: warning: unused variable ‘inBottomLeft’ [-Wunused-variable]\r\n         real inBottomLeft=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:439:14: warning: unused variable ‘inTopRight’ [-Wunused-variable]\r\n         real inTopRight=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:438:14: warning: unused variable ‘inTopLeft’ [-Wunused-variable]\r\n         real inTopLeft=0;\r\n              ^\r\n/home/linxin/FactorizableNet/lib/roi_crop/src/roi_crop.c:437:14: warning: unused variable ‘v’ [-Wunused-variable]\r\n         real v=0;\r\n              ^\r\n`\r\n### My environment is CUDA8.0 pytorch0.3.1 python2.7\r\n### Hope to recieve your reply！\r\n###THX\r\n"},"comment":{"url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/comments/424919239","html_url":"https://github.com/yikang-li/FactorizableNet/issues/5#issuecomment-424919239","issue_url":"https://api.github.com/repos/yikang-li/FactorizableNet/issues/5","id":424919239,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDkxOTIzOQ==","user":{"login":"yikang-li","id":10878664,"node_id":"MDQ6VXNlcjEwODc4NjY0","avatar_url":"https://avatars0.githubusercontent.com/u/10878664?v=4","gravatar_id":"","url":"https://api.github.com/users/yikang-li","html_url":"https://github.com/yikang-li","followers_url":"https://api.github.com/users/yikang-li/followers","following_url":"https://api.github.com/users/yikang-li/following{/other_user}","gists_url":"https://api.github.com/users/yikang-li/gists{/gist_id}","starred_url":"https://api.github.com/users/yikang-li/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yikang-li/subscriptions","organizations_url":"https://api.github.com/users/yikang-li/orgs","repos_url":"https://api.github.com/users/yikang-li/repos","events_url":"https://api.github.com/users/yikang-li/events{/privacy}","received_events_url":"https://api.github.com/users/yikang-li/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T00:55:12Z","updated_at":"2018-09-27T00:55:12Z","author_association":"OWNER","body":"It ends at the line 86 because we have an exception catch there. That is not the position where the error happened. I highly recommend you to use ```pdb``` to run the code step by step to check where it actually happens. \r\n\r\nNow I will close the issue. Feel free to leave comments at this thread. "}}
{"actor":{"display_login":"yikang-li"}}