CompositionalGAN icon indicating copy to clipboard operation
CompositionalGAN copied to clipboard

RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected

Open theartsnetwork opened this issue 3 years ago • 0 comments

When I am trying to run this on Colab

!bash /content/CompositionalGAN/scripts/chair_table/train_objCompose_paired.sh

It gives following error

THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=50 error=38 : no CUDA-capable device is detected Traceback (most recent call last): File "train_composition.py", line 14, in opt = TrainOptions().parse() File "/content/CompositionalGAN/options/base_options.py", line 86, in parse torch.cuda.set_device(self.opt.gpu_ids[0]) File "/usr/local/lib/python3.7/dist-packages/torch/cuda/init.py", line 281, in set_device torch._C._cuda_setDevice(device) File "/usr/local/lib/python3.7/dist-packages/torch/cuda/init.py", line 179, in _lazy_init torch._C._cuda_init() RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:50

Please help. Thank you.

theartsnetwork avatar Aug 02 '21 14:08 theartsnetwork