ModelScope中,请问这个报错要怎么解决呢?

展开
收起
多麻辣哦 2023-11-01 16:41:42 113 分享 版权
1 条回答
写回答
取消 提交回答
  • 这个报错是因为在PyTorch中,torch._C模块没有cuda_setDevice属性。要解决这个问题,你可以尝试以下方法:

    1. 确保你的PyTorch版本是最新的。可以通过以下命令更新PyTorch:
    pip install --upgrade torch
    
    1. 如果你使用的是GPU版本的PyTorch,确保你的CUDA和cuDNN库也是最新的。可以通过以下命令更新它们:
    conda update pytorch torchvision -c pytorch
    
    1. 如果问题仍然存在,尝试卸载并重新安装PyTorch。首先卸载当前的PyTorch:
    pip uninstall torch
    

    然后重新安装PyTorch:

    pip install torch
    
    2023-11-02 10:39:20
    赞同 展开评论

包含图像分类、图像生成、人体人脸识别、动作识别、目标分割、视频生成、卡通画、视觉评价、三维视觉等多个领域

热门讨论

热门文章

还有其他疑问?
咨询AI助理