python dlib gpu ubuntu conda_在conda环境中安装具有gpu支持的Dlib不起作用

在Ubuntu上,用户在conda虚拟环境中尝试安装带有GPU支持的dlib,安装了cmake、CUDA和cuDNN后,通过dlib的setup.py安装时,系统未能检测到CUDA安装,导致CUDA支持未能启用。
摘要由CSDN通过智能技术生成

我创建了一个conda虚拟环境来运行dlib和gpu支持,在其中我安装了cmake,CUDA和cuDNN

pip install cmake

conda install cudatoolkit cudnn

,之后我试着运行dlibs设置.py从网站下载的文件夹

python setup.py install --set DLIB_USE_CUDA=1 --set USE_AVX_INSTRUCTIONS=1

,但它没有检测到任何cuda安装,如流程的以下部分所示:

Invoking CMake setup: 'cmake /home/gustavostahl/Downloads/dlib-19.19/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/gustavostahl/Downloads/dlib-19.19/build/lib.linux-x86_64-3.7 -DPYTHON_EXECUTABLE=/home/gustavostahl/anaconda3/envs/dlib_gpu/bin/python -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1 -DCMAKE_BUILD_TYPE=Release'

-- pybind11 v2.2.2

-- Using CMake version: 3.16.3

-- Compiling dlib version: 19.19.0

-- SSE4 instructions can be executed by the host processor.

-- AVX instructions can be executed by the host processor.

-- Enabling AVX instructions

-- Searching for BLAS and LAPACK

-- Searching for BLAS and LAPACK

-- Checking for module 'cblas'

-- No package 'cblas' found

-- Found OpenBLAS library

-- Using OpenBLAS's built in LAPACK

-- Could NOT find CUDA: Found unsuitable version ".", but required is at least "7.5" (found /home/gustavostahl/anaconda3/envs/dlib_gpu/conda-meta)

-- DID NOT FIND CUDA

-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA

-- C++11 activated.

我的计划是逃跑

dlib.train_shape_predictor

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值