当前位置:网站首页>AssertionError: CUDA unavailable, invalid device 0 requested
AssertionError: CUDA unavailable, invalid device 0 requested
2022-06-24 21:19:00 【小MarkK】
在使用yolov5训练时,提示这个错误,查看torch.cuda.is_available()得到的返回值是false
查看nvidia-smi可以看到信息
由于之前使用conda安装的torch1.9.0
这里使用pip重新安装:
pip3 install torch == 1.9.0+cu111 torchvision == 0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
全部安装后,再次执行torch.cuda.is_available()时
可以看到正确结果了
参考:AssertionError: CUDA unavailable, invalid device 0 requested_消灭BUG鸭的博客-CSDN博客_cuda unavailable
边栏推荐
猜你喜欢
随机推荐
联想童夫尧:11倍于大势,我们一路攻城拔寨
This national day! Tencent cloud wecity will accompany you to travel and light up the city landmark
Redis and jedis
After the college entrance examination, the following four situations will inevitably occur:
期望与方差
Merge sort template & understanding
Lenovo tongfuyao: 11 times the general trend, we attacked the city and pulled out the stronghold all the way
修身励学篇
Use redis' sorted set to make weekly hot Reviews
PHP easywechat and applet realize long-term subscription message push
Bi-sql - different join
Bi skill - judge 0 and null
Tianshu night reading notes -- disassembly engine xde32
ImageView shows network pictures
yasea apk 下载 镜像
TC对象结构和简称
卷积与反卷积关系超详细说明及推导(反卷积又称转置卷积、分数步长卷积)
论文翻译 | RandLA-Net: Efficient Semantic Segmentation of Large-Scale Point Clouds
[live review] 2022 Tencent cloud future community city operator recruitment conference and SaaS 2.0 new product launch!
明日考试 最后一天如何备考?二造考点攻略全整理