Open TsaiChao-Hsin opened 7 months ago
I encounter the same issue.
Anyone could help? please.
macOS
just installed mmdeploy
i try to run import mmdeploy
to verify the installation
then the same ImportError occurred
ImportError: cannot import name 'cfg_apply_marks' from 'mmdeploy.utils' (/Users/username/mmdeploy-main/mmdeploy/utils/__init__.py)
diff --git a/mmdeploy/utils/__init__.py b/mmdeploy/utils/__init__.py
old mode 100644
new mode 100755
index 1c1865b6..298e9614
--- a/mmdeploy/utils/__init__.py
+++ b/mmdeploy/utils/__init__.py
@@ -5,6 +5,7 @@ from .constants import IR, SDK_TASK_MAP, Backend, Codebase, Task
from .device import parse_cuda_device_id, parse_device_id, parse_device_type
from .env import get_backend_version, get_codebase_version, get_library_version
from .utils import get_file_path, get_root_logger, target_wrapper
+from .config_utils import *
__all__ = [
'SDK_TASK_MAP', 'IR', 'Backend', 'Codebase', 'Task'
remember to install mmcv
Checklist
Describe the bug
I use sh tools/scripts/build_jetson_orin_python38.sh to build the environment on orin. After source env, I start to convert model using comand below:
python3 tools/deploy.py \ configs/mmdet/detection/detection_tensorrt_static-640x640.py \ ../mmpose/projects/rtmpose/rtmdet/person/rtmdet_m_640-8xb32_coco-person.py \ https://download.openmmlab.com/mmpose/v1/projects/rtmpose/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth \ demo/resources/human-pose.jpg \ --work-dir rtmpose-trt/rtmdet-ges \ --device cuda:0 \ --show \ --dump-info
But!!!! the import error occur
how to solve it please!!!!
Reproduction
python3 tools/deploy.py \ configs/mmdet/detection/detection_tensorrt_static-640x640.py \ ../mmpose/projects/rtmpose/rtmdet/person/rtmdet_m_640-8xb32_coco-person.py \ https://download.openmmlab.com/mmpose/v1/projects/rtmpose/rtmdet_m_8xb32-100e_coco-obj365-person-235e8209.pth \ demo/resources/human-pose.jpg \ --work-dir rtmpose-trt/rtmdet-ges \ --device cuda:0 \ --show \ --dump-info
Environment
Error traceback