安装欧博abgppdet验证失败

文章正文
发布时间:2024-05-20 04:51

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)

首页
评论
分享
Top