Skip to content

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.

License

Notifications You must be signed in to change notification settings

MehmetOKUYAR/Convert-Mask2Yolo

Repository files navigation

Convert-Mask2Yolo

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.

Görüntü Açıklaması


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.

Görsel 1 Görsel 2 Görsel 3


And now, your mask labels are ready to be trained in YOLO format.

Görüntü Açıklaması



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.

Görüntü Açıklaması

Paper

A new data label conversion algorithm for YOLO segmentation of medical images

A new deep learning-based GUI design and implementation for automatic detection of brain strokes with CT images

Note: We kindly ask you not to forget to reference your work. We wish you success and enjoyable work!

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages