-
Notifications
You must be signed in to change notification settings - Fork 5.1k
tts infer重构优化和批量推理支持 #721
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
Merged
Merged
tts infer重构优化和批量推理支持 #721
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b65dae7
torchscript for T2STransformer
GoHomeToMacDonal 13bb68c
Bug fix: inference w/o prompt
GoHomeToMacDonal 17832e5
忽略ffmpeg .gitignore
ChasonJiang 7556e8c
fix some bugs GPT_SoVITS/TTS_infer_pack/TTS.py
ChasonJiang 61453b5
添加音频倍速支持: GPT_SoVITS/TTS_infer_pack/TTS.py
ChasonJiang c85b29f
增加健壮性: GPT_SoVITS/TTS_infer_pack/TTS.py
ChasonJiang 12b2e2e
Merge branch 'main' of https://github.com/GoHomeToMacDonal/GPT-SoVITS…
ChasonJiang 4096a17
兼容了flash_attention的批量推理,并修复了一些bug GPT_SoVITS/AR/models/t2s_model.py
ChasonJiang 3b9259b
modified: GPT_SoVITS/AR/models/t2s_model.py
ChasonJiang be49e32
modified: GPT_SoVITS/AR/models/t2s_model.py
ChasonJiang 2fe3207
modified: GPT_SoVITS/TTS_infer_pack/TTS.py
ChasonJiang ed2ffe1
修复了t2s模型无prompt输入时的bug GPT_SoVITS/AR/models/t2s_model.py
ChasonJiang cae976e
增加了注释 GPT_SoVITS/TTS_infer_pack/TTS.py
ChasonJiang cd74684
fixed some bugs GPT_SoVITS/AR/models/t2s_model.py
ChasonJiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ reference | |
GPT_weights | ||
SoVITS_weights | ||
TEMP | ||
|
||
ffmpeg.exe | ||
ffprobe.exe | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding之后,
self.ar_audio_position.pe[:, y_len + idx]
里面的位置y_len+idx是错误的,这里需要对每个句子单独计算,单独取出来。个人建议使用类似transformers
的方式,使用一个position_ids
来记录对应的位置,每次循环+1即可。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢指正,我待会看看。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得应该不用单独算,因为y实际上没有padding。实际测试下来似乎也没啥问题🤔