Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error :No module named 'projects' #29

Open
study0101 opened this issue May 10, 2023 · 2 comments
Open

error :No module named 'projects' #29

study0101 opened this issue May 10, 2023 · 2 comments

Comments

@study0101
Copy link

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
Copy link

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

@Alexander0Yang
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants