Edit the labels in Ground Truth Image Labeler.

17 visualizaciones (últimos 30 días)
caesar
caesar el 12 de Feb. de 2020
Respondida: Md Shamim Hossain el 11 de Feb. de 2021
I had used the Ground Truth Image Labeler app before to label some images for pixel level segmentaion experiment using matlab 2018b. Now I am trying to edit those labels , for instance add another category to all of them but I am having a problem in loading them properly. good news is I still have the Images and the labels , bad news is I am confused with the gtruth mat file and how to recover the session . when I try to use Load>session> and choose the gTruth file I recieve this error message
' E:/ gTruth. mat' is not a valid Ground Truth Labeler session MAT file.
My questions are :
1- Can I recover the old session from Images+Labels only? or how van i creat a new session using those iamges and labels so i dont have to re-do all the labeling work again?
2- Can I use the same step above with different version of Matlab , say Matlab 2019B?
thanks

Respuesta aceptada

Raunak Gupta
Raunak Gupta el 17 de Feb. de 2020
Hi,
I assume you have done the labelling on one of the Ground Truth Labeler App or Image Labeler App in MATLAB R2018b. For importing the session or labels in R2019b and editing them, the labelling is required to be done in the same App you used on R2018b.
So, if the groundTruth is exported from Image Labeler App in R2018b it will only be get loaded in Image Labeler App in R2019b.
Although the labeled output object for both Apps is same that is groundTruth but since Ground Truth Labeler App is used for Video and Image Sequence Labeling, there will be an extra field in the label definition called Time for groundTruth generated from the Ground Truth Labeler App. Thus, loading the labels or session from Ground Truth Labeler app is not possible in Image Labeler App. Loading in the same App will not through any error.
Hope it helps.
  3 comentarios
Raunak Gupta
Raunak Gupta el 18 de Feb. de 2020
Hi,
While recreating the problem above I have noticed that the folder in which the images are stored is the one where PixelLabelData directory will be formed. Right now in
gTruth.DataSource
I see that Images are in ~\MATLAB\Refined\ directory whereas labels are in ~\MATLAB. From here I can understand that you may have copy-pasted the PixelLabelData folder outside the folder named 'Refined'. You may change the file path that are set accidentally using changeFilePaths. Make sure the Labels and images are on the path mentioned in the gTruth.DataSource & gTruth.LabelData.PixelLabelData .
Hope this resolve the query.
caesar
caesar el 19 de Feb. de 2020
Editada: caesar el 19 de Feb. de 2020
thank you Raunak Gupta ,
I updated both the images source and labels source and managed to load them all. that is a huge relief for now.

Iniciar sesión para comentar.

Más respuestas (1)

Md Shamim Hossain
Md Shamim Hossain el 11 de Feb. de 2021
Many Thanks Raunak Gupta. You really have saved my time....!!

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by