How do I match an annotations.json file with their respective images from an image folder?
Ältere Kommentare anzeigen
I downloaded the TACO trash detection dataset with annotations.json file. I am trying to train a mask r-cnn to perform image segmenation on images to identify and locate litter in images. Does anyone know how to unpack the annotations so that I can begin training the network?
I have been following this document which does what I want but with a COCO dataset. https://uk.mathworks.com/help/deeplearning/ug/instance-segmentation-using-mask-rcnn.html
The image dataset and annotations.json file are available for download through this link: https://www.kaggle.com/kneroma/tacotrashdataset?select=data . The file is too large to post here.
2 Kommentare
Mahesh Taparia
am 3 Mär. 2022
Can you share a sample annotation file? It will be helpful.
Eoghan Mckay
am 3 Mär. 2022
Antworten (1)
Try this
js = jsondecode(fileread("annotations.json.txt")) % file extension was changed only for upload
% get info of first image
js.images{1}
1 Kommentar
Eoghan Mckay
am 7 Mär. 2022
Kategorien
Mehr zu Get Started with Statistics and Machine Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!