如何解决Colab错误RuntimeError:cuda运行时错误100:在/pytorch/aten/src/THC/THCGeneral.cpp:47上未检测到具有CUDA功能的设备
突然出现此错误!我已经使用他们的算法好几天了,我做了几次,直到现在都没有给我这个错误!
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-5-dbd18151b569> in <module>()
1 from demo import load_checkpoints
2 generator,kp_detector = load_checkpoints(config_path='config/vox-256.yaml',----> 3 checkpoint_path='/content/gdrive/My Drive/first-order-motion-model/vox-cpk.pth.tar')
10 frames
/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py in _lazy_init()
188 raise AssertionError(
189 "libcudart functions unavailable. It looks like you have a broken build?")
--> 190 torch._C._cuda_init()
191 # Some of the queued calls may reentrantly call _lazy_init();
192 # we need to just return without initializing in that case.
RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:47
解决方法
您尚未在笔记本电脑上启用GPU,请在Runtime > Change runtime.
中启用它
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。