Skip to content
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

内存泄露问题 #1218

Open
LonelyTaker opened this issue Jun 21, 2024 · 4 comments
Open

内存泄露问题 #1218

LonelyTaker opened this issue Jun 21, 2024 · 4 comments

Comments

@LonelyTaker
Copy link

_batch_audio_fragment = (self.vits_model.decode( all_pred_semantic, _batch_phones, refer_audio_spec ).detach()[0, 0, :])

目前定位到这条语句存在明显的内存泄露现象。想请问下是什么原因导致?

@ChasonJiang
Copy link

@LonelyTaker 正常推理之后没有释放显存吗?

@LonelyTaker
Copy link
Author

@LonelyTaker 正常推理之后没有释放显存吗?

不是显存,内存未被释放

@LonelyTaker
Copy link
Author

@LonelyTaker 正常推理之后没有释放显存吗?

随着推理请求的增多,占用内存会不断增加,即使释放模型,也无法释放掉占用的内存

@ChasonJiang
Copy link

随着推理请求的增多,占用内存会不断增加,即使释放模型,也无法释放掉占用的内存

了解了

CyberWon added a commit to CyberWon/GPT-SoVITS that referenced this issue Jun 23, 2024
在推理完成之后,使用gc控制器对内存进行回收。
RVC-Boss#1218
RVC-Boss pushed a commit that referenced this issue Jun 26, 2024
在推理完成之后,使用gc控制器对内存进行回收。
#1218
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

No branches or pull requests

2 participants