feichtenhofer / gpu_flow

GPU based optical flow extraction in OpenCV
427 stars 109 forks source link

Error when running compute_flow: no CUDA-capable device is detected #22

Open hshreeshail opened 1 year ago

hshreeshail commented 1 year ago

I am able to build successfully using OpenCV 3.4.3. However, when I run the program ./compute_flow --gpuID=0 --type=1 --vid_path=../data/ --vid_path=../data/flow/ --stride=2 I get the following error:

start_vid:1gpuID:0flow method: 1 frameSkip: 1 vid_path: ../data/flow/ out_path./ jpegs: .//rgb/
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.3) /data/models/Optical_Flow_GPU_Opencv3/opencv/opencv-3.4.3/modules/core/src/cuda_info.cpp:73: error: (-217:Gpu API call) no CUDA-capable device is detected in function 'setDevice'

Aborted (core dumped)

If there is no way to resolve this error, how do I run this program on CPU?