I installed pytorch-jacinto-ai mmcv and pytorch-mmdetection. but when i run ./run_detection_train.sh, get ImportError.
# hy @ hy-Z390-GAMING-X in ~/lyw/pytorch-mmdetection on git:master x [15:53:42] $ ./run_detection_train.sh Training with: ./configs/ssd/ssd-lite_regnet_fpn_bgr.py @ 2021-01-14_15-59-49 ***************************************** Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. ***************************************** /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmcv/utils/registry.py:64: UserWarning: The old API of register_module(module, force=False) is deprecated and will be removed, please use the new API register_module(name=None, force=False, module=None) instead. 'The old API of register_module(module, force=False) ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmcv/utils/registry.py:64: UserWarning: The old API of register_module(module, force=False) is deprecated and will be removed, please use the new API register_module(name=None, force=False, module=None) instead. 'The old API of register_module(module, force=False) ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmcv/utils/registry.py:64: UserWarning: The old API of register_module(module, force=False) is deprecated and will be removed, please use the new API register_module(name=None, force=False, module=None) instead. 'The old API of register_module(module, force=False) ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmcv/utils/registry.py:64: UserWarning: The old API of register_module(module, force=False) is deprecated and will be removed, please use the new API register_module(name=None, force=False, module=None) instead. 'The old API of register_module(module, force=False) ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/fp16/deprecated_fp16_utils.py:28: UserWarning: Importing auto_fp16 from "mmdet.core" will be deprecated in the future. Please import them from "mmcv.runner" instead 'Importing auto_fp16 from "mmdet.core" will be ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/fp16/deprecated_fp16_utils.py:28: UserWarning: Importing auto_fp16 from "mmdet.core" will be deprecated in the future. Please import them from "mmcv.runner" instead 'Importing auto_fp16 from "mmdet.core" will be ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/fp16/deprecated_fp16_utils.py:28: UserWarning: Importing auto_fp16 from "mmdet.core" will be deprecated in the future. Please import them from "mmcv.runner" instead 'Importing auto_fp16 from "mmdet.core" will be ' /home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/fp16/deprecated_fp16_utils.py:28: UserWarning: Importing auto_fp16 from "mmdet.core" will be deprecated in the future. Please import them from "mmcv.runner" instead 'Importing auto_fp16 from "mmdet.core" will be ' Traceback (most recent call last): File "./xmmdet/tools/train.py", line 16, in <module> Traceback (most recent call last): File "./xmmdet/tools/train.py", line 16, in <module> Traceback (most recent call last): File "./xmmdet/tools/train.py", line 16, in <module> Traceback (most recent call last): from xmmdet.apis import set_random_seed, train_detector File "./xmmdet/tools/train.py", line 16, in <module> File "/home/hy/lyw/pytorch-mmdetection/xmmdet/__init__.py", line 7, in <module> from xmmdet.apis import set_random_seed, train_detector File "/home/hy/lyw/pytorch-mmdetection/xmmdet/__init__.py", line 7, in <module> from .apis import * from xmmdet.apis import set_random_seed, train_detector File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/__init__.py", line 4, in <module> from .apis import * File "/home/hy/lyw/pytorch-mmdetection/xmmdet/__init__.py", line 7, in <module> File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/__init__.py", line 4, in <module> from xmmdet.apis import set_random_seed, train_detector File "/home/hy/lyw/pytorch-mmdetection/xmmdet/__init__.py", line 7, in <module> from .test import multi_gpu_test, single_gpu_test File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/test.py", line 12, in <module> from .apis import *from .test import multi_gpu_test, single_gpu_test File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/__init__.py", line 4, in <module> File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/test.py", line 12, in <module> from mmdet.core import encode_mask_results, tensor2imgsfrom .apis import * File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/__init__.py", line 4, in <module> ImportError: cannot import name 'tensor2imgs' from 'mmdet.core' (/home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/__init__.py) from .test import multi_gpu_test, single_gpu_testfrom mmdet.core import encode_mask_results, tensor2imgs File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/test.py", line 12, in <module> ImportError: cannot import name 'tensor2imgs' from 'mmdet.core' (/home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/__init__.py) from .test import multi_gpu_test, single_gpu_test File "/home/hy/lyw/pytorch-mmdetection/xmmdet/apis/test.py", line 12, in <module> from mmdet.core import encode_mask_results, tensor2imgs ImportError: cannot import name 'tensor2imgs' from 'mmdet.core' (/home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/__init__.py) from mmdet.core import encode_mask_results, tensor2imgs ImportError: cannot import name 'tensor2imgs' from 'mmdet.core' (/home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/mmdet/core/__init__.py) Traceback (most recent call last): File "./scripts/train_detection_main.py", line 30, in <module> distributed_launch.main() File "/home/hy/anaconda3/envs/lyw/lib/python3.7/site-packages/torch/distributed/launch.py", line 256, in main cmd=cmd) subprocess.CalledProcessError: Command '['/home/hy/anaconda3/envs/lyw/bin/python', '-u', './xmmdet/tools/train.py', '--local_rank=3', '--launcher=pytorch', './configs/ssd/ssd-lite_regnet_fpn_bgr.py']' returned non-zero exit status 1. Done.