335 - Converting COCO JSON annotations to labeled mask images

preview_player
Показать описание
335 - Converting COCO JSON annotations to labeled masks

This video walks you through the process of converting COCO JSON annotations to labeled mask images. The four main parts of this video tutorial are:
1. Downloading data​
2. Opening the (large) JSON file in python to understand the data​
3. Visualizing a few annotations on respective images to confirm the quality of annotations​
4. Converting JSON annotations to labeled masks

Note that the dataset comes with: Creative Commons Attribution - NonCommercial 4.0 International Public License
In summary, you are good to use it for research purposes but for commercial
use you need to investigate whether trained models using this data must also comply with this license - it probably does apply to any derivative work so please be mindful.

You can directly download from the source github page. Links below.

If these links do not work, follow the instructions on their github page.
Рекомендации по теме
Комментарии
Автор

Hi Sreeni, I have found your channel recently. Your videos are awesome. They are helping me a lot and I would like to thankyou for that. Keep up the greet job.

fari
Автор

Thank you for very good tutorial. Could you make video on how to convert coco into multi class masks and train for image segmentation?

saqibqamar
Автор

Hey Sreeni, I've found your yt channel a few weeks ago and I really like your videos. I wanted to use your tutorial to convert the TimberSeg dataset into labeled mask images. Therefore I've tried your shared sourcecode and noticed, that objects consisting of multiple segmentations will be converted to multiple objects instead of a single object.
To fix this error I've moved the line "object_number += 1" from line 48 to line 43. In my opinion this shouldn't have any influence for the dataset that you have been using here and it works for objects consisting of multiple segmentations as well 🙂
Greetings from Germany

TheMatrixTony
Автор

Hi there,
Thanks for your videos. I followed the steps you suggested, but I'm still getting only black images when I convert from JSON to masks. I have a multiclass problem and I've also tried converting to PNG. I've spent hours trying to find a solution, but I haven't had any luck. I'd be really grateful if you could suggest a solution.

loaykatinah
Автор

Hello, thank you so much this has been very helpful🙏 I have a question, is this how the training labels for nnUnet should be like?

nadinemuhammad
Автор

Hey Sreeni - where are videos 333 and 334, what have I missed??😊

ramu
Автор

Thank you Dr. for your wonderful tutorial, i have an image that contains multiple classes, i used an apeer software to labels my image, after the labelling instead of getting a single mask with all the classes present in it, i having separate classes as masks, pls how can i convert them to a single mask

officialAbdul
Автор

Your videos are awesome!! I have a quick question
I have a dataset in which I have images-annotations of different pixel sizes (Eg - (1800, 4032), (2800, 3870) etc). In order to train the model I am dividing the images and annotations into sub-images to be used by the DL model for training. When I split the image into tiles, the annotations get distorted. Do you have any suggestions on what you think could be done?

puranjitsingh
Автор

is it COCO or LOCO json format, 4 semantic segmentation?

tektronix