- Using a separate pre-trained network to annotate the images and export the annotations to JSON format.
- Using the COCO API for MATLAB as found here: coco API-MATLAB
Mask RCNN custom data training. Problem with JSON to mat conversion
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I will be really very grateful if somebody can help me here. I am stuck for more than 6 months :(
So, I am trying to train mask RCNN using custom data set. I am following the MATLAB Mask RCNN example here: https://www.mathworks.com/help/vision/ug/example-InstanceSegmentationUsingMaskRCNNDeepLearningExample.html#PerformInstanceSegmentationUsingMaskRCNNExample-1
I have used image labeler to annotate the images and then used this exportgtruthtoJSON program https://www.mathworks.com/help/vision/ug/export-ground-truth-object-to-custom-and-coco-json-files.html.
However, when I am using this as an input for the Mask RCNN, 'Extract the COCO annotations to MAT files using the unpackAnnotations helper function is not working'. The command window shows the processing is done. but in reatlity the 'annotations_unpacked' folder remains empty.
Please help, if you know how to solve this issue.
Thank you!
0 comentarios
Respuestas (1)
Debraj Maji
el 1 de Nov. de 2023
Hi @Sam
I see that you have labelled data from the COCO dataset as your ground truth using the Image Labeler and exported it to JSON file. You are then using it as an input to a masked RCNN network for training/inference.
As per the documentation, this is a limitation of the current Iimage Labeller as the JSON file exported by the “exportGroundTruthToJSON” helper function cannot be imported back into MATLAB as a ground truth object.
Possible solutions include:
You may go through the following MathWorks documentation link to learn more about exporting ground truth objects to custom and COCO JSON files:
1 comentario
Connor Seavers
el 24 de Oct. de 2024
Hi,
I have run into the same issue as Sam recently.
I have labeled my own data in the imageLabeler app and then followed the instructions from the "Export Ground Truth Object to Custom and COCO JSON Files" page to create a .json file with the proper COCO format. As far as I can tell, it matches the format of the JSON file provided with the Mask RCNN example. However, whenever I use the new JSON file as the input for Mask RCNN, it still fails to unpack the annotations into separate MAT files like it says it will.
Any help would be greatly appreciated.
Thanks.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!