[ASR]faster-whisper报错Could not locate cudnn_ops64_9.dll

问题描述

报错内容

再初次安装之后,首次运行出现以下错误。(参照本文安装命令

Could not locate cudnn_ops64_9.dll. Please make sure it is in your library path!

解决方式

看到其他帖子的方案都是下载dll文件,但是我尝试直接安装cuda版torch时,发现问题已经解决

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

官方网站

https://pytorch.org/

运行环境

我的运行环境是windows10电脑,cuda版本如下

安装步骤

使用的是faster-whisper与魔搭下载的**keepitsimple/faster-whisper-large-v3**模型文件

https://github.com/systran/faster-whisper
https://www.modelscope.cn/models/keepitsimple/faster-whisper-large-v3/summary

安装命令

conda环境安装

conda create --name faster-whisper python=3.9
conda activate faster-whisper
pip install faster-whisper
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

创建了一个main.py文件,进行语音识别。

from faster_whisper import WhisperModel

model = WhisperModel("F:\\Ai\\A_Model\\keepitsimple\\faster-whisper-large-v3")

segments, info = model.transcribe("D:\Application\system\Desktop\\test.wav")
for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

其他方法

手动下载cudnn_ops64_9.dll文件,但是恰好他没有**_9**这个版本(我真是裂开)所以我没有尝试是否能解决。

https://github.com/Purfview/whisper-standalone-win/releases/tag/libs

将其dll文件放置于系统文件夹下

C:\Windows\System32
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

柒杉丶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值