The purpose of these studies is to handle cases where pre-prepared and collected projects have masks used for segmentation tasks. However, with the advent of architectures like YOLO, detection processes have been confronted with different label requirements. Consequently, an image processing-based algorithm has been developed to convert mask labels to the YOLO format.
This developed algorithm transforms mask labels used in previous segmentation tasks into a format compatible with YOLO's label requirements. As a result, pre-prepared datasets can be used with YOLO-like detection-focused architectures.
In conclusion, these studies enable compatibility between various detection architectures and label formats, allowing existing datasets and projects to be utilized with a wider range of detection algorithms. This, in turn, aims to achieve more effective and efficient solutions in the fields of computer vision and object detection.
The image above shows how it is converted from the mask format to the YOLO label format, as seen. The outputs will be as shown in the visual below.
And now, your mask labels are ready to be trained in YOLO format.
When you run the code with python3 main.py
you will be greeted with a window as shown below. Here, you will select the paths of your label files and assign their class IDs. After that, you will choose the destination path for saving the results. Once you start the program, your outputs will be saved in YOLO format at the specified location.
A new data label conversion algorithm for YOLO segmentation of medical images
Note: We kindly ask you not to forget to reference your work. We wish you success and enjoyable work!