BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
773 stars 65 forks source link

内置资源和可复用的Module #66

Open lukewongis163 opened 11 months ago

lukewongis163 commented 11 months ago

1.阅读一些测试代码,发下有些资源找不到,请问哪里可以获取到这些资源? 比如test_graph.cpp中dynamic_add函数"../files/dynamic_add.json"

TEST(graph, dynamic_add) { BMFLOG_SET_LEVEL(BMF_INFO);

time_t time1 = clock();
std::string config_file = "../files/graph_dyn.json";
std::string dyn_config_file = "../files/dynamic_add.json";
GraphConfig graph_config(config_file);
GraphConfig dyn_config(dyn_config_file);
std::map<int, std::shared_ptr<Module>> pre_modules;
std::map<int, std::shared_ptr<ModuleCallbackLayer>> callback_bindings;
std::shared_ptr<Graph> graph =
    std::make_shared<Graph>(graph_config, pre_modules, callback_bindings);
std::cout << "init graph success" << std::endl;

graph->start();
usleep(400000);

std::cout << "graph dynamic add nodes" << std::endl;
graph->update(dyn_config);

graph->close();
time_t time2 = clock();
std::cout << "time:" << time2 - time1 << std::endl;

}

2.目前内置的Module数量较少,请问是否有可复用的一些Module?如果有,哪里可以获取?

taoboyang commented 11 months ago

您好,对于问题 1,资源是在 https://github.com/BabitMF/bmf/releases/download/files/files.tar.gz 进行下载的,对于问题2,目前 repo 里带的 modules 暂时就是开源的全量 module 了,请问您这边是有哪些特殊的场景需求吗?

lukewongis163 commented 11 months ago

感谢您的快速回复; 问题1:昨天在quick_experience里面的一个demo里面发现有从https://github.com/BabitMF/bmf/releases/download/files/files.tar.gz下载资源,还是比较隐秘; 问题2:看你们的介绍,这个框架已经迭代比较长时间了,想着有没有可以开源的Module可以复用的,没有的话,也没关系。

lukewongis163 commented 11 months ago

另外,还想请问一下,你们是更推荐使用python接口还是c++接口呢?

taoboyang commented 11 months ago

您好,接口侧的话目前 Python、C++ 都是兼容和支持的,具体还是看您这边的具体业务场景,选择更为方便的接口 API 使用吧

sfeiwong commented 11 months ago

感谢您的快速回复; 问题1:昨天在quick_experience里面的一个demo里面发现有从https://github.com/BabitMF/bmf/releases/download/files/files.tar.gz下载资源,还是比较隐秘; 问题2:看你们的介绍,这个框架已经迭代比较长时间了,想着有没有可以开源的Module可以复用的,没有的话,也没关系。

hi,谢谢建议!对问题一,我们可以加入更明显的说明。对于问题二,我们后续规划会陆续开源出更多可复用的模块