Closed zhixiongzh closed 4 years ago
No, I didn't consider to run OpenPCDet
with cpu only mode, so currently it couldnot run on CPU.
Because there are some operations that are implemented with CUDA on the running of PartA2 / PV-RCNN and the post processing.
yeah, it is reasonable to run on GPU.
Hi, @sshaoshuai , I have successfully run without "cuda" with PointPillar At first, I remove the cuda module on my pc, but when I run demo.py, GPU was still used, which I found in "nvidia-smi". However, when I change
batch_dict[key] = torch.from_numpy(val).float().cuda()
to batch_dict[key] = torch.from_numpy(val).float().cpu()
model.cuda()
to model.cpu()
diagonal = torch.sqrt(dxa ** 2 + dya ** 2)
xa=xa
xt=xt
......
to
diagonal = torch.sqrt(dxa ** 2 + dya ** 2).cpu()
xa=xa.cpu()
xt=xt.cpu()
......
boxes = boxes[order].contiguous()
to boxes = boxes[order].contiguous().cuda()
Then the GPU is not taken used. The speed is slower from 0.1s per frame to 0.8s per frame. But my pc has successfully compiled the library with the help of CUDA before I did this.
My question is, when I want to do the experiment on a pc without nvidia-GPU, without cuda installed, I can not compile the OpenPCDet library. Is there any solution to compile when there is no cuda? Maybe some changes in the setup.py?
Oh no. When I run
watch -n 0.1 nvidia-smi
I found GPU is still 2% taken used.
Feel feel to re-open it if there are any updates.
@zhixiongzh Have you ever tried set CUDA_VISIBLE_DEVICES=-1?
@zhixiongzh Have you ever tried set CUDA_VISIBLE_DEVICES=-1? No, I didn't. But I think CUDA_VISIBLE_DEVICES=-1 means use all available GPUs instead of non GPU. You can give it a try since I am not longer responsible for the project.
@zhixiongzh how to deal with the iou3d without GPU CUDA?hope your reply,thanks.
Hi, I have successfully detected on my own data. Thanks for the great open tool!
If I don't need a realtime detection, can I run OpenPCDet without GPU? if it is possible, where can I disable the GPU in the code?
since spconv needs cuda support, it would be difficult to run without GPU?