-
Notifications
You must be signed in to change notification settings - Fork 645
Replies: 2 comments · 4 replies
-
Beta Was this translation helpful? Give feedback.
All reactions
-
@akiross There is a related PR #1002. Can you try whether https://github.com/open-mmlab/mmdeploy/blob/master/docs/en/05-supported-backends/torchscript.md#sdk-backend helps? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I also tried with the version tagged v0.7.0: it would build, but running the pose detection example would fail due to torchscript backend not being found:
Yes, that helped and I made some progress! Thank you very much. Since my OpenCV and other libraries are using C++11 ABI, I had to download
which built successfully. When I ran the example I got an issue though:
I suspect this is due to my model being exported with a previous version of the code or something like that. I cannot test this hypothesis right now, so I'll try tomorrow. I might be mistaken though. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, please try with the latest version. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Note: this comment is obsolte, I resolved the issue. Sadly I'm not able to export the model anymore. I might have done something wrong, but I'm receiving a problem with numpy versions, something along these lines: (click to expand)
This was run in a clean fedora:36 container, using conda and pip:
Is this related to my environment or to recent updates? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Scrap my last answer: I managed to export the model (had to install mmpose dependencies before mmdeploy) and it works now, but a segfault is still happening:
Still it's a big progress. I'll try to find out where the segfault is happening. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to use the C++ SDK, but I'm incurring in some difficulties with building the examples.
I first built the SDK, with torchscript as backend and CPU as device, using:
This works without issues and in the
install
directory I can find the examples source code, the built libraries and the header files.The problem happens if I use
MMDEPLOY_BUILD_EXAMPLES=ON
or if I try to manually build the examples.Using the
install/example/cpp/CMakeLists.txt
file, there are some issues:but I'm might be missing something important here, my CMake-fu is not great.
So I tried to build the pose detection example manually, by using
but this fails again because some symbols cannot be found:
I tried adding
-lmmdeploy_model -lmmdeploy_core
, but they didn't help and the error is the same.Note that, if I try to build the SDK using
-DMMDEPLOY_BUILD_EXAMPLES=ON
, I get these sameundefined reference
errors I'm getting with manual build:How can I build the examples and have the linker successfully resolve those symbols?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions