From: Zhao Zhili <quinkblack@foxmail.com> To: ffmpeg-devel@ffmpeg.org Cc: Zhao Zhili <zhilizhao@tencent.com> Subject: [FFmpeg-devel] [PATCH WIP 0/9] Refactor DNN Date: Sun, 28 Apr 2024 00:41:50 +0800 Message-ID: <tencent_F64E1070462D219ADF403A9A1F9F58AB9B08@qq.com> (raw) From: Zhao Zhili <zhilizhao@tencent.com> During the refactor progress, I have found some serious issues, which is not resolved by the patchset: 1. Tensorflow backend is broken. I think it doesn't work since 2021 at least. For example, it destroy a thread and create a new thread for each frame, and it destroy an invalid thread at the first frame: pthread_join(async_module->thread_id, &status); if (status == DNN_ASYNC_FAIL) { av_log(ctx, AV_LOG_ERROR, "Unable to start inference as previous inference failed.\n"); return DNN_GENERIC_ERROR; } ret = pthread_create(&async_module->thread_id, NULL, async_thread_routine, async_module); 2. Openvino V1 doesn't compile. It doesn't compile and no one complains, I think it's a hint to just keep the code for V2. 3. Error handling. It's easy to crash with incorrect command line arguments. I don't have enough test case. Please share your test case and help on test. Zhao Zhili (9): avfilter/dnn: Refactor DNN parameter configuration system avfilter/dnn_backend_openvino: Fix free context at random place avfilter/dnn_backend_openvino: simplify memory allocation avfilter/dnn_backend_tf: Remove one level of indentation avfilter/dnn_backend_tf: Fix free context at random place avfilter/dnn_backend_tf: Simplify memory allocation avfilter/dnn_backend_torch: Simplify memory allocation avfilter/dnn: Remove a level of dereference avfilter/dnn: Use dnn_backend_info_list to search for dnn module libavfilter/dnn/dnn_backend_common.h | 13 +- libavfilter/dnn/dnn_backend_openvino.c | 210 ++++++++++--------------- libavfilter/dnn/dnn_backend_tf.c | 194 ++++++++++------------- libavfilter/dnn/dnn_backend_torch.cpp | 112 +++++-------- libavfilter/dnn/dnn_interface.c | 107 ++++++++++--- libavfilter/dnn_filter_common.c | 38 ++++- libavfilter/dnn_filter_common.h | 37 ++--- libavfilter/dnn_interface.h | 73 +++++++-- libavfilter/vf_derain.c | 5 +- libavfilter/vf_dnn_classify.c | 3 +- libavfilter/vf_dnn_detect.c | 3 +- libavfilter/vf_dnn_processing.c | 3 +- libavfilter/vf_sr.c | 5 +- 13 files changed, 428 insertions(+), 375 deletions(-) -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next reply other threads:[~2024-04-27 16:42 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-27 16:41 Zhao Zhili [this message] 2024-04-28 10:34 ` Guo, Yejun 2024-04-28 10:55 ` Zhao Zhili 2024-04-28 10:58 ` Paul B Mahol 2024-04-28 11:21 ` Zhao Zhili 2024-04-29 3:59 ` Chen, Wenbin 2024-04-29 10:29 ` Guo, Yejun 2024-04-29 11:40 ` Zhao Zhili 2024-04-30 2:55 ` Chen, Wenbin 2024-04-30 14:07 ` Guo, Yejun
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=tencent_F64E1070462D219ADF403A9A1F9F58AB9B08@qq.com \ --to=quinkblack@foxmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=zhilizhao@tencent.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git