lucastabelini / PolyLaneNet

Code for the paper entitled "PolyLaneNet: Lane Estimation via Deep Polynomial Regression" (ICPR 2020)
https://arxiv.org/abs/2004.10924
MIT License
301 stars 75 forks source link

Test problem? #7

Closed china56321 closed 4 years ago

china56321 commented 4 years ago

HI, I use the pretrained model_2695.pt to test my own dataset.but it shows like this: pred_screenshot_02 06 2020

Below is my config.yaml :

Training settings

seed: 0 exps_dir: 'experiments' iter_log_interval: 1 iter_time_window: 100 model_save_interval: 1 backup: model: name: PolyRegression parameters: num_outputs: 35 # (5 lanes) * (1 conf + 2 (upper & lower) + 4 poly coeffs) pretrained: true backbone: 'resnet50' pred_category: false curriculum_steps: [0, 0, 0, 0] loss_parameters: conf_weight: 1 lower_weight: 1 upper_weight: 1 cls_weight: 0 poly_weight: 300 batch_size: 16 epochs: 2695 optimizer: name: Adam parameters: lr: 3.0e-4 lr_scheduler: name: CosineAnnealingLR parameters: T_max: 385

Testing settings

test_parameters: conf_threshold: 0.5

Dataset settings

datasets: train: type: LaneDataset parameters: dataset: nolabel_dataset split: train img_size: [540, 960] normalize: true aug_chance: 0.9090909090909091 # 10/11 augmentations:

Could you give me some advice ? Thanks

lucastabelini commented 4 years ago

Every lane detection dataset will have a certain bias toward the position of the horizon line. Since the model was trained on TuSimple, and you're testing on a different dataset, that bias will have a large effect on the quality of the predictions. As you can see in your image, the horizon line has a large offset from the real horizon line.

In order to fix this, you'll have to fine-tune the model on your dataset.