-
Notifications
You must be signed in to change notification settings - Fork 247
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
[Bug]: 在多次使用 pipeline('towhee/audio-embedding-vggish') 时发生内存泄漏 #2659
Comments
此外,在循环使用代码时,会出现卡住的现象,即程序没有进行任何操作,也不报错。ctrl c 强制退出时 在 threading 相关代码处停止。 |
/assign @junjiejiangjjj |
Upgrade Towhee to the latest version 1.1.1, and try it: https://towhee.io/towhee/audio-embedding |
升级到1.1.1后 循环使用代码时,程序卡住的现象没有了,还是会有内存泄漏的现象,不过比0.9.0泄露的少一点 |
I have run this audio:https://towhee.io/towhee/audio-embedding/resolve/branch/main/test.wav 10,000 times. The memory usage has remained stable at around 2.9GB. I have not observed any memory leaks. |
path1 = '1.wav' p = AutoPipes.pipeline('audio-embedding-vggish') for i in range(1000):
运行以上代码,对源码的唯一修改是将device指定为cpu,内存占用大概12GB. |
ok thank you for your patience |
@junjiejiangjjj 您能说下您测试时使用的python版本吗 |
3.9.12 |
@junjiejiangjjj 解决了 我用的是python 3.7 发生的泄露 |
Is there an existing issue for this?
Current Behavior
embedding_pipeline = pipeline('towhee/audio-embedding-vggish')
outs1 = embedding_pipeline(wav_path)
在循环使用上述代码时,发生内存泄漏问题。达到20%内存
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: