Invalid entry in label data table for Scene labelType when using Image Labeler app?

I am using the Image Labeler App (Matlab R2017b) to label objects and classify scenes on a subset of image frames that I exported from a video. I completed labeling the set, but when I try to export it, I get the following error:
Error using vision.internal.labeler.validation.checkLabelData (line 100) Invalid entry in label data table for Scene labelType. Table entries for column 'Away' must be logical scalars.
In some frames, I applied multiple scene labels to the same image thinking that this may be useful information during transitions between scene types in the video. I think this may be the source of the problem, but couldn't find any documentation as to whether that is the case. Is there any way for me to export the scoring without having to go through it and change scenes with multiple labels to single label (if that is even the problem)? I have not modified code in any way, just trying to use the built-in App to export the data that I scored manually.

8 Comments

I'm facing the same problem, though I did not label an image with multiple scenes.
Did you manage to solve the issue?
Unfortunately no, I had to go back in and restrict ones that I had tagged with multiple labels to single labels, manually. I'm sure there is a better way--if I end up figuring something out I will report it here.
Hi Max,
Adding multiple scene labels to an image is supported.
I haven't been able to reproduce this issue. I probably haven't set up the labels exactly like you have them.
Could you attach a screen shot of the labeling app to capture the state of the app right before you get the error. I'll try to setup the app the same way you have it and try to reproduce again.
Also, could you save the label definitions (Save->Label Definitions) and attach that MAT-file here?
Thanks.
Hi Birju,
I've attached the screenshot and label definitions MAT-file. There are 1205 images in this particular session. If I didn't apply a label to one of the images, could this be the cause of the problem? If so, is there a fast way to identify images that have not had a scene definition applied?
Thanks, Max
Thanks Max.
Could you try out the attached patch? Here are the patch instructions:
1) cd to your MATLABROOT directory. You can use the 'matlabroot' command to find out what your MATLABROOT directory is.
2) Copy the attached zip file (patch_17b.zip) into the MATLABROOT directory.
3) Unzip the patch_17b.zip
4) Exit matlab and restart MATLAB, then execute 'rehash toolboxcache'
After that, you should let you export your ground truth data. Let me know if that fixes things for you.
Thanks, Birju
Thanks for the patch, and apologies about the delay on getting around to testing it. When I load the images and label definitions that I've used before, and assign multiple scenes, it lets me export the groundTruth object now.
It won't let me export the previous session that I had already created labels for, but as long as it works going forward that will be fine for me.
Thanks again for your help, Max
Hi Max,
Can you send me the previous session MAT-file?
I just ran into this error while using the image labeler app even though no images had more than one label. As far as I can tell the issue emerged after adding additional images to a loaded session since I had successfully exported that session before adding additional images. Installing the patch fixed the error.
Thanks, Kevin

Sign in to comment.

 Accepted Answer

This is a bug in R2017b.
The attached patch, scene_label_patch_17b.zip, patches this bug in R2017b. Apply the patch using the following instructions:
1) cd to your MATLABROOT directory. You can use the 'matlabroot' command to find out what your MATLABROOT directory is.
2) Copy the attached zip file (scene_label_patch_17b.zip) into the MATLABROOT directory.
3) Unzip the scene_label_patch_17b.zip
4) Exit matlab and restart MATLAB, then execute 'rehash toolboxcache'

1 Comment

Hey, I'm using R2019b and I still have this problem. Any suggestions what to do?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!