필터 지우기
필터 지우기

Not able to access functions in Matlab 2018a

조회 수: 4 (최근 30일)
manish kalburgi
manish kalburgi 2018년 5월 8일
댓글: Lilly 2022년 9월 8일
I am trying to evaluate the following MATLAB example:
multispectral-semantic-segmentation-using-deep-learning {URL : https://in.mathworks.com/help/images/multispectral-semantic-segmentation-using-deep-learning.html }
The example uses few functions such as downloadHamlinBeachMSIData, downloadTrainedUnet, switchChannelsToThirdPlane etc. which I am not able to find as inbuilt MATLAB / toolbox function.
I am using trial version of MATLAB 2018a.

답변 (8개)

Mounika Akula
Mounika Akula 2018년 5월 8일
편집: Walter Roberson 2019년 3월 4일
This example uses:
  • Neural Network Toolbox
  • Computer Vision System Toolbox
Do you have these toolboxes installed on your system? Check the output of the following command to see if they are installed
>> ver
Also, they mentioned in the documentation:
"The example shows how to train a U-Net network and also provides a pretrained U-Net network. If you choose to train the U-Net network, use of a CUDA-capable NVIDIA™ GPU with compute capability 3.0 or higher is highly recommended (requires Parallel Computing Toolbox™)."
Check for Parallel Computing Toolbox too.
Hope this helps!
  댓글 수: 1
manish kalburgi
manish kalburgi 2018년 5월 8일
Hi Mounika,
I checked the toolboxes. The toolboxes you mentioned are present in the installation. Please find below the description:
Trial>> ver ----------------------------------------------------------------------------------------------------- MATLAB Version: 9.4.0.813654 (R2018a) MATLAB License Number: DEMO Operating System: Microsoft Windows 8.1 Enterprise Version 6.3 (Build 9600) Java Version: Java 1.8.0_144-b01 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode ----------------------------------------------------------------------------------------------------- MATLAB Version 9.4 (R2018a) Computer Vision System Toolbox Version 8.1 (R2018a) Image Acquisition Toolbox Version 5.4 (R2018a) Image Processing Toolbox Version 10.2 (R2018a) Neural Network Toolbox Version 11.1 (R2018a) Parallel Computing Toolbox Version 6.12 (R2018a) Signal Processing Toolbox Version 8.0 (R2018a) Statistics and Machine Learning Toolbox Version 11.3 (R2018a)
Also, if I search these functions in MATLAB Help/Documentation I don't see any description for these functions.

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


Steven Lord
Steven Lord 2018년 5월 8일
Those functions are helpers for the example and are mainly intended to be used by the example, not reused for general purposes. If you have the example open in the Live Editor you can right-click on the name of the helper function and open it if you want to read the code. However, because these are helpers rather than documented functions they may change or go away in future releases if the example changes.

Xiang LI
Xiang LI 2018년 5월 11일
편집: Xiang LI 2018년 5월 11일
I solved this problem by using "set Path" with "Add Folder" (or "Add with Subfolders" if many) for "YourMatlabFolderPath/MATLAB/R2018a/examples/images/main".

asif raza
asif raza 2018년 10월 8일
I have same problem , did anyone find the solution or can explain in detail how to solve this problem, please reply fast

M. Mubashir Hussain
M. Mubashir Hussain 2019년 3월 4일
I am unable to open this example in MATLAB. The Hepler functions like switchChannelsToThirdPlane are not visible in the example's text. Any help regarding how to implement the functionlaity of the helper functions? I tried to use reshape function for the functionality of switchChannelsToThirdPlane helper function but the resulting images given in the montage are not matching!
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 3월 4일
>> cd(matlabroot)
>> !find . -depth -name \*switchChannelsToThirdPlane\* -print
./examples/deeplearning_shared/main/switchChannelsToThirdPlane.m
./examples/images/main/switchChannelsToThirdPlane.m
However in R2018a it was only in examples/images and not deeplearning_shared -- but also for whatever reason R2018a has it exist as switchChannelsToThirdPlanes.m as well as switchChannelsToThirdPlane.m (no final 's')
M. Mubashir Hussain
M. Mubashir Hussain 2019년 3월 4일
Thanks a lot for your kind guidance! Surely there was no way I could figure that out myself!

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


M. Mubashir Hussain
M. Mubashir Hussain 2019년 3월 4일
Multiple deep learning examples like this one SemanticSegOfMultispectralImagesUsingDeepLearningExample is not accessible via Matlab. I even dont have the deeplearning_shared folder in the examples folder despite having the NN & Computer Vision Toolbox.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 5월 8일
This situation could occur if you were using a version before R2019a. The examples for the deep learning toolbox were moved in R2019a. You should consult the documentation for the version you are using for information on how to invoke the examples in your version.

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


Mary O'Connor
Mary O'Connor 2019년 4월 3일
I think this will solve the problem
%%
for i = 1:7
train_dataB(:,:,i) = train_data(i,:,:);
val_dataB(:,:,i) = val_data(i,:,:);
test_dataB(:,:,i) = test_data(i,:,:);
end
%% rename the data
train_data = train_dataB;
val_data = val_dataB;
test_data = test_dataB;
%% delete the duplicates
clear test_dataB;
clear val_dataB;
clear train_dataB
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 5월 8일
Not in this particular situation, No. The issue in this Question has to do with functions to download sample data sets.
Lilly
Lilly 2022년 9월 8일
Thanks! This worked for me for working through the example. I downloaded through the github repository then this code resolves reformatting the multispectral data for MATLAB.

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


laomo zhang
laomo zhang 2020년 1월 29일
How are you? manish kalburgi , I want to know if you have solved the question. Can you tell me how to solve it ? thank you very much!
  댓글 수: 3
laomo zhang
laomo zhang 2020년 1월 30일
Hi,thanks for your comments. I am using trial version of MATLAB R2019B. I am trying to run the example“Semantic Segmentation of Multispectral Images Using Deep Learning”,the URL of the example is“https://ww2.mathworks.cn/help/images/multispectral-semantic-segmentation-using-deep-learning.html
I can't run the downloadHamlinBeachMSIData helper function ,the mistake message is “'downloadHamlinBeachMSIData' 用于以下示例:
Code Generation for Semantic Segmentation Network by Using U-net
Semantic Segmentation of Multispectral Images Using Deep Learning”
Looking forward to your answer, thank you!
Walter Roberson
Walter Roberson 2020년 1월 30일
openExample('deeplearning_shared/SemanticSegOfMultispectralImagesUsingDeepLearningExample')
works for me in R2019b.
The original of the file is stored as examples/deeplearning_shared/main/downloadHamlinBeachMSIData.m relative to matlabroot()

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by