From: "Chen, Wenbin" <wenbin.chen-at-intel.com@ffmpeg.org> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Cosmin Stejerean <cosmin@cosmin.at> Subject: Re: [FFmpeg-devel] [PATCH v4] libavfi/dnn: add LibTorch as one of DNN backend Date: Wed, 6 Mar 2024 03:19:04 +0000 Message-ID: <IA1PR11MB639696204893F02F1948B0CEF8212@IA1PR11MB6396.namprd11.prod.outlook.com> (raw) In-Reply-To: <0101018df6c26392-0082222a-48cc-4d95-89d2-7e93436c65f5-000000@us-west-2.amazonses.com> > > > On Feb 20, 2024, at 7:07 PM, wenbin.chen-at-intel.com@ffmpeg.org wrote: > > > > From: Wenbin Chen <wenbin.chen@intel.com> > > > > PyTorch is an open source machine learning framework that accelerates > > the path from research prototyping to production deployment. Official > > website: https://pytorch.org/. We call the C++ library of PyTorch as > > LibTorch, the same below. > > > > To build FFmpeg with LibTorch, please take following steps as reference: > > 1. download LibTorch C++ library in https://pytorch.org/get-started/locally/, > > please select C++/Java for language, and other options as your need. > > I tested this locally with the current release (2.2.1) and this should clarify that > the cxx11 ABI version needs to be downloaded (libtorch-cxx11-abi-shared- > with-deps-*.zip) otherwise it fails to link with undefined reference to various > c10 components. > > > > > > @@ -6886,6 +6888,7 @@ enabled libtensorflow && require libtensorflow > tensorflow/c/c_api.h TF_Versi > > enabled libtesseract && require_pkg_config libtesseract tesseract > tesseract/capi.h TessBaseAPICreate > > enabled libtheora && require libtheora theora/theoraenc.h th_info_init > -ltheoraenc -ltheoradec -logg > > enabled libtls && require_pkg_config libtls libtls tls.h tls_configure > > +enabled libtorch && check_cxxflags -std=c++14 && require_cpp > libtorch torch/torch.h "torch::Tensor" -ltorch -lc10 -ltorch_cpu -lstdc++ - > lpthread > > This needs to be c++17 at least for the most recent (2.2.1) release. It fails to > compile with c++14. > > - Cosmin Thanks Cosmin I will update them in patch v5. -Wenbin > > > _______________________________________________ > 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". _______________________________________________ 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".
prev parent reply other threads:[~2024-03-06 3:19 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-21 3:07 wenbin.chen-at-intel.com [not found] ` <27E243F0-156F-49F2-B5F5-FBBD2BBABAD0@cosmin.at> 2024-02-29 21:25 ` Cosmin Stejerean via ffmpeg-devel 2024-03-06 3:19 ` Chen, Wenbin [this message]
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=IA1PR11MB639696204893F02F1948B0CEF8212@IA1PR11MB6396.namprd11.prod.outlook.com \ --to=wenbin.chen-at-intel.com@ffmpeg.org \ --cc=cosmin@cosmin.at \ --cc=ffmpeg-devel@ffmpeg.org \ /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