Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can code be tested on the non-CUDA system? #36

Open
EngineerKhan opened this issue Oct 7, 2018 · 0 comments
Open

Can code be tested on the non-CUDA system? #36

EngineerKhan opened this issue Oct 7, 2018 · 0 comments

Comments

@EngineerKhan
Copy link

I have been trying to test your code (with a small video file) on my laptop (lacking the CUDA GPU), but it gives the following error:

python main.py --input ./input --video_root ./videos --output ./output.json --
model ./resnext-101-64f-kinetics.pth --mode feature
THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1532502075707/work/aten/src/THC/THCGeneral.cpp line=74 error=35 : CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "main.py", line 22, in
model = generate_model(opt)
File "/home/hd/PhD/ResNet/ResNet3D/video-classification-3d-cnn-pytorch-master/model.py", line 117, in generate_model
model = model.cuda()
File "/home/hd/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 258, in cuda
return self._apply(lambda t: t.cuda(device))
File "/home/hd/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/home/hd/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 191, in _apply
param.data = fn(param.data)
File "/home/hd/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 258, in
return self._apply(lambda t: t.cuda(device))
RuntimeError: cuda runtime error (35) : CUDA driver version is insufficient for CUDA runtime version at /opt/conda/conda-bld/pytorch_1532502075707/work/aten/src/THC/THCGeneral.cpp:74

So, should I need to modify the code or this code can run on CPU as well? (Using the pre-trained model resnext-101-kinetics-hmdb51_split1.pth)
Thanks a lot for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant