首页 PaddleCV 帖子详情
安装ppdet验证失败
收藏
快速回复
PaddleCV 问答目标检测 1830 9
安装ppdet验证失败
收藏
快速回复
PaddleCV 问答目标检测 1830 9

OSError: (External) Cuda error(35), CUDA driver version is insufficient for CUDA runtime version.

具体如下:

%cd ~/PaddleDetection/
!python ppdet/modeling/tests/test_architectures.py  #验证是否安装成功 
 
/home/aistudio/PaddleDetection
/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:26: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
def convert_to_list(value, n, name, dtype=np.int):
W1030 21:54:47.554400 940 init.cc:136] Compiled with WITH_GPU, but no GPU found in runtime.
/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/fluid/framework.py:299: UserWarning: You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default.
"You are using GPU version Paddle, but your CUDA device is not set properly. CPU device will be used by default."
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/__init__.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import MutableMapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Iterable, Mapping
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/colors.py:53: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Sized
2021-10-30 21:54:47,721 - INFO - font search path ['/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf', '/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/afm', '/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts']
2021-10-30 21:54:48,112 - INFO - generated new fontManager
/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/tensor/creation.py:143: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
if data.dtype == np.object:
Traceback (most recent call last):
File "ppdet/modeling/tests/test_architectures.py", line 20, in
import ppdet
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/__init__.py", line 15, in
from . import (core, data, engine, modeling, model_zoo, optimizer, metrics,
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/__init__.py", line 16, in
from . import transform
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/transform/__init__.py", line 15, in
from . import operators
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/data/transform/operators.py", line 41, in
from ppdet.modeling import bbox_utils
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/__init__.py", line 22, in
from . import proposal_generator
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/__init__.py", line 1, in
from . import rpn_head
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/rpn_head.py", line 55, in
class RPNHead(nn.Layer):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/rpn_head.py", line 71, in RPNHead
anchor_generator=AnchorGenerator().__dict__,
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/anchor_generator.py", line 54, in __init__
self.cell_anchors = self._calculate_anchors(len(strides))
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/anchor_generator.py", line 80, in _calculate_anchors
for s, a in zip(sizes, aspect_ratios)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/anchor_generator.py", line 80, in
for s, a in zip(sizes, aspect_ratios)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/proposal_generator/anchor_generator.py", line 73, in generate_cell_anchors
return paddle.to_tensor(anchors, dtype='float32')
File "", line 2, in to_tensor
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in __impl__
return wrapped_func(*args, **kwargs)
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/fluid/framework.py", line 225, in __impl__
return func(*args, **kwargs)
File "/home/aistudio/.data/webide/pip/lib/python3.7/site-packages/paddle/tensor/creation.py", line 178, in to_tensor
stop_gradient=stop_gradient)
OSError: (External) Cuda error(35), CUDA driver version is insufficient for CUDA runtime version.
[Advise: This indicates that the installed NVIDIA CUDA driver is older than the CUDA runtime library. This is not a supported configuration.Users should install an updated NVIDIA display driver to allow the application to run.] (at /paddle/paddle/fluid/platform/gpu_info.cc:78)

0
收藏
回复
全部评论(9)
时间顺序
三岁
#2 回复于2021-10

cuda和cudnn版本不对

0
回复
a
asian3
#3 回复于2021-10
三岁 #2
cuda和cudnn版本不对

我知道,但是这是aistudio在线平台,怎么搞?

0
回复
三岁
#4 回复于2021-10
asian3 #3
我知道,但是这是aistudio在线平台,怎么搞?

直接Git库就好了啊

0
回复
a
asian3
#5 回复于2021-10
三岁 #4
直接Git库就好了啊

我是小白,不太懂平台怎么搞,之前都是直接就可以用的,不知道平台上怎么重新安装

0
回复
三岁
#6 回复于2021-10

要重新安装什么啊?

不是都配好了嘛

0
回复
a
asian3
#7 回复于2021-10
三岁 #6
要重新安装什么啊? 不是都配好了嘛

没配好啊,这不就出问题了嘛

0
回复
三岁
#8 回复于2021-10
asian3 #7
没配好啊,这不就出问题了嘛

你要安装什么,你要做什么?

0
回复
a
asian3
#9 回复于2021-10
三岁 #8
你要安装什么,你要做什么?

安装ppdet做检测啊,

!python ppdet/modeling/tests/test_architectures.py 

安装验证失败

0
回复
三岁
#10 回复于2021-10

你用

!git clone https://gitee.com/PaddlePaddle/PaddleDetection.git -b release/2.1

试一下

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户