Example scripts for the detection of lanes using the ultra fast lane detection model in Pytorch.
Source: https://www.flickr.com/photos/32413914@N00/1475776461/
pip install -r requirements
pip install pafy youtube-dl
Pytorch: Check the Pytorch website to find the best method to install Pytorch in your computer.
Download the pretrained model from the original repository and save it into the models folder.
Image inference:
python imageLaneDetection.py
python webcamLaneDetection.py
python videoLaneDetection.py
Original video: https://youtu.be/2CIxM7x-Clc (by Yunfei Guo)