- PyTorch 0.3.0.
- Matlab (for tools/prob2lines), version R2014a or later.
- Opencv (for tools/lane_evaluation), version 2.4.8 (later 2.4.x should also work).
Please follow list to put CULane in the desired folder. We'll call the directory that you cloned ERFNet-CULane-PyTorch as $ERFNet_ROOT
.
-
Download our trained models to
./trained
cd $ERFNet_ROOT/trained
The trained model has already been there.
-
Run test script
cd $ERFNet_ROOT sh ./test_erfnet.sh
Testing results (probability map of lane markings) are saved in
experiments/predicts/
by default. -
Get curve line from probability map
cd tools/prob2lines matlab -nodisplay -r "main;exit" # or you may simply run main.m from matlab interface
The generated line coordinates would be saved in
tools/prob2lines/output/
by default. -
Calculate precision, recall, and F-measure
cd $ERFNet_ROOT/tools/lane_evaluation make sh Run.sh # it may take over 30min to evaluate
Note:
Run.sh
evaluate each scenario separately whilerun.sh
evaluate the whole. You may usecalTotal.m
to calculate overall performance from all senarios.
By now, you should be able to reproduce the result (F1-measure: 73.1).
- Download the pre-trained model
The pre-trained model has already been there.
cd $ERFNet_ROOT/pretrained
- Training ERFNet model
The training process should start and trained models would be saved in
cd $ERFNet_ROOT sh ./train_erfnet.sh
trained
by default.
Then you can test the trained model following the Testing steps above. If your model position or name is changed, remember to set them to yours accordingly.