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

Could you please tell me how to correct this error?Thank you in advance!!! #12

Closed
Starboy-at-earth opened this issue Jul 1, 2021 · 16 comments

Comments

@Starboy-at-earth
Copy link

~/projects/condlanenet/conditional-lane-detection$ python tools/condlanenet/culane/test_culane.py
Traceback (most recent call last):
File "tools/condlanenet/culane/test_culane.py", line 21, in
from mmdet.models.detectors.condlanenet import CondLanePostProcessor
File "/home/yjx/projects/condlanenet/conditional-lane-detection/mmdet/models/init.py", line 1, in
from .backbones import * # noqa: F401,F403
File "/home/yjx/projects/condlanenet/conditional-lane-detection/mmdet/models/backbones/init.py", line 1, in
from .hrnet import HRNet
File "/home/yjx/projects/condlanenet/conditional-lane-detection/mmdet/models/backbones/hrnet.py", line 7, in
from mmdet.utils import get_root_logger
ImportError: cannot import name 'get_root_logger' from 'mmdet.utils' (/home/yjx/projects/condlanenet/conditional-lane-detection/mmdet/utils/init.py)

@Starboy-at-earth
Copy link
Author

And this....
###############################################
Traceback (most recent call last):
File "tools/condlanenet/culane/test_culane.py", line 20, in
from mmdet.utils.general_utils import mkdir
ModuleNotFoundError: No module named 'mmdet.utils.general_utils'

@Starboy-at-earth
Copy link
Author

Anyone with the same puzzle is welcome......

@hustllz
Copy link
Collaborator

hustllz commented Jul 1, 2021

The installation of mmdetection should be based on this repo since we have added some files
. The "Install.md" has been updated to avoid misunderstanding.
You can reinstall this framework as following:

git clone https://github.com/aliyun/conditional-lane-detection.git
cd conditional-lane-detection
pip install -r requirements/build.txt
python setup.py develop

@Starboy-at-earth
Copy link
Author

python ./tools/condlanenet/culane/test_culane.py
/home/yjx/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/_tensor.py:575: UserWarning: floor_divide is deprecated, and will be removed in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values.
To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). (Triggered internally at /opt/conda/conda-bld/pytorch_1623448224956/work/aten/src/ATen/native/BinaryOps.cpp:467.)
return torch.floor_divide(self, other)
The model and loaded state dict do not match exactly

unexpected key in source state_dict: bbox_head.reg_branch.0.conv.weight, bbox_head.reg_branch.0.bn.weight, bbox_head.reg_branch.0.bn.bias, bbox_head.reg_branch.0.bn.running_mean, bbox_head.reg_branch.0.bn.running_var, bbox_head.reg_branch.0.bn.num_batches_tracked, bbox_head.reg_branch.1.conv.weight, bbox_head.reg_branch.1.bn.weight, bbox_head.reg_branch.1.bn.bias, bbox_head.reg_branch.1.bn.running_mean, bbox_head.reg_branch.1.bn.running_var, bbox_head.reg_branch.1.bn.num_batches_tracked, bbox_head.reg_branch.2.conv.weight, bbox_head.reg_branch.2.bn.weight, bbox_head.reg_branch.2.bn.bias, bbox_head.reg_branch.2.bn.running_mean, bbox_head.reg_branch.2.bn.running_var, bbox_head.reg_branch.2.bn.num_batches_tracked

completed: 0, elapsed: 0sSegmentation fault (core dumped)

@Starboy-at-earth
Copy link
Author

@hustllz emmmm, why does this error pop up? Do you have any idea?

@Starboy-at-earth
Copy link
Author

Solved. Just need to rewrite ~ as the full path in config.py.

@HaoYongqiang1999
Copy link

Solved. Just need to rewrite ~ as the full path in config.py.

Hello, I also encountered the same problem. Could you please tell me in detail how you solved it? thank you very much

@Starboy-at-earth
Copy link
Author

Starboy-at-earth commented Jul 13, 2021

@HaoYongqiang1999
Which problem did you encounter?

@HaoYongqiang1999
Copy link

@HaoYongqiang1999
Which problem did you encounter?

Thanks to your previous comment,problem has been solved. Thank you!

@hilnkm
Copy link

hilnkm commented Jul 14, 2021

Can you tell me How did you change it?

@Starboy-at-earth
Copy link
Author

Can you tell me How did you change it?

Could you please say chinese? I am a little confused about what you have asked. And I solved two problems in this round of discussion. Which one do you want to tackle? I will try my best to help you, in the way the author did to me.

@hilnkm
Copy link

hilnkm commented Jul 14, 2021

Can you tell me How did you change it?

Could you please say chinese? I am a little confused about what you have asked. And I solved two problems in this round of discussion. Which one do you want to tackle? I will try my best to help you, in the way the author did to me.
您好,我想请问一下您上面出现的问题(core dumped)是怎么解决的?

@HaoYongqiang1999
Copy link

Can you tell me How did you change it?

Could you please say chinese? I am a little confused about what you have asked. And I solved two problems in this round of discussion. Which one do you want to tackle? I will try my best to help you, in the way the author did to me.

在您评论的帮助下,我的问题已经解决了,我现在没什么问题了。感谢!

@HaoYongqiang1999
Copy link

Can you tell me How did you change it?

Could you please say chinese? I am a little confused about what you have asked. And I solved two problems in this round of discussion. Which one do you want to tackle? I will try my best to help you, in the way the author did to me.
您好,我想请问一下您上面出现的问题(core dumped)是怎么解决的?

我是把"/conditional-lane-detection/configs/condlanenet/culane/culane_large_test.py"中的第六行改成了我自己的数据集路径,就没问题了。

@Starboy-at-earth Starboy-at-earth changed the title Could you please tell how to correct this error? Thank you in advance!!! Could you please tell me how to correct this error?Thank you in advance!!! Jul 14, 2021
@hilnkm
Copy link

hilnkm commented Jul 15, 2021

Can you tell me How did you change it?

Could you please say chinese? I am a little confused about what you have asked. And I solved two problems in this round of discussion. Which one do you want to tackle? I will try my best to help you, in the way the author did to me.
您好,我想请问一下您上面出现的问题(core dumped)是怎么解决的?

我是把"/conditional-lane-detection/configs/condlanenet/culane/culane_large_test.py"中的第六行改成了我自己的数据集路径,就没问题了。

谢谢

@imadalishah
Copy link

imadalishah commented Sep 26, 2022

Getting Error:

/content/conditional-lane-detection
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Traceback (most recent call last):
File "tools/condlanenet/tusimple/test_tusimple.py", line 19, in
from tools.condlanenet.common import tusimple_convert_formal, COLORS
ModuleNotFoundError: No module named 'tools'

Any solution??

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

5 participants