-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cuda10 trian issue #55
Comments
Hi @mama110 If you use pytorch1.1, please refer to this: princeton-vl/CornerNet@3809432. And you need to delete all the compiled files before recompiling the corner pooling layers. |
@Duankaiwen I've deleted the compiled folders(build and cpools-xxxxxxxx.egg) and recompiled the corner pool layer, but It doesn't work. Did I miss something? |
Delete all files except src, init.py, setup.py |
I delete all compiled files and recompile the corner pooling layers, but the same error comes up. RuntimeError: Expected object of type Variable but found type CUDAType for argument #0 'result' (checked_cast_variable at /pytorch/torch/csrc/autograd/VariableTypeManual.cpp:173) By the way, the solution princeton-vl/CornerNet@3809432 solve the problem when I‘m compiling the corner pooling layer, but when I run the train.py, aforementioned error comes up. |
Please show the full log |
kun@pupa:~/master/CenterNet-master$ python3 train.py CenterNet-104 Traceback (most recent call last): |
please show your |
bottom_pool.cpp (other 3 cpp files are similar to this one) #include <torch/extension.h> std::vectorat::Tensor pool_forward(
} std::vectorat::Tensor pool_backward(
} PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { |
Is the problem solved? I have encountered a similar problem... |
hi all, i faced the same error. I found the solution in the corner-net from princeton-vl. |
when I run python3 train.py CenterNet-52, I meet this error(my video card is rtx 2080ti and I'm using CUDA10 and Pytorch 1.1, and I've modify the batch_size and chunk_sizes to 2):
RuntimeError: Expected object of type Variable but found type CUDAType for argument #0 'result' (checked_cast_variable at /pytorch/torch/csrc/autograd/VariableTypeManual.cpp:173)
Is there a way that I can run this code by pytorch 1.1(cuda 10)? Thanks
The text was updated successfully, but these errors were encountered: