首页 > 其他分享 > PaddleSpeech docker develop-gpu-cuda10.2-cudnn7-latest 缺失 libsndfile1-dev 和 環境參數CUDA_VISIBLE_DEVICE

PaddleSpeech docker develop-gpu-cuda10.2-cudnn7-latest 缺失 libsndfile1-dev 和 環境參數CUDA_VISIBLE_DEVICE

时间:2023-04-13 10:00:30浏览次数:37  
标签:libsndfile1 develop PaddleSpeech DEVICES VISIBLE CUDA gpu docker

Paddle可以說是各種坑,但支持國產,含淚試用了百度飛漿的Speech。

1. 坑點

Docker develop-gpu-cuda10.2-cudnn7-latest 缺失:
1. libsndfile1-dev
2. CUDA_VISIBLE_DEVICES

 

2. 安裝教程

也沒什麼安裝教程。下載docker鏡像和項目源碼。

docker pull paddlecloud/paddlespeech:develop-gpu-cuda10.2-cudnn7-latest

  docker鏡像

git clone https://github.com/PaddlePaddle/PaddleSpeech

  項目源碼

 

3. 測試顯示卡

nvidia-docker run --runtime=nvidia -it -v ~/PycharmProjects/PaddleSpeech:/home paddlecloud/paddlespeech:develop-gpu-cuda10.2-cudnn7-latest /bin/bash

  進入Docker鏡像

 

nvidia-smi

 

nvcc -V

./test_cuda

 

4. Bug

cd demos/style_fs2 && ./run.sh

  出現error

 

4.1 缺失 libsndfile1-dev

Traceback (most recent call last):
  File "style_syn.py", line 22, in <module>
    import soundfile as sf
  File "/usr/local/python3.7.0/lib/python3.7/site-packages/soundfile.py", line 192, in <module>
    _snd = _ffi.dlopen(_explicit_libname)
OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory

  我猜測,這是CUDA10.2官方docker的bug,里面缺少了libsndfile1-dev。

apt install libsndfile1-dev

  成功解決

 

4.2 缺失 環境參數CUDA_VISIBLE_DEVICES

Traceback (most recent call last):
  File "style_syn.py", line 228, in <module>
    main()
  File "style_syn.py", line 209, in main
    paddle.set_device("gpu")
  File "/usr/local/python3.7.0/lib/python3.7/site-packages/paddle/device/__init__.py", line 313, in set_device
    place = _convert_to_place(device)
  File "/usr/local/python3.7.0/lib/python3.7/site-packages/paddle/device/__init__.py", line 204, in _convert_to_place
    place = core.CUDAPlace(ParallelEnv().dev_id)
OSError: (External) CUDA error(100), no CUDA-capable device is detected.
  [Hint: 'cudaErrorNoDevice'. This indicates that no CUDA-capable devices were detected by the installed CUDA driver. ] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:66)

  因缺失 環境參數CUDA_VISIBLE_DEVICES,導致PaddleSpeech失敗獲取GPU。

import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"

  當設置CUDA_VISIBLE_DEVICES=0後,成功解決。

 

5.0 成功

 

标签:libsndfile1,develop,PaddleSpeech,DEVICES,VISIBLE,CUDA,gpu,docker
From: https://www.cnblogs.com/chenkuang/p/17312301.html

相关文章

  • Vulnhub Development Walkthrough
    VulnhubDevelopmentWalkthroughRecon首先使用netdiscover进行二层Arp扫描。┌──(kali㉿kali)-[~]└─$sudonetdiscover-r192.168.80.0/24Currentlyscanning:Finished!|ScreenView:UniqueHosts5CapturedARPReq/Reppackets,from5hosts.Total......
  • Autosar系列之Developer工具
    文章目录一、什么是DaVinciDeveloper?二、DaVinciDeveloperWorkspace三、SoftwareConponent(SWC)Design一、什么是DaVinciDeveloper?是一个Vector工具,用于设计AutosarECU的软件组件SWC的软件(设计应用层软件)。通信图形视图或文本网格视图,可以设计软件组件,包括端口、数据类型、连......
  • Oracle Database 23c Free - Developer Release(免费的 Oracle 数据库开发者版本)
    免费的Oracle数据库开发者版本请访问原文链接:https://sysin.org/blog/oracle-database-23c-free/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.orgOracleDatabase23cFree-DeveloperRelease是一个全新的、免费的、业界领先的Oracle数据库,全世界各个行业的企......
  • Vulnhub:Digitalworld.local (Development)靶机
    kali:192.168.111.111靶机:192.168.111.130信息收集端口扫描nmap-A-v-sV-T5-p---script=http-enum192.168.111.130查看网站首页源码访问development目录,提示存在一个流量包查看流量包发现另一个网站路径:/developmentsecretpage/directortestpagev1.php访问该路......
  • 【paddlespeech】win执行sh脚本
    paddlespeech1.环境配置按照:https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/docs/source/install_cn.md问题condacreate-p在桌面目录执行了condacreate-ppaddlespeech2python=3.7,结果创建了一个没有名字的环境,如下:激活:要移除这个环境,不能使用condare......
  • jdeveloper 安装 winRegistry Exception 解决方法
    问题安装jdeveloper提示E:\大师♂罗莊\新建文件夹>java-jarjdevstudio11115install.jarExceptioninthread"winRegistry"java.lang.NoClassDefFoundError:Couldno......
  • MAC 装 Oracle JDeveloper 11g方法
    1去苹果官方网站下载支持你系统JAVA,Lion系统需要单独安装,雪豹自带JAVA,只需要更新新版即可地址是这个http://support.apple.com/downloads/2如果你的帐号不是管理员以及......
  • Oracle SQL Developer 提示无法安装某些模块错误
    如果博友遇到启动时弹出警告--无法安装某些模块(Warning-couldnotinstallsomemodules):之后是一大堆的包解决方法:把C:\Users\${你自己的用户名}\AppData\Roaming\S......
  • Flutter Developer Roadmap All In One
    FlutterDeveloperRoadmapAllInOneFlutter&DartLearningtobecomeamodernFlutterdeveloperin2023https://roadmap.sh/flutter(......
  • 使用 PL/SQL Developer Version 14 调试 Oracle 存储过程
    1、选中当前存储过程,右击后弹出上下文菜单,点击“测试”(如下图):2、编辑目标存储过程,在需要关注的语句行号前右击鼠标设置断点,如下图:3、修改调试窗口的代码为代码块中初始化......