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

How to get the lane ID from output? #28

Closed
lucky-xu-1994 opened this issue Jul 7, 2021 · 6 comments
Closed

How to get the lane ID from output? #28

lucky-xu-1994 opened this issue Jul 7, 2021 · 6 comments

Comments

@lucky-xu-1994
Copy link

Hi, thank you for your great work! It did well on my own datasets!
but I have trouble with getting the lane ID directly from seg_out. It seems to need a label.png to get the lane ID like in CUlane.
So, how can I directly get the lane ID?
please give me some advise, thank you very much!

@arangesh
Copy link
Collaborator

arangesh commented Jul 7, 2021

The ground truth segmentation labels are not necessary during inference but we do use them to assign consistent lane IDs to the lanes obtained from our approach (see this line). Doing so does not affect our scores on CULane but makes the visualization more consistent by assigning the same color to lanes across different images.
I will try to push a change soon that makes this optional so that you can run inference on CULane without needing the label files.

@lucky-xu-1994
Copy link
Author

The ground truth segmentation labels are not necessary during inference but we do use them to assign consistent lane IDs to the lanes obtained from our approach (see this line). Doing so does not affect our scores on CULane but makes the visualization more consistent by assigning the same color to lanes across different images.
I will try to push a change soon that makes this optional so that you can run inference on CULane without needing the label files.

thanks a lot!

@arangesh
Copy link
Collaborator

arangesh commented Jul 8, 2021

I have pushed the necessary changes. The infer_*.py scripts can now run without the label.png files.

@lucky-xu-1994
Copy link
Author

I have pushed the necessary changes. The infer_*.py scripts can now run without the label.png files.

thank you for modifying the scripts that can now run without the 'label.png' files.
but it still can't get the lane ID like in culane.
as shown below, It only presents 3 lanes as a result, but dosen't show which lane ID it is(used to get the lane ID by match_multi_class). In culane the ID is 1,2,3.
image
the following ID in culane is 0,1,2,3
image

@arangesh
Copy link
Collaborator

arangesh commented Jul 8, 2021

Unfortunately, we don't differentiate between different lanes in our approach. We detect all the lanes and assign each one a unique ID. However, the IDs are not consistent and can change between images. For example, the left most lane can be assigned ID 1 in one image, and be assigned ID 2 in the next.

You can use some simple logic to convert the IDs to match CULane. For example, you can use the average horizontal location of each lane to figure out which lanes are to the left and which ones are to the right.

@lucky-xu-1994
Copy link
Author

Unfortunately, we don't differentiate between different lanes in our approach. We detect all the lanes and assign each one a unique ID. However, the IDs are not consistent and can change between images. For example, the left most lane can be assigned ID 1 in one image, and be assigned ID 2 in the next.

You can use some simple logic to convert the IDs to match CULane. For example, you can use the average horizontal location of each lane to figure out which lanes are to the left and which ones are to the right.

ok, thank you for your advice!

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