How to perform Lane Detection on custom videos using the pretrained "laneNet" series network?

조회 수: 9 (최근 30일)
How to perform Lane Detection on custom videos using the pretrained "laneNet" series network?
I am referring to the following example:
When I try to adapt the example of lane detection on my own video, the lane detection is not correct. Specifically, when I use the pretrained "laneNet" and the default pretrained parameters "laneCoeffMeans" and the "laneCoeffStds" for my own videos, the detected lane is incorrect.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 11월 1일
편집: MathWorks Support Team 2021년 11월 1일
This behavior is expected, as the trained network and the trained parameters are specifically trained for the training data. There could be many parameters that may vary in your test videos from the training data set. There is no direct way to use the pretrained "laneNet" series network on the custom videos.
You can also take the pretrained network and use it as a starting point to learn a new task by performing transfer learning. Fine-tuning the pretrained network with transfer learning is usually much faster and easier than training a network with randomly initialized weights from scratch. You can quickly transfer the learned features to a new task using a smaller number of training data.
You can refer to the following link for more information on how to use transfer learning to retrain AlexNet, a pretrained convolutional neural network, to classify a new set of images:
Another possible solution for lane detection is you can use the Ground Truth Labeler app in Automated Driving System Toolbox to label a set of your custom training data with the ground truth representing the right and left lane boundaries.
You can refer to the following links for more information on Deep Learning for lane detection and automating the ground truth labeling of lane boundaries respectively:
Also, you can define camera configurations to perform lane detection correctly on your video. You can refer to the following link for an example that shows how to construct a monocular camera sensor simulation capable of lane boundary detection:
 

추가 답변 (1개)

David Willingham
David Willingham 2021년 11월 2일
Hi, there is a pretrained model for lane detection available on GitHub here.This repository implements a pretrained Spatial-CNN (SCNN) lane detection model in MATLAB.

카테고리

Help CenterFile Exchange에서 Recognition, Object Detection, and Semantic Segmentation에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by