Open collinbarnwell opened 5 months ago
Hi, I am facing the same problem now with Jetson Orin. I have installed mmdeploy_runtime like:
cd mmdeploy/tools/package_tools/packaging
pip install -v -e .
When running an import I get the following error:
from .mmdeploy_runtime import * # noqa
ModuleNotFoundError: No module named 'mmdeploy_runtime.mmdeploy_runtime'
As @collinbarnwell said, when I run tools/check_env.py
I get:
from mmcv.utils import collect_env as collect_base_env
ModuleNotFoundError: No module named 'mmcv.utils
It is strange becuase I have been able to convert a model as tutorial suggested and run an inference with c++ bin. However, I am stucked when installing and working with mmdeloy runtime on Jetson Platform
More info: when running pip list | grep mmdeploy
mmdeploy 1.3.1 /sd_card/repos/external_repos/mmdeploy
mmdeploy-runtime 1.3.1 /sd_card/repos/external_repos/mmdeploy/tools/package_tools/packaging
Any solutions? Did you manage to solve this problem @collinbarnwell ? Thanks in advance!
You could reference to the README under tools/package_tools to build the mmdeploy_runtime/mmdeploy_runtime_gpu.
Checklist
Describe the bug
I'm trying to run the object detection demo on a Jetson orin nano inside a docker image. I have a working image that installs mmdeploy for aarch64, but I'm unable to import
Detector
ormmdeploy_runtime
.I'm able to import mmdeploy into Python, as well as all the dependencies:
I've searched the mmdeploy code for a Python class called
Detector
, and I'm not finding anything. The mmdeploy_runtime directory is present in my local installation (and PYTHONPATH), but there's no actual code insidemmdeploy_runtime
, so I don't know where these classes are supposed to come from.Reproduction
I built a Docker image for Jetson Orin Nano with this Dockerfile:
And this docker command, which I build on my host:
docker buildx build --platform linux/arm64 -t mmdeploy_image
I put that docker image on my Jetson, then run a terminal inside of it:sudo docker run -it --rm --runtime nvidia --network=host mmdeploy_image
Then I run this:
And I get the error described above.
Environment
Check env didn't seem to work:
Other env vars:
I'm happy to fix this in a PR, I just need to understand more about the mmdeploy_runtime directory and where Detector is located.