필터 지우기
필터 지우기

Cannot compile app with Segment Anything Model SAM due to license?

조회 수: 19 (최근 30일)
Trong Lam
Trong Lam 2024년 8월 14일 22:04
댓글: Trong Lam 2024년 8월 18일 21:13
Hi,
I could not compile my app with SAM due to the following error.
Where can I find the specific LICENSE that states why and how SAM cannot be packaged?
Or am I misunderstanding anything about specifying parameters for packaging? I'm very new to compiling app in Matlab.
Thanks,
Lam
mcc -o v9 -W 'WinMain:v9,version=1.0' -T link:exe -d 'D:\OneDrive - ZeonCorporation\1.WORK\24_MatlabSAM\worked\v9\for_testing' -v 'D:\OneDrive - ZeonCorporation\1.WORK\24_MatlabSAM\worked\v9.m' -a 'D:\OneDrive - ZeonCorporation\1.WORK\24_MatlabSAM\worked\LICENSE' -a C:\ProgramData\MATLAB\SupportPackages\R2024a\toolbox\images\supportpackages\sam\data\preTrainedSAM.mat -a C:\ProgramData\MATLAB\SupportPackages\R2024a\toolbox\images\supportpackages\sam\+matlabshared\+supportpkg\+internal\+sppkglegacy\SAM.m -r 'C:\Program Files\MATLAB\R2024a\toolbox\compiler\packagingResources\default_icon.ico' -Z 'Deep Learning Toolbox Converter for ONNX Model Format'
Compiler version: 24.1 (R2024a)
Analyzing file dependencies.
Warning: Removed http proxy service credentials from preference settings.
Warning: In "C:\ProgramData\MATLAB\SupportPackages\R2024a\toolbox\images\supportpackages\sam\+matlabshared\+supportpkg\+internal\+sppkglegacy\SAM.m", "matlabshared.supportpkg.internal.sppkglegacy.SupportPackageRegistryPluginBase" are excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license. Either remove the file or function from your code, or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.
foundation::storage::vfs::Exception
mcc failed.

채택된 답변

Walter Roberson
Walter Roberson 2024년 8월 14일 22:24
Limitations
This function does not support parfor loops, as its performance is already optimized. (since R2023a)
Thus, it has a compiled internal implementation, and so is not suitable for code generation.
  댓글 수: 3
Walter Roberson
Walter Roberson 2024년 8월 15일 17:08
It means that it cannot be used whatsoever in a standalone program.
Trong Lam
Trong Lam 2024년 8월 18일 21:13
Thanks a lot. I got it now.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by