项目场景:
长视频使用whisper进行语音转文本速度较慢,发现可以使用Insanely Fast Whisper进行语音转文本。源码地址https://github.com/Vaibhavs10/insanely-fast-whisper
问题描述
pyhton3.9使用Insanely Fast Whisper出现报错Torch not compiled with CUDA enabled
---
# 原因分析:
首先检查CUDA能否正常使用,也就是你的CUDA版本跟你torch的版本是否一致。
检查CUDA版本为11.8
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/5337edd3d8494e9dae81e1cf5ed3a44d.png)
# 解决方案:
然后使用python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118将torch进行更新,注意cu118代表你本地CUDA版本,如果你本地版本是12.1那就要替换为cu121,直接运行等待安装即可,不要使用镜像源进行快速安装!!!