fudan-zvg / DeepInteraction

[NeurIPS 2022] DeepInteraction: 3D Object Detection via Modality Interaction
MIT License
221 stars 16 forks source link

error :No module named 'projects' #29

Open study0101 opened 1 year ago

study0101 commented 1 year ago

Thanks for your great work. I have a problem when testing DeepInteraction-base model with the given checkpoint. I used command : python tools/test.py projects/configs/nuscenes/Fusion_0075_refactor.py trained/Fusion_0075_refactor.pth --eval=bbox but errors appear Traceback (most recent call last): File "tools/test.py", line 246, in main() File "tools/test.py", line 138, in main plg_lib = importlib.import_module(_module_path) File "/sdbdata/zjy/anaconda3/envs/deep/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'projects'

My environment :

TorchVision: 0.10.1+cu111 OpenCV: 4.6.0 MMCV: 1.3.18 MMCV Compiler: GCC 9.4 MMCV CUDA Compiler: 11.1 MMDetection: 2.14.0 MMSegmentation: 0.14.1 MMDetection3D: 0.17.1

Gmonster-24 commented 1 year ago

I also met the same problem. Have you solved it?

Alexander0Yang commented 1 year ago

When you directly run tools/test.py for testing, you should add the current path to the environment variable PYTHONPATH.