Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Python program that can convert Segmentation mask 1.1 to Yolov8 format.

NotificationsYou must be signed in to change notification settings

woodsj1206/Convert-Segmentation-Mask-1.1-To-Yolov8

Repository files navigation

This Python program converts task datasets exported as Segmentation mask 1.1 fromCVAT to YOLOv8 Instance Segmentation format.

Features

  • Handles multiple classes in a single image.
  • Saves labels in alabels folder.

Usage

  1. Run theSegmentationMaskToYolov8.py script.
  2. When prompted, enter the path of thelabelmap.txt file,SegmentationClass folder, andSegmentationObject folder.
  3. Labels will be saved as text files and stored in alabels folder.

Example Usage

Screenshot

Labelmap.txt

# label:color_rgb:parts:actionsbackground:0,0,0::dog:250,50,83::horse:255,204,51::human:42,125,209::

Example Image 1:

ScreenshotPhoto byPixabay from Pexels.

Resulting Images:

SegmentationClassSegmentationObject
ScreenshotScreenshot

Output:

Label Output
pexels-pixabay-162520.txt

Example Image 2:

ScreenshotPhoto byYaroslav Shuraev from Pexels.

Resulting Images:

SegmentationClassSegmentationObject
ScreenshotScreenshot

Output:

Label Output
pexels-yaroslav-shuraev-8499242.txt

Development Environment

  • IDE: Microsoft Visual Studio Community 2022
  • Language: Python 3.9

About

A Python program that can convert Segmentation mask 1.1 to Yolov8 format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp