voldemortX / pytorch-auto-drive

PytorchAutoDrive: Segmentation models (ERFNet, ENet, DeepLab, FCN...) and Lane detection models (SCNN, RESA, LSTR, LaneATT, BézierLaneNet...) based on PyTorch with fast training, visualization, benchmarking & deployment help
BSD 3-Clause "New" or "Revised" License
847 stars 138 forks source link

Curious about the CULane Dataset class #44

Closed maomaoding closed 2 years ago

maomaoding commented 2 years ago

hi, i'm wondering about the course of ppl,gap and start parameter setting of the CUlane dataset class. As far as i know, CUlane max points is 35, and some start y coordinate is lower than 290. Does those affect the lstr performance? Appreciate your answer.

voldemortX commented 2 years ago

@maomaoding We try to follow the 18 ppl setup from SCNN whenever possible, since they created this dataset, and if they assume 290 is the lowest point, then we should not infer otherwise by observing the test labels (one should never infer anything from the test set labels to help their models): https://github.com/XingangPan/SCNN/blob/master/tools/prob2lines/getLane.m

LSTR being a y-sampling method, it can follow this setup so it is aligned with its TuSimple version. Of course you can alternatively sample an arbitrary number of points between the predicted start and end points, although I suspect it can get any better performance, you are encouraged to try.

FYI, you can modify these codes: https://github.com/voldemortX/pytorch-auto-drive/blob/eed417ff0fef46118cab310e69563358bf714b28/torchvision_models/lane_detection/lstr.py#L130

EDIT: The number of sampled points may be trivial since the evaluation script makes a spline fitting.