Problem with segment anything model
조회 수: 13 (최근 30일)
이전 댓글 표시
Hi,
I would like to use the segment anything model that was released on 2024a and 2024b versions of matlab.
I have checked that all the necessary toolboxes (Image processing, Deep learning and Computer vision) were installed but I still have a problem when trying to run it (either through the segmentAnythingModel command; or through imsegsam; or through the image segmenter app).
The following error saying that the computer vision toolbox is missing appear:
Error using images.internal.sam.configureAndLoadSAM
Using Segment Anything Model is missing the following dependencies:
* Computer Vision Toolbox™
Install missing toolboxes:
* Computer Vision Toolbox™
Error in segmentAnythingModel (line 70)
data = images.internal.sam.configureAndLoadSAM();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I don't know what to do as the toolbox is clearly installed and up to date.
Thank you,
Anthony
댓글 수: 2
Jacob Mathew
2024년 11월 21일
편집: Jacob Mathew
2024년 11월 21일
Hey Anthony,
You can list the Add Ons installed in your MATLAB Installation using the following command:
matlab.addons.installedAddons
Could you share the output of the command in its entirety?
답변 (1개)
Jaimin
2024년 11월 25일
Hi @Anthony
It looks like you are facing a problem where MATLAB is not detecting the installed “Computer Vision Toolbox”, even though it's up to date. Here are some steps you can take to troubleshoot and resolve the issue:
Verify Installation: Double-check that the “Computer Vision Toolbox” is installed by typing the “ver” command in the MATLAB Command Window.
Check Licensing: Ensure your MATLAB license includes the “Computer Vision Toolbox” by verifying your licenses with command “license('test', 'Computer_Vision_Toolbox')”.
Update MATLAB Path: Sometimes, the MATLAB path might not be set correctly.
Reset it by executing:
restoredefaultpath;
rehash toolboxcache;
savepath;
Then restart MATLAB and try running your code again.
Reinstall the Toolbox: If the above steps don't resolve the issue, consider reinstalling the Computer Vision Toolbox:
- Go to the "Add-Ons" menu in MATLAB.
- Select "Manage Add-Ons."
- Uninstall the Computer Vision Toolbox and then reinstall it.
For more detailed guidance, please refer to the MathWorks Documentation.
If the issue continues, please reach out to MathWorks Technical Support for further assistance:
I hope this will be helpful.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!