sophgo / sophon-stream

Other
68 stars 10 forks source link

预处理、推理、后处理是异步吗? #25

Closed Deeperfinder closed 4 months ago

Deeperfinder commented 4 months ago
          可以自定义,但M个任务,每个阶段(解码/预处理/推理/后处理/跟踪/画图/编码)最多不会超过M个线程在工作

Originally posted by @yizhou-xu in https://github.com/sophgo/sophon-stream/issues/5#issuecomment-1961060091

Yi-sir commented 4 months ago

是异步

Deeperfinder commented 4 months ago

可是按照 上述说法,总共才M个线程 如何做到异步呢,在代码中好像没有看到async相关的接口

Yi-sir commented 4 months ago

各自M个

Deeperfinder commented 4 months ago

方便贴一下异步的代码在哪里吗,找了很久没找到

Yi-sir commented 4 months ago

单个动作是同步的,各个阶段分在多个线程上了,是框架实现的

Deeperfinder commented 4 months ago

好的,感谢回复