No CUDA runtime is found, using CUDA
今天在使用pytorch 跑pointnet++的时候,出现了下面的问题:
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'
/home/eric/anaconda3/lib/python3.6/site-packages/pointnet2_ops/pointnet2_utils.py:15: UserWarning: Unable to load pointnet2_ops cpp extension. JIT Compiling.
warnings.warn("Unable to load pointnet2_ops cpp extension. JIT Compiling.")
Traceback (most recent call last):
File "pointnet2/train.py", line 61, in <module>
main()
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/main.py", line 24, in decorated_main
strict=strict,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
overrides=args.overrides,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/hydra.py", line 86, in run
job_subdir_key=None,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/plugins/common/utils.py", line 109, in run_job
ret.return_value = task_function(task_cfg)
File "pointnet2/train.py", line 54, in main
distributed_backend=cfg.distrib_backend,
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 438, in __init__
self.data_parallel_device_ids = parse_gpu_ids(self.gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 712, in parse_gpu_ids
gpus = sanitize_gpu_ids(gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 678, in sanitize_gpu_ids
""")
pytorch_lightning.utilities.exceptions.MisconfigurationException:
You requested GPUs: [0]
But your machine only has: []
➜ Pointnet2_PyTorch git:(master) ✗ python pointnet2/train.py task=cls
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/eric/anaconda3/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'
/home/eric/anaconda3/lib/python3.6/site-packages/pointnet2_ops/pointnet2_utils.py:15: UserWarning: Unable to load pointnet2_ops cpp extension. JIT Compiling.
warnings.warn("Unable to load pointnet2_ops cpp extension. JIT Compiling.")
Traceback (most recent call last):
File "pointnet2/train.py", line 61, in <module>
main()
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/main.py", line 24, in decorated_main
strict=strict,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/utils.py", line 174, in run_hydra
overrides=args.overrides,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/_internal/hydra.py", line 86, in run
job_subdir_key=None,
File "/home/eric/anaconda3/lib/python3.6/site-packages/hydra/plugins/common/utils.py", line 109, in run_job
ret.return_value = task_function(task_cfg)
File "pointnet2/train.py", line 54, in main
distributed_backend=cfg.distrib_backend,
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 438, in __init__
self.data_parallel_device_ids = parse_gpu_ids(self.gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 712, in parse_gpu_ids
gpus = sanitize_gpu_ids(gpus)
File "/home/eric/anaconda3/lib/python3.6/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 678, in sanitize_gpu_ids
""")
pytorch_lightning.utilities.exceptions.MisconfigurationException:
You requested GPUs: [0]
But your machine only has: []
解决方法
把原来的torch卸载了,然后安装:
pip install torchvision==0.5
参考文献
[1].FCOS出现No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-10.0'. https://blog.csdn.net/qq_44814641/article/details/103683842
相关知识
No CUDA runtime is found, using CUDA
环境部署中cuda对应的tensorflow
狗狗识别
pytorch分类和回归:阿里天池宠物年龄预测
win10+GPU+tensorflow安装配置 过程 的吐血总结
caffe训练resnet50分类宠物狗
基于Pytorch框架的深度学习densenet121神经网络鸟类行为识别分类系统源码
基于 NLP 情感识别的电子宠物社交应用
04训练——基于YOLO V8的自定义数据集训练——使用免费在线GPU资源
Attention Required!
网址: No CUDA runtime is found, using CUDA https://www.mcbbbk.com/newsview155402.html
上一篇: 宠物店创业计划书(通用7篇) |
下一篇: 狗狗8个坏习惯,你家狗狗中招了吗 |
推荐分享

- 1我的狗老公李淑敏33——如何 5096
- 2南京宠物粮食薄荷饼宠物食品包 4363
- 3家养水獭多少钱一只正常 3825
- 4豆柴犬为什么不建议养?可爱的 3668
- 5自制狗狗辅食:棉花面纱犬的美 3615
- 6狗交配为什么会锁住?从狗狗生 3601
- 7广州哪里卖宠物猫狗的选择性多 3535
- 8湖南隆飞尔动物药业有限公司宠 3477
- 9黄金蟒的价格 3396
- 10益和 MATCHWELL 狗 3352