Skip to content
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

可以不用配置文件吗? #21

Open
Hongyuan-Liu opened this issue Mar 28, 2024 · 1 comment
Open

可以不用配置文件吗? #21

Hongyuan-Liu opened this issue Mar 28, 2024 · 1 comment

Comments

@Hongyuan-Liu
Copy link

不喜欢各种配置文件配来配去,能用代码实现流程吗?

@yizhou-xu
Copy link
Collaborator

也是可以的。现在传入配置文件后,底层实际上还是把参数解析出来,然后调用各个接口去搭建pipeline。

如果希望去掉配置文件这一步,可以参考 https://github.com/sophgo/sophon-stream/blob/master/samples/src/main.cc 353行的init_engine函数。这是搭建pipeline的入口。

不过,虽然原理上可以去掉配置文件,但还是需要某种方式传入各项参数,实际上可能不一定能显著简化传参过程。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants