weixin_39782709
weixin_39782709
2020-11-29 14:35

RuntimeError: Expected object of type Variable but found type CUDAType for argument #0 'result'

Anyone can help me with this problem here? This is the logs. Really appreciate it.

RuntimeError: Expected object of type Variable but found type CUDAType for argument #0 'result' (checked_cast_variable at /opt/conda/conda-bld/pytorch_1556653099582/work/torch/csrc/autograd/VariableTypeManual.cpp:173) frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7f270e481dc5 in /home/supernode/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/lib/libc10.so) frame #1: torch::autograd::VariableType::checked_cast_variable(at::Tensor&, char const*, int) + 0x169 .............................................

该提问来源于开源项目:Duankaiwen/CenterNet

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39982580 weixin_39982580 5月前

    same problem, pytorch 1.1.0 cuda 9 and nvidia gtx 2080ti

    点赞 评论 复制链接分享
  • weixin_39782709 weixin_39782709 5月前

    Same environment, it's the torch version's problem. Try pytorch=0.4.1 with cuda9.0

    点赞 评论 复制链接分享
  • weixin_39982580 weixin_39982580 5月前

    Torch version bug but i need torch1.1.0 environment, any help

    点赞 评论 复制链接分享
  • weixin_39683368 weixin_39683368 5月前

    我是titan rtx,采用pytorch1.1和cuda10出问题,采用pytorch1.0与cuda9也出问题

    点赞 评论 复制链接分享
  • weixin_39818662 weixin_39818662 5月前

    https://github.com/princeton-vl/CornerNet/pull/98/commits/380943208c35054e0fd30e34d361ebd93e5dd069

    点赞 评论 复制链接分享
  • weixin_39637921 weixin_39637921 5月前

    , have you solved the problem?

    点赞 评论 复制链接分享
  • weixin_39635084 weixin_39635084 5月前

    Using the _cpools layer in CornerNet-Lite works for me. Just replace it and setup again. https://github.com/princeton-vl/CornerNet-Lite/tree/master/core/models/py_utils/_cpools Thanks! pytorch 1.1.0 cuda 10

    点赞 评论 复制链接分享

相关推荐