import data problem for training faster rcnn

1 view (last 30 days)
ahmad
ahmad on 13 Dec 2023
Answered: Githin George on 18 Dec 2023
i am tring to train my faster rccn on custom data attached ( images with there bounding boxes in .txt) but i can able to to it.kinly help me .
note:
i have multible images with ther .txt file
  4 Comments
Ganesh
Ganesh on 13 Dec 2023
Hi,
Have you gone through the documentation for the structure of data to train Faster RCNN? The way I see it, you claim to have multiple images for the first column, you seem to have data on the bounding boxes for the second column, and the dataset should contain a label. Please refer to this document https://in.mathworks.com/help/vision/ref/trainfasterrcnnobjectdetector.html#bvkk009-1-trainingData:~:text=trainingData%20%E2%80%94%20Labeled%20ground%20truth
Kindly reach out if you have any challenges in structuring your dataset
ahmad
ahmad on 13 Dec 2023
Edited: ahmad on 13 Dec 2023
Yes I have gone through it . But how can I load data from desktop and convert it into.mat formet that look like this groundTruth with properties: DataSource: [1×1 groundTruthDataSource] LabelDefinitions: [5×5 table] LabelData: [55×5 table]

Sign in to comment.

Answers (1)

Githin George
Githin George on 18 Dec 2023
Hello Ahmad,
It is my understanding that you are trying to train a faster R-CNN network and would like to create a MATLAB “groundTruth” object for the same.
The “groundTruth” object is meant for use with the various “Labeler apps” available in MATLAB. You can programmatically create a “groundTruth” object or use a labeling app like the “Image Labeler App” to create labels and export them to the workspace or a file. Even though this object contains all the label information it cannot be used directly to train a faster R-CNN network as the input to the “trainFasterRCNNObjectDetector” function must be a table or datastore object. The data can be extracted from the object and used as inputs to the training function.
Please look at below documentation links related to the “groundTruth” object, and “trainFasterRCNNObjectDetector” function for more details.
I hope this helps.

Community Treasure Hunt

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

Start Hunting!