Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • DeepSpeech
  • Issue
  • #418

D
DeepSpeech
  • 项目概览

PaddlePaddle / DeepSpeech
大约 2 年 前同步成功

通知 210
Star 8425
Fork 1598
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 245
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 3
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
D
DeepSpeech
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 245
    • Issue 245
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 3
    • 合并请求 3
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 1月 23, 2020 by saxon_zh@saxon_zhGuest

model init multiple times, slow inference

Created by: aayushkubb

Hi Team,

I was trying to run DeepSpeech on Libris dataset and noticed while doing inference. The model is initialized with every batch/loop. This makes the inference very slow, is there a way around that we don't initialize the model in every batch?

Complete trace: `----------- Configuration Arguments ----------- alpha: 2.5 batch_size: 16 beam_size: 128 beta: 0.3 cutoff_prob: 1.0 cutoff_top_n: 40 decoding_method: ctc_beam_search error_rate_type: wer lang_model_path: pretrained_ds2/common_crawl_00.prune01111.trie.klm mean_std_path: data/tiny/mean_std.npz model_path: pretrained_ds2/libris num_conv_layers: 2 num_proc_bsearch: 8 num_rnn_layers: 3 rnn_layer_size: 2048 share_rnn_weights: 1 specgram_type: linear test_manifest: data/tiny/manifest.sample use_gpu: 1 use_gru: 0 vocab_path: pretrained_ds2/libris/vocab.txt

2020-01-23 17:04:50,840-INFO: begin to initialize the external scorer for decoding 2020-01-23 17:07:10,592-INFO: language model: is_character_based = 0, max_order = 5, dict_size = 400000 2020-01-23 17:07:10,596-INFO: end initializing scorer 2020-01-23 17:07:10,597-INFO: start evaluation ... +++++++++++++++++++++++++++++++++ Processing Batch: 0 +++++++++++++++++++++++++++++++++ W0123 17:07:12.100998 28455 device_context.cc:236] Please NOTE: device: 0, CUDA Capability: 75, Driver API Version: 10.0, Runtime API Version: 10.0 W0123 17:07:12.143882 28455 device_context.cc:244] device: 0, cuDNN Version: 7.6. finish initing model from pretrained params from pretrained_ds2/libris

Target Transcription: he hoped there would be stew for dinner turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick peppered flour fattened sauce Output Transcription: he hoped there would be stew for dinner turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick peppered flower fattened sauce Error rate [wer] (16/?) = 0.050676 +++++++++++++++++++++++++++++++++ Processing Batch: 1 +++++++++++++++++++++++++++++++++ finish initing model from pretrained params from pretrained_ds2/libris

Target Transcription: then you can ask him questions on the catechism dedalus Output Transcription: then you can ask him questions on the catechism daedalus Error rate [wer] (32/?) = 0.031674 +++++++++++++++++++++++++++++++++ Processing Batch: 2 +++++++++++++++++++++++++++++++++ finish initing model from pretrained params from pretrained_ds2/libris

Target Transcription: he is called as you know the apostle of the indies Output Transcription: he is called as you know the apostle of the indies Error rate [wer] (48/?) = 0.027174 +++++++++++++++++++++++++++++++++ Processing Batch: 3 +++++++++++++++++++++++++++++++++ finish initing model from pretrained params from pretrained_ds2/libris

Target Transcription: brother mac ardle brother keogh Output Transcription: brother mccardle brother key of Error rate [wer] (64/?) = 0.040898 +++++++++++++++++++++++++++++++++ Processing Batch: 4 +++++++++++++++++++++++++++++++++ finish initing model from pretrained params from pretrained_ds2/libris

Target Transcription: you will find me continually speaking of four men titian holbein turner and tintoret in almost the same terms Output Transcription: you will find me continually speaking of four men titan hobin turner and tenkara in almost the same terms Error rate [wer] (80/?) = 0.056689 `

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/DeepSpeech#418
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7