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

Do I need to label lanes in a fixed order? #28

Closed
PJHardy opened this issue Nov 13, 2020 · 3 comments
Closed

Do I need to label lanes in a fixed order? #28

PJHardy opened this issue Nov 13, 2020 · 3 comments

Comments

@PJHardy
Copy link

PJHardy commented Nov 13, 2020

Thanks for your sharing.

Tusimple labeled 4 lanes for one image, and they have fixed order like left-left, ego-left, ego-right, right-right from 0 to 3.
Does the output of PolyLaneNet(L1 ~ L5) have the save order, or it just predict lane randomly?

If I want training my own dataset, do I need to label lanes in a fixed order?

@lucastabelini
Copy link
Owner

No, the code will sort the lanes for you (here).

@PJHardy
Copy link
Author

PJHardy commented Nov 14, 2020

So the targets were sorted in this order, will the predicts of net obey this order?

When calculate loss you simply use MCE or BCE without any matching for targets and predicts, unlike the common object detection method, they usually need to find the connection between anchor and ground truth.

If 4 lanes are labeled in a certain image and the predicts have 5 lanes, it will just use the first 4 lanes of prediction to calculate loss(from here). why does it work?

Another question, If I using tusimple dataset for training, can I just assume the predicts (L1, L2, L3, L4) are exactly (left-left, ego-left, ego-right, right-right)?

@lucastabelini
Copy link
Owner

So the targets were sorted in this order, will the predicts of net obey this order?

Yes, probably.

When calculate loss you simply use MCE or BCE without any matching for targets and predicts, unlike the common object detection method, they usually need to find the connection between anchor and ground truth.

If 4 lanes are labeled in a certain image and the predicts have 5 lanes, it will just use the first 4 lanes of prediction to calculate loss(from here). why does it work?

The model learns to predict all lanes in a sorted manner.

Another question, If I using tusimple dataset for training, can I just assume the predicts (L1, L2, L3, L4) are exactly (left-left, ego-left, ego-right, right-right)?

Not sure. You would have to look at the dataset's original description.

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