cardwing / Codes-for-Lane-Detection

Learning Lightweight Lane Detection CNNs by Self Attention Distillation (ICCV 2019)
MIT License
1.04k stars 333 forks source link

What will happen after removing exist_loss? #294

Closed garryz94 closed 4 years ago

garryz94 commented 4 years ago

Hi @cardwing , first I want to thank you for sharing your excellent work, it really helps! I want to train erfnet-sad on my own data, but the number of lanes in my custom data varies a lot. So clearly, I don't have exist_file for my own data and it is hardly possible for me to calculate it. So what will happen when I remove the exist loss from the network?

cardwing commented 4 years ago

If you remove the exist loss, you may not use the F1-measure as the evaluation criterion since it needs to differentiate each lane instance (or you can use the clustering module to help differentiate lane instances). And I think the removal of exist loss won't greatly affect the pixel-level accuracy. You can have a try.

garryz94 commented 4 years ago

If you remove the exist loss, you may not use the F1-measure as the evaluation criterion since it needs to differentiate each lane instance (or you can use the clustering module to help differentiate lane instances). And I think the removal of exist loss won't greatly affect the pixel-level accuracy. You can have a try.

Thanks for your quick reply! I will try it. Different from CULane and TuSimple, my own data only have semantic-segmentation-style ground truth. In other words, when some obstacles occludes the lane line or when it comes to dash-style lane line , the imaginary lane is not labelled which is different from the above lane detection dataset. So should I do something to preprocess my data?

cardwing commented 4 years ago

You just need to check the size of your input images and make sure that data augmentation is rational.

garryz94 commented 4 years ago

You just need to check the size of your input images and make sure that data augmentation is rational.

In this way, SAD will act more like a semantic segmentation algorithm than a lane detection model? Am I right?

cardwing commented 4 years ago

Yes.

garryz94 commented 4 years ago

Yes.

Thanks for your reply.