liming-ai / AlignDet

Official code for ICCV 2023 Paper: AlignDet: Aligning Pre-training and Fine-tuning in Object Detection.
https://liming-ai.github.io/AlignDet/
Apache License 2.0
142 stars 13 forks source link

ModuleNotFoundError: No module named 'AlignDet' #22

Closed hit-lyw closed 11 months ago

hit-lyw commented 11 months ago

`raceback (most recent call last): File "D:\miniconda\envs\my_aligndet\lib\site-packages\mmcv\utils\misc.py", line 73, in import_modules_from_strings imported_tmp = import_module(imp) File "D:\miniconda\envs\my_aligndet\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 972, in _find_and_load_unlocked File "", line 228, in _call_with_frames_removed File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'AlignDet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "E:\lyw\lyw_weed\AlignDet\tools\train.py", line 242, in main() cfg = Config.fromfile(args.config) File "D:\miniconda\envs\my_aligndet\lib\site-packages\mmcv\utils\config.py", line 343, in fromfile import_modules_from_strings(**cfg_dict['custom_imports']) File "D:\miniconda\envs\my_aligndet\lib\site-packages\mmcv\utils\misc.py", line 80, in import_modules_from_strings raise ImportError ImportError`

hit-lyw commented 11 months ago

Hi I am getting the above error while running the pre-training code, what is the reason for this?

liming-ai commented 11 months ago

Hi I am getting the above error while running the pre-training code, what is the reason for this?

I run it on Linux system without any problem, please try it on Linux and make sure all environment is configured correctly, thank you

hit-lyw commented 11 months ago

好的谢谢,我加入sys.path.append(项目的根目录后得到解决)

------------------ 原始邮件 ------------------ 发件人: "Ming @.>; 发送时间: 2024年1月1日(星期一) 上午9:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liming-ai/AlignDet] ModuleNotFoundError: No module named 'AlignDet' (Issue #22)

嗨,我得到上面的错误,而运行前培训代码,这是什么原因?

我在Linux系统上运行它没有任何问题,请尝试在Linux上,并确保所有的环境配置正确,谢谢

- 直接回复这封邮件,在GitHub上查看,或取消订阅. 您收到此消息是因为您创建了线程。消息ID:< minim - ai / AlignDet /议题/ 22 / @.***和>

liming-ai commented 11 months ago

好的谢谢,我加入sys.path.append(项目的根目录后得到解决) ------------------ 原始邮件 ------------------ 发件人: "Ming @.>; 发送时间: 2024年1月1日(星期一) 上午9:22 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [liming-ai/AlignDet] ModuleNotFoundError: No module named 'AlignDet' (Issue #22) 嗨,我得到上面的错误,而运行前培训代码,这是什么原因? 我在Linux系统上运行它没有任何问题,请尝试在Linux上,并确保所有的环境配置正确,谢谢 - 直接回复这封邮件,在GitHub上查看,或取消订阅. 您收到此消息是因为您创建了线程。消息ID:< minim - ai / AlignDet /议题/ 22 / @.***和>

Thank you for your interest and reply. Happy New Year.