我正尝试在Google colaboratory(Ubuntu 18.04(Bionic Beaver))上安装dlib,但它抛出错误。
CMake错误:
The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_LIBRARY (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
CUDA_curand_LIBRARY (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
cusolver (ADVANCED)
linked by target "dlib" in directory /content/dlib/dlib
-- Configuring incomplete, errors occurred!
See also "/content/dlib/build/CMakeFiles/CMakeOutput.log".
See also "/content/dlib/build/CMakeFiles/CMakeError.log".
有关详细信息,请访问此链接: https://github.com/davisking/dlib/issues/1529
Google colab已在/usr/local/cuda-9.2/targets/x86_64-linux/lib
中拥有这些库。
我如何将此路径链接到CMake,以便它可以找到这些库?
这是Google colab链接以重现该错误。请注意,您需要从developer.nvidia.com下载cudnn文件。您需要登录,但可以免费下载文件。 https://colab.research.google.com/drive/1IiOLDP20QT3JFx5pigCibDadq9orNErk
答案 0 :(得分:0)
dlib现在已经预先安装在colab上,因此您可能不会受到以下限制:
import dlib
help(dlib)
答案 1 :(得分:0)
安装在 GCP Ubuntu20.04 机器类型 n2d-standard-8(8 个 vCPU,32 GB 内存)
git clone https://github.com/Universe-ML21/script_install_dlib.git
sudo chmod +x script_install_dlib/auto_dlib.sh
bash script_install_dlib/auto_dlib.sh