diff options
author | Guo, Yejun <yejun.guo@intel.com> | 2020-09-10 22:29:57 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-09-21 21:26:56 +0800 |
commit | fce3e3e137843d86411f8868f18e1c3f472de0e5 (patch) | |
tree | 4ad669abc4ea7fc78220f4b24f0455fb17a8234b /libavformat | |
parent | 2003e32f62d94ba75b59d70632c9f2862b383591 (diff) | |
download | ffmpeg-fce3e3e137843d86411f8868f18e1c3f472de0e5.tar.gz |
dnn: put DNNModel.set_input and DNNModule.execute_model together
suppose we have a detect and classify filter in the future, the
detect filter generates some bounding boxes (BBox) as AVFrame sidedata,
and the classify filter executes DNN model for each BBox. For each
BBox, we need to crop the AVFrame, copy data to DNN model input and do
the model execution. So we have to save the in_frame at DNNModel.set_input
and use it at DNNModule.execute_model, such saving is not feasible
when we support async execute_model.
This patch sets the in_frame as execution_model parameter, and so
all the information are put together within the same function for
each inference. It also makes easy to support BBox async inference.
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions