Skip to content

python调用中如果发现时间戳普遍不准确如何调整 #1394

Answered by R1ckShi
Jackiexiao asked this question in Q&A
Discussion options

You must be logged in to vote

@ericg108 @Jackiexiao @fclearner
sentence信息中输出的不是vad的子句时间戳,是根据标点切分出的子句中的字级别时间戳的首字开始和尾字结束,所以调整vad的参数是无效的,这里推荐两种方式 1)如果你需要的是子句的时间戳,可以输出一下vad的结果,funasr/auto/auto_model.py:269;2)如果你反馈的是字级别时间戳不准确,可以尝试调整funasr/utils/timestamp_tools.py ts_prediction_lfr6_standard这个函数中的MAX_TOKEN_DURATION,例如本case中往往是尾点早结束,可以调大。这里使用没有暴露接口的hardcode是因为cif时间戳预测往往有这样的badcase,调整难度比较大。

Replies: 17 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by R1ckShi
Comment options

You must be logged in to vote
2 replies
@huahaoya7737
Comment options

@R1ckShi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@alephpi
Comment options

@luzhenting
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
9 participants
Converted from issue

This discussion was converted from issue #1226 on February 27, 2024 02:41.