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

mmdetection3d cannot start training ? #61

Closed
MenSanYan opened this issue Aug 1, 2023 · 4 comments
Closed

mmdetection3d cannot start training ? #61

MenSanYan opened this issue Aug 1, 2023 · 4 comments

Comments

@MenSanYan
Copy link

I use "python tools/train.py projects/openlanev2/configs/baseline.py" to start training, while an error is raised.
Traceback (most recent call last):
File "/home/ooxx/miniconda3/envs/openlanev2/lib/python3.8/site-packages/mmcv/utils/misc.py", line 73, in import_modules_from_strings
imported_tmp = import_module(imp)
File "/home/ooxx/miniconda3/envs/openlanev2/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/data/mmdetection3d/projects/openlanev2/baseline/init.py", line 2, in
from .datasets import *
File "/data/mmdetection3d/projects/openlanev2/baseline/datasets/init.py", line 2, in
from .openlane_v2_dataset import *
File "/data/mmdetection3d/projects/openlanev2/baseline/datasets/openlane_v2_dataset.py", line 34, in
from openlanev2.dataset import Collection
ModuleNotFoundError: No module named 'openlanev2.dataset'

What should I do to fix this ?

@faikit
Copy link
Collaborator

faikit commented Aug 1, 2023 via email

@MenSanYan
Copy link
Author

@faikit I use the v1.0.0 version of the code base, while another error is raised.
Traceback (most recent call last):
File "tools/train.py", line 263, in
main()
File "tools/train.py", line 119, in main
cfg = Config.fromfile(args.config)
File "/home/ooxx/miniconda3/envs/openlanev2/lib/python3.8/site-packages/mmcv/utils/config.py", line 340, in fromfile
cfg_dict, cfg_text = Config._file2dict(filename,
File "/home/ooxx/miniconda3/envs/openlanev2/lib/python3.8/site-packages/mmcv/utils/config.py", line 183, in _file2dict
check_file_exist(filename)
File "/home/mi/miniconda3/envs/openlanev2/lib/python3.8/site-packages/mmcv/utils/path.py", line 23, in check_file_exist
raise FileNotFoundError(msg_tmpl.format(filename))
FileNotFoundError: file "/data/mmdetection3d/projects/openlanev2/configs/baseline.py" does not exist

What should I do to fix this ?

@faikit
Copy link
Collaborator

faikit commented Aug 1, 2023 via email

@MenSanYan
Copy link
Author

@faikit Thank you very much! Folder OpenLane-V2 should be inside folder mmdetection3d, and training is ok now.

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

2 participants