【问题标题】:no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:47 in Google Colab在 Google Colab 的 /pytorch/aten/src/THC/THCGeneral.cpp:47 中未检测到支持 CUDA 的设备
【发布时间】:2020-12-30 11:04:40
【问题描述】:

我已经使用他们的算法好几天了,我尝试了几个,但直到现在他们都没有给我这个错误。

---------------------------------------------------------------------------
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

【问题讨论】:

    标签: python pytorch google-colaboratory


    【解决方案1】:

    你的笔记本上还没有启用GPU,在Runtime &gt; Change runtime.启用它

    【讨论】:

      猜你喜欢
      • 2020-09-09
      • 1970-01-01
      • 1970-01-01
      • 2012-10-31
      • 1970-01-01
      • 2023-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多