当前位置:   article > 正文

whisper报错:UserWarning: FP16 is not supported on CPU; using FP32 instead_fp16 is not supported on cpu; using fp32 instead

fp16 is not supported on cpu; using fp32 instead

报错:

PS D:\> whisper.exe .\dz.wav --language en --model medium
C:\xxPython310\lib\site-packages\whisper\transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead
  warnings.warn("FP16 is not supported on CPU; using FP32 instead")
  • 1
  • 2
  • 3

这个报错说的是whisper要使用cpu,而你音频是fp16的,cpu不支持。

要点在于如何解决为什么whisper没使用GPU

应该是搞别的时候把torch给搞成cpu版本的了。

解决方法

在这里插入图片描述

按照这个方式在装一下就好了
https://pytorch.org/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/345902
推荐阅读
相关标签
  

闽ICP备14008679号