i installed the torchvision from source and i get this error
command - torchvision.ops.nms(boxes, scores, iou_thres)
Error - NotImplementedError: Could not run ‘torchvision::nms’ with arguments from the ‘CUDA’ backend.
if I install it via pip, then there is no error, but I don’t have access to VideoReader from torchvision
command - torchvision.set_video_backend(“video_reader”)
Error - RuntimeError: video_reader video backend is not available. Please compile torchvision from source and try again
I want to use VideoReader and not get errors “backend is not available”
in both cases I work with cuda and it is always active. (I work with yolo7)
I know that I can solve this problem if I transfer the data to the cpu. But it takes a long time and VideoReader becomes useless
pip freeze:
torch==2.0.1
torchaudio==2.0.2
torchvision==0.15.2a0+fa99a53
when installing from torchvision source i set FORCE_CUDA=1 and after that got build error.
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
In my case, cuda was downloaded to docker (tritonserver). I don’t understand what to do in this case.