where can I find helperCalc​ulateClass​Weights helper function?

조회 수: 8 (최근 30일)
Ziyuan LI
Ziyuan LI 2023년 8월 16일
댓글: Steven Lord 2023년 8월 16일
Hi! I am tryin to repeat the pointnet++ code https://www.mathworks.com/help/deeplearning/ug/aerial-lidar-segemation-using-pointnet.html . However, I stuck at the code.
[weights,maxLabel,maxWeight] = helperCalculateClassWeights(fs,numClasses);
it return me the error.
Undefined function 'helperCalculateClassWeights' for input arguments of type
'matlab.io.datastore.FileSet'
The website said that "Use the helperCalculateClassWeights helper function, attached to this example as a supporting file, to calculate the point distribution across all the classes in the training dataset.". but the suporting function did not have the function helperCalculateClassWeights.
I wonder did matlab forget to add this function to the content or I should find it somewhere else.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 8월 16일
이동: Steven Lord 2023년 8월 16일
I do not have the Lidar Toolbox, but I do have the Deep Learning Toolbox.
After I execute the command
openExample('deeplearning_shared/AerialLidarSemanticSegmentationUsingPointNetExample')
then the file shows up at
~/Documents/MATLAB/Examples/R2023b/deeplearning_shared/AerialLidarSemanticSegmentationUsingPointNetExample/helperCalculateClassWeights.m
on my Mac.
  댓글 수: 1
Steven Lord
Steven Lord 2023년 8월 16일
That's correct. If you open the example in MATLAB, MATLAB will automatically cd into the example directory where the helper function is located.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by