-
Notifications
You must be signed in to change notification settings - Fork 72
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
关于使用相机流抽帧中显存的问题 #126
Comments
由于demo/video_frame_extraction中 jpeg_encoder这个module是基于gpu处理的
|
是要用gpu的,是decode那一块占用的显存太多了,因为考虑到1080p的一张图片也就几M的显存,但是使用bmf拉一个1080p的相机流,会占用300多M的显存,所以想问有没有办法通过代码或者设置降低这一块的显存。 |
试一下控制threads:
|
降低threads有效,设置了之后,占用的显存降低了,关于这些参数的具体含义有更详细的文档解释吗,因为目前看文档只有比较粗的介绍。 |
这个decode可以参考:https://babitmf.github.io/docs/bmf/api/decode_module/ |
通过降低线程数,可以降低显存,我理解应该有一个初始化显存池子的地方,在decode的过程中,初始化显存的地方可以告诉一下在哪里吗? |
https://github.com/BabitMF/bmf/blob/master/bmf/hml/src/cuda/cuda_allocator.cpp |
当使用样例脚本对相机流进行抽帧的时候,发现1080p的流,会占用300M+的显存,请问这个分配的大小是可以手动设置的吗,或者是可以在哪里进行修改,因为单纯只进行抽帧的话,并不需要这么多的显存空间。
The text was updated successfully, but these errors were encountered: