Skip to content

claudio9russo7/YolosegmentationtoCocosegmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yolo-segmentation-to-Coco-segmentation

This script is designed to convert YOLO segmentation annotations into COCO segmentation annotations.
It utilizes basic Python packages, including json, PIL, and os.

Requirements

To use this script, you need to specify:

The image directory
The annotation directory
The category types

Modes of Operation

The script can operate in two different modes, controlled by the variable singleormultiple in the creation_json_yolo_to_coco function:

"m" (multiple): Generates a separate JSON file for each image.
"s" (single): Creates a single JSON file containing annotations for all images.

About

This is a script useful to transform Yolo segmentation annotation in Coco segmentation annotation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages