Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
20246688
2024-01-29 17:30:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-01-29 17:30:44 +0800
Commit
0aa47e5cccbdb2150600589bc0bfb21fc5e01238
0aa47e5c
1 parent
be84932f
Update test.py (#560)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
scripts/whisper/test.py
scripts/whisper/test.py
查看文件 @
0aa47e5
...
...
@@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor:
# We pad 50 frames at the end so that it is able to detect eot
# You can use another value instead of 50.
mel
=
torch
.
nn
.
functional
.
pad
(
mel
,
(
0
,
0
,
0
,
5
0
),
"constant"
,
0
)
mel
=
torch
.
nn
.
functional
.
pad
(
mel
,
(
0
,
0
,
0
,
100
0
),
"constant"
,
0
)
# Note that if it throws for a multilingual model,
# please use a larger value, say 300
...
...
请
注册
或
登录
后发表评论