Convert LabelMe format to yolov7 for segmentation.
Project description
LabelMe2Yolov7Segmentation
This repository was designed in order to label images using LabelMe and transform to YoloV7 format for instance segmentation
Instalation
pip install labelme2yolov7segmentation
Usage
First of all, make your dataset with LabelMe, after that call to the following command
labelme2yolo --source-path /labelme/dataset --output-path /another/path
The arguments are:
--source-path
: That indicates the path where are the json output of LabelMe and their images, both will have been in the same folder--output-path
: The path where you will save the converted files and a copy of the images following the yolov7 folder estructure
Expected output
If you execute the following command:
labelme2yolo --source-path /labelme/dataset --output-path /another/datasets
You will get something like this
datasets
├── images
│ ├── train
│ │ ├── img_1.jpg
│ │ ├── img_2.jpg
│ │ ├── img_3.jpg
│ │ ├── img_4.jpg
│ │ └── img_5.jpg
│ └── val
│ ├── img_6.jpg
│ └── img_7.jpg
├── labels
│ ├── train
│ │ ├── img_1.txt
│ │ ├── img_2.txt
│ │ ├── img_3.txt
│ │ ├── img_4.txt
│ │ └── img_5.txt
│ └── val
│ ├── img_6.txt
│ └── img_7.txt
├── labels.txt
├── test.txt
└── train.txt
Donation
If you want to contribute you can make a donation at https://www.buymeacoffee.com/tlaloc, thanks in advance
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for labelme2yolov7segmentation-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3347876efa64737620ced78defb6ade3672d21bf5ce5e73339fa0c631fcb4838 |
|
MD5 | 8e03e51f988a7063eb01932d7618ca42 |
|
BLAKE2b-256 | a540b8a5e87566d8804229e85807a0be43b4f9ddc353f5594506a160b706d10c |