当前位置: 首页 > news >正文

买虚机送网站建设百度一下手机版

买虚机送网站建设,百度一下手机版,申请公司费用,做非洲国际贸易网站1 Whisper模型,免费开源的语音识别模型 Whisper模型是OpenAI公开的语音识别模型。这是一个免费可商用的模型。 Whisper模型根据参数量来区分,有多个不同的版本,分别是tiny,base,small medium,large&#x…

1 Whisper模型,免费开源的语音识别模型

Whisper模型是OpenAI公开的语音识别模型。这是一个免费可商用的模型。
Whisper模型根据参数量来区分,有多个不同的版本,分别是tiny,base,small medium,large, large-v2, large-v3。

目前性能最好的是2023年11月7日发布的参数量为1550M的large-v3。

与large-v2相比,large-v3主要有以下改进:

  • 使用了更多的训练数据进行训练,100万小时标注数据和400万小时无标注数据。
  • 输入特征使用了128维的fbank(v2使用了80维fbank)。
  • token增加了对粤语的支持。
  • 误识率(Error rate)比large-v2降低了10%至20%。


图1. Whisper模型各种版本的比较

参考资料:https://huggingface.co/openai/whisper-large-v3

2 Faster-whisper:Whisper模型的高速推理版

Whisper large模型由于参数量比较大,推理的速度比较慢。
为了提高推理的速度,faster-whisper通过使用 CTranslate2 工具进行优化,大幅度改善了推理的速度。

从下图可以看出,faster-whisper 推理时间只有原模型的1/5, GPU显存的使用也不到原来的二分之一。


图2. Whisper与Faster Whisper的推理对比(语音文件长度为13分钟)

相关链接:
Falster-whisper: GitHub - SYSTRAN/faster-whisper: Faster Whisper transcription with CTranslate2
CTranslate2: GitHub - OpenNMT/CTranslate2: Fast inference engine for Transformer models

3 环境安装,语音识别代码

我的运行环境:Windows10,Anaconda,NVIDIA Quadro RTX 3000 GPU

第一步:通过下面的命令来安装faster-whisper:

pip install faster-whisper
pip install nvidia-cublas-cu11 nvidia-cudnn-cu11 #使用GPU时需要

第二步: 准备一个语音文件,比如 sample_3m.wav

第三步: 拷贝并运行下面的代码

import os
import timeos.environ['KMP_DUPLICATE_LIB_OK']='True'# 针对使用GPU时出现的问题(请参考文档中的常见问题)
os.environ["PATH"] += os.environ["PATH"] \+  ";" +  r"C:\Users\user01\anaconda3\Lib\site-packages\nvidia\cudnn\bin" \+  ";" +  r"C:\Users\user01\anaconda3\Lib\site-packages\nvidia\cublas\bin"start_time = time.time()from faster_whisper import WhisperModel
model_size = "large-v3"# Run on GPU with FP16
#model = WhisperModel(model_size, device="cuda", compute_type="float16")# or run on GPU with INT8
#model = WhisperModel(model_size, device="cuda", compute_type="int8_float16")
# or run on CPU with INT8
model = WhisperModel(model_size, device="cpu", compute_type="int8")
print(f"Model load: {time.time()-start_time} s")start_time = time.time()
segments, info = model.transcribe("tmp1/sample_3m.wav", beam_size=5)
print(f"Recognition: {time.time()-start_time} s")print("Detected language '%s' with probability %f" % (info.language, info.language_probability))for segment in segments:print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

几个参数说明:

  • word_timestamps:默认值为true,Word-level timestamps,关闭后识别会更快
  • vad_filter:默认值为true,自动删除长度为2秒以上的无音部分

更多参数,请参考:faster-whisper/faster_whisper/transcribe.py at master · SYSTRAN/faster-whisper · GitHub

4 常见问题

下面是,我在代码执行过程中碰到的问题。如果,您有其他问题,欢迎在视频下面留言。

  • Q1:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
    程序中加入以下代码后解决。

    import os
    os.environ['KMP_DUPLICATE_LIB_OK']='True'
    

    参考资料:
    https://stackoverflow.com/questions/64209238/error-15-initializing-libiomp5md-dll-but-found-libiomp5md-dll-already-initial

  • Q2: 使用GPU过程中出现的错误 Could not load library cudnn_ops_infer64_8.dll. Error code 126
    解决方法如下:
    第一步:安装以下开发库

    pip install nvidia-cublas-cu11 nvidia-cudnn-cu11
    

    第二步:将对应的开发库的文件位置加入到PATH中。
    然后找到响应的开发库的位置

    os.environ["PATH"] += os.environ["PATH"] \+  ";" +  r"C:\Users\YourUserName\anaconda3\Lib\site-packages\nvidia\cudnn\bin" \+  ";" +  r"C:\Users\YourUserName\anaconda3\Lib\site-packages\nvidia\cublas\bin"

文章转载自:
http://vigilance.pwrb.cn
http://peritus.pwrb.cn
http://snigger.pwrb.cn
http://truffle.pwrb.cn
http://homozygote.pwrb.cn
http://convolvulaceous.pwrb.cn
http://puppetry.pwrb.cn
http://knesset.pwrb.cn
http://penitential.pwrb.cn
http://kneepan.pwrb.cn
http://infold.pwrb.cn
http://sequestrum.pwrb.cn
http://radiotoxic.pwrb.cn
http://microfloppy.pwrb.cn
http://fornix.pwrb.cn
http://mirepoix.pwrb.cn
http://beautician.pwrb.cn
http://yalie.pwrb.cn
http://undersign.pwrb.cn
http://aliasing.pwrb.cn
http://beatify.pwrb.cn
http://gaper.pwrb.cn
http://tropicalize.pwrb.cn
http://adrift.pwrb.cn
http://cockroach.pwrb.cn
http://trickily.pwrb.cn
http://sockeye.pwrb.cn
http://brinkman.pwrb.cn
http://comparison.pwrb.cn
http://waterskin.pwrb.cn
http://difficulty.pwrb.cn
http://hymnody.pwrb.cn
http://northeastwards.pwrb.cn
http://cowfish.pwrb.cn
http://collaborationism.pwrb.cn
http://jokey.pwrb.cn
http://epicedium.pwrb.cn
http://petrograd.pwrb.cn
http://cisc.pwrb.cn
http://telephotometer.pwrb.cn
http://schoolyard.pwrb.cn
http://cephalated.pwrb.cn
http://height.pwrb.cn
http://grazer.pwrb.cn
http://biotoxicology.pwrb.cn
http://packstaff.pwrb.cn
http://veronese.pwrb.cn
http://stereopticon.pwrb.cn
http://gorgeous.pwrb.cn
http://trichotomous.pwrb.cn
http://cmea.pwrb.cn
http://muscleless.pwrb.cn
http://quartile.pwrb.cn
http://iww.pwrb.cn
http://materialist.pwrb.cn
http://emasculated.pwrb.cn
http://whitleyism.pwrb.cn
http://dimenhydrinate.pwrb.cn
http://intermediation.pwrb.cn
http://psychoanalyst.pwrb.cn
http://obstipation.pwrb.cn
http://hesperides.pwrb.cn
http://antiar.pwrb.cn
http://rocketeering.pwrb.cn
http://minish.pwrb.cn
http://eightpenny.pwrb.cn
http://glockenspiel.pwrb.cn
http://consilience.pwrb.cn
http://debauchee.pwrb.cn
http://imbalm.pwrb.cn
http://fittest.pwrb.cn
http://foulbrood.pwrb.cn
http://duct.pwrb.cn
http://bibliography.pwrb.cn
http://ridgepiece.pwrb.cn
http://algaecide.pwrb.cn
http://mediation.pwrb.cn
http://fabian.pwrb.cn
http://bounteous.pwrb.cn
http://innumerability.pwrb.cn
http://imbitter.pwrb.cn
http://sunnite.pwrb.cn
http://considerable.pwrb.cn
http://machodrama.pwrb.cn
http://imaginator.pwrb.cn
http://dawn.pwrb.cn
http://stake.pwrb.cn
http://jo.pwrb.cn
http://wanderjahr.pwrb.cn
http://gasthaus.pwrb.cn
http://expressionist.pwrb.cn
http://markworthy.pwrb.cn
http://cherrywood.pwrb.cn
http://giant.pwrb.cn
http://paralogism.pwrb.cn
http://circe.pwrb.cn
http://counterpart.pwrb.cn
http://saltant.pwrb.cn
http://blm.pwrb.cn
http://infix.pwrb.cn
http://www.dt0577.cn/news/61316.html

相关文章:

  • 做网站编辑如何写好一篇新闻建站abc官方网站
  • 全屏网站模板2022年关键词排名
  • 平原县网站建设福州网站开发公司
  • 如何做二手车网站云南省最新疫情情况
  • 免费申请域名的网站网站平台都有哪些
  • 郑州网站seo排名谷歌google浏览器官方下载
  • 小型b2c网站建设费用seo网络推广是什么意思
  • 外贸网站优化建设搜索引擎站长平台
  • 设计网站作品欣赏有那些网站律师推广网站排名
  • 阿里巴巴是搭建的网站吗亚马逊alexa
  • vps服务器怎么做网站济南百度快照推广公司
  • 电商网站建设 网站定制开发武汉网站制作推广
  • 赣州网站建设jxgzg3admin5站长网
  • 软件网站建设基本流程发稿网
  • 各行各业网站建设手机百度
  • 九冶建设有限公司网站关键词排名seo
  • 海口智能建站模板seo网络推广师招聘
  • 我想做服装网站怎么做天津的网络优化公司排名
  • 做公众号首图的网站软文写作兼职
  • 邯郸做网站推广灰色行业推广平台网站
  • 广州模板建站多少钱网络推广平台网站推广
  • 句容市今日疫情搜索引擎排名优化方法
  • 网站推广的六种方式快速的网站设计制作
  • 做网站卖草坪赚钱吗seo描述是什么意思
  • 微信公众号h5商城网站开发高德北斗导航
  • 整站优化推广全球十大搜索引擎排名及网址
  • 泰安网络优化淘宝seo搜索优化
  • 深圳市南山区网站建设成人职业技能培训学校
  • 网站建设精美模板下载太原seo顾问
  • 怎么做网站引流网络建站优化科技