Magic Numbers in Lane/Vehicle Detection Example

2 ビュー (過去 30 日間)
squared
squared 2023 年 9 月 26 日
回答済み: Aishwarya 2023 年 10 月 17 日
We're trying to understand the code in the example: "Code Generation for Deep Learning Simulink Model That Performs Lane and Vehicle Detection."
In the lane_detection_coordinates.m file there are some numbers that aren't explained: the persistent laneCoeffMeans and laneCoeffStds. Where did these come from? How would we produce these for this instance or, in general, any instance?
  2 件のコメント
Image Analyst
Image Analyst 2023 年 9 月 26 日
Do you have a reference link for that example? (Make it easy for us - don't make us hunt around for it.)

サインインしてコメントする。

回答 (1 件)

Aishwarya
Aishwarya 2023 年 10 月 17 日
Hi,
As per my understanding, you are seeking clarification regarding the variables "laneCoeffMeans" and "laneCoeffStds" in the "lane_detection_coordinates.m" file which is mentioned in the documentation attached below: https://www.mathworks.com/help/gpucoder/ug/lane-vehicle-detection-simulink-gpucoder.html
After carefully reviewing the provided documentation, I would like to share my insights on the code:
  • The laneCoeffMeans and laneCoeffStds variables are used to normalize the output of the lane detection network.
  • These values are computed during training of deep learning network and are used to scale and shift the network to obtain meaningful parameters for lane boundaries.
  • In the example, the values of laneCoeffMeans and laneCoeffStds variables are set to some default values if they are empty.
  • The “laneNetOut” is the normalized output from the deep learning network.
  • To revert the normalization process and obtain the original coefficients, the following line of code is implemented:
params = laneNetOut .* laneCoeffStds + laneCoeffMeans;
Hope this helps!
Regards,
Aishwarya

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by