compiling mmdeploy-runtime #2771
Unanswered
laurentbsp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to recompile mmdeploy-runtime to make a custom pip package with a small change (limit multithreading during ONNX inference). I have followed the instructions here:
https://mmdeploy.readthedocs.io/en/latest/01-how-to-build/build_from_source.html
https://mmdeploy.readthedocs.io/en/latest/01-how-to-build/linux-x86_64.html
https://github.com/open-mmlab/mmdeploy/tree/main/tools/package_tools
It completes successfully and creates a pip package that I can install. However, when to
import mmdeploy_runtime
I get an error about missing a opencv library. This can be resolved by adding the adding the OpenCV lib path to LD_LIBRARY_PATH, but I am trying to build a self-contained package. The one I download usingpip install mmdeploy-runtime
appears to have all the dependencies built intolibmmdeploy.so.1
, which is ~40MB whereas the one I build is ~4MB. I have tried a few things but cannot figure out what I am doing wrong/differently on how you build your pip package.Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions