Clear Filters
Clear Filters

Image labeller cannot save sessions

15 views (last 30 days)
Karl Mueller
Karl Mueller on 11 Jun 2024
Commented: Karl Mueller on 8 Jul 2024 at 2:08
Hello,
Image labeller is not saving sessions correctly. I discovered the problem after I had spent several hours annotating images and saved the session. When I tried reloading the session the next day it would not load.
Image labeller used to work because I used it to label 8000 images over several weeks and I was able to save the session.
I tried opening an old image labelling session and it worked.
When I save the previously working session with a new name and try and reopen the new session it gets this error:
Warning: While loading an object of class 'vision.internal.imageLabeler.tool.Session':
Too many input arguments.
> In vision.internal.imageLabeler.tool/ImageLabelerSessionManager/loadSession
In vision.internal.imageLabeler.tool/ImageLabelerTool/doLoadSession
In vision.internal.labeler.tool/LabelerTool/loadSession
In vision.internal.imageLabeler.tool.LabelTab
In vision.internal.uitools/NewAbstractTab2/protectOnDelete (line 112)
In vision.internal.imageLabeler.tool.LabelTab
In internal/Callback/execute (line 128)
In matlab.ui.internal.toolstrip.base/Action/PeerEventCallback (line 846)
In matlab.ui.internal.toolstrip.base.ActionInterface>@(event,data)PeerEventCallback(this,event,data) (line 57)
In hgfeval (line 62)
In javaaddlistener>cbBridge (line 52)
In javaaddlistener>@(o,e)cbBridge(o,e,response) (line 47)
Error using vision.internal.imageLabeler.tool.Session/importPixelLabelData
Undefined function 'resetIsPixelLabelChangedAll' for input arguments of type 'double'.
Warning: Error occurred while evaluating listener callback.
Nothing has changed with my installation. Why would this happen, and how can I fix it?
I have tried to uninstall and reinstall MATLAB with no effect.
Thanks.

Answers (1)

Akshat Dalal
Akshat Dalal on 28 Jun 2024 at 9:16
Hi Karl,
The error messages point to an issue while importing the Image data. This could potentially happen because the image data for the newly saved session is not in the same directory as the session. As far as I know, I don't think you can keep the two things separate as the image labeler session needs the raw image data.
Also, if the 'resetIsPixelLabelChangedAll' is your custom function, please ensure that there are not any other functions with the same name that might be shadowing this function. The import function might be using the nearest function with that name, which might be different from the intended, leading to incorrect results.
  1 Comment
Karl Mueller
Karl Mueller on 8 Jul 2024 at 2:08
Hi, and thanks for replying. The resetIsPixelLabelChangedAll is not a custom function, I assumed it was an internal function, in any case, no changes or new functions have been made, I am simply using the app.
As I mentioned, I can load an old session into the image labeller and access all the images with annotations, but if I save the session I cannot reopen it. The location of the images hasn't changed.
The only thing that has changed is I am now working from a different location than I was previously, but the PC is the same one I was using before.

Sign in to comment.

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!