Skip to content

AutoSlicer: better slicing algorithm #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Aeterrno-Amora
Copy link

取消minLength参数,改为maxLength参数
算法:把所有静音按长度排序,依次看从短到长的静音,如果把静音两侧的片段合并起来长度不超过maxLength就合并。
这样应该会比原来的贪心切得更均匀,且直接指定长度上限更适合炼丹

由于本地环境很难配好build,所以没有测试,麻烦谁帮我测试和build一下,谢谢。


Specify maxLength instead of minLength.
New algorithm: Sort all silence intervals by their length and enumerate them from short to long, and join the two neighboring segments whenever it would result in a segment no longer than maxLength.
So that the resulted segments will be more even in lengths. And specifying maxLength is more consistent with the training setup.

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