Giter Site home page Giter Site logo

Comments (11)

wangdabee avatar wangdabee commented on August 16, 2024

此外,在循环使用代码时,会出现卡住的现象,即程序没有进行任何操作,也不报错。ctrl c 强制退出时 在 threading 相关代码处停止。

from towhee.

junjiejiangjjj avatar junjiejiangjjj commented on August 16, 2024

/assign @junjiejiangjjj

from towhee.

junjiejiangjjj avatar junjiejiangjjj commented on August 16, 2024

Upgrade Towhee to the latest version 1.1.1, and try it: https://towhee.io/towhee/audio-embedding

from towhee.

wangdabee avatar wangdabee commented on August 16, 2024

升级到1.1.1后 循环使用代码时,程序卡住的现象没有了,还是会有内存泄漏的现象,不过比0.9.0泄露的少一点

from towhee.

junjiejiangjjj avatar junjiejiangjjj commented on August 16, 2024

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.

from towhee.

wangdabee avatar wangdabee commented on August 16, 2024

path1 = '1.wav'
path2 = '2.wav'

p = AutoPipes.pipeline('audio-embedding-vggish')

for i in range(1000):
res1 = p(path1)
res2 = p(path2)

res1 = res1.get()[0]
res2 = res2.get()[0]

运行以上代码,对源码的唯一修改是将device指定为cpu,内存占用大概12GB.
还有一个小问题,在运行完最后一次循环后,代码没有自动退出,一直卡住不动,需要手动ctrl c

from towhee.

junjiejiangjjj avatar junjiejiangjjj commented on August 16, 2024

image
I used this code snippet for testing, the memory was stable, and the problem could not be reproduced.

from towhee.

wangdabee avatar wangdabee commented on August 16, 2024

ok thank you for your patience

from towhee.

wangdabee avatar wangdabee commented on August 16, 2024

@junjiejiangjjj 您能说下您测试时使用的python版本吗

from towhee.

junjiejiangjjj avatar junjiejiangjjj commented on August 16, 2024

@junjiejiangjjj 您能说下您测试时使用的python版本吗

3.9.12

from towhee.

wangdabee avatar wangdabee commented on August 16, 2024

@junjiejiangjjj 解决了 我用的是python 3.7 发生的泄露

from towhee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.