Comments (11)
此外,在循环使用代码时,会出现卡住的现象,即程序没有进行任何操作,也不报错。ctrl c 强制退出时 在 threading 相关代码处停止。
from towhee.
/assign @junjiejiangjjj
from towhee.
Upgrade Towhee to the latest version 1.1.1, and try it: https://towhee.io/towhee/audio-embedding
from towhee.
升级到1.1.1后 循环使用代码时,程序卡住的现象没有了,还是会有内存泄漏的现象,不过比0.9.0泄露的少一点
from towhee.
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.
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.
I used this code snippet for testing, the memory was stable, and the problem could not be reproduced.
from towhee.
ok thank you for your patience
from towhee.
@junjiejiangjjj 您能说下您测试时使用的python版本吗
from towhee.
@junjiejiangjjj 您能说下您测试时使用的python版本吗
3.9.12
from towhee.
@junjiejiangjjj 解决了 我用的是python 3.7 发生的泄露
from towhee.
Related Issues (20)
- [Bug]: ValidationError: 101 validation errors for PointStruct vector -> 0 value is not a valid float (type=type_error.float) HOT 5
- RuntimeError: Loading operator with error:Load operator failed HOT 2
- [Bug]: 您好,我想请问一下,通过 towhee 的 vggish 模型得到音频向量后,通过什么方法计算两个音频向量的相似度?dtw吗? HOT 6
- [Feature]: Can it load the model locally? 可以本地加载本地模型吗? HOT 18
- [Bug]: RuntimeError: error checking inheritance of Ellipsis (type: ellipsis) HOT 2
- [Bug]: How to actively release video memory HOT 2
- Embedding模型加载失败 HOT 12
- [Bug]: Error: Start the triton server HOT 11
- [Bug]: application cannot start. `from towhee import AutoPipes` crashes HOT 4
- [Bug]: AutoPipes.pipeline('sentence_embedding', config=config) failed at pydantic 2.5.x HOT 10
- [Bug]: ImportError: cannot import name 'AutoPipes' from partially initialized module 'towhee' (most likely due to a circular import) HOT 2
- [Bug]: RuntimeError: Loading operator with error:Load operator failed HOT 9
- [Bug]: Triton in Towhee example fails in latest versions of Tritonserver HOT 3
- [Feature]: How to Release GPU Memory Occupation HOT 2
- [Enhancement]: HTTP API should support posting video / image files to compute embeddings and other operations. HOT 2
- [Bug]: When building the triton backend, using custom operators may result in errors HOT 4
- [Documentation]: How to get embeddings with CVNet HOT 1
- cannot import name 'pipe' from partially initialized module 'towhee' (most likely due to a circular import) HOT 10
- [Bug]: Memory leakage during image feature extraction(OOM) HOT 2
- [Bug]: image_embedding is not define HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from towhee.