I just reran the program with cv2.cuda.setDevice(1)
instead of cv2.cuda.SetDevice(1)
, and it ran. I think the guide that I read had the capitalization wrong. Sorry for the dumb mistake. My best guess as to why device 1 didn’t work for you but worked for me is because you might not have a second GPU.