simple-faster-rcnn-pytorch
simple-faster-rcnn-pytorch copied to clipboard
Can I use another GPU on my computer?
I want to use another GPU on my computer, but when I change all .cuda() to .cuda(2) this error occured:
cupy.cuda.driver.CUDADriverError: CUDA_ERROR_INVALID_HANDLE: invalid resource handle
What can I do to solve this?
Try running the code by adding
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
in train.py
or
CUDA_VISIBLE_DEVICES = 2 python train.py xxxxxx
Hope this might help?
I got the same problem, setting os.environ['CUDA_VISIBLE_DEVICES'] doesn't work! have u solved it now?