Skip to content

Conversation

@yuql-sea
Copy link

当我使用wenet进行firered 的encoder部分导出时,我发现,
输入encoder的batch size==1, 如果事先手动给feat进行padding(例如从1013 padding到2000),但是输入的feat_len为1013时,会产生错误。具体报错截图如下:
image
具体分析发现,在firered/subsampling文件中,没有保证在padding right_context后的x_mask和x的seq等长。
所以在该情况下,我在下面显示地将两者做了一个对齐

@yuql-sea yuql-sea closed this Oct 24, 2025
@yuql-sea yuql-sea reopened this Oct 24, 2025
@robin1001 robin1001 requested a review from Mddct October 27, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant