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
RuntimeError: Expected object of backend CUDA but got backend CPU for argument #2 'other' #3
Comments
Seems that some value need to be converted to cuda. You can just add a cuda() at that line ? |
Thanks. It confuses me that I just clone the project without any modifications, and the environment is ok. Also, I could run other 3D detection model, e.g. PV-RCNN with corresponding config file, and the result is normal. You know, the most difference bwtween centerpoint_rcnn and pv-rcnn is the part of DenseHead. I have checked the variances that maybe occur error in centerpoint_head.py carefully, but unfortunately the bug still exists.Could you please give me a hand? And any instructions would be appreciated.Regards. ---- Replied Message ----FromTianwei ***@***.***>Date05/25/2021 21:34 ***@***.***> ***@***.******@***.***>SubjectRe: [tianweiy/CenterPoint-KITTI] RuntimeError: Expected object of backend CUDA but got backend CPU for argument #2 'other' (#3)
Seems that some value need to be converted to cuda. You can just add a cuda() at that line ?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#3 (comment)",
"url": "#3 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
I mean adding a cuda() to this line you referenced #2 (comment) Does this work? If not please paste the full log, this is easier than sentences for debugging |
Thanks. The error information is as follows: |
either center_int or feature_map_size |
like center_int[0].cuda() < feature_map_size[0].cuda() ... |
try this
|
I convert the type of feature_map_size to int32 by adding .to(torch.int32). |
Hi, I followed the installation and get_start files to complete necessary running environment, and this bug happened. How should I solve this, and please help me !
Thanks!
The text was updated successfully, but these errors were encountered: