A tool to convert LabelMe dataset annotations into YOLO format for instance segmentation.
Project description
LabelMe to Yolo
Convert LabelMe format into YoloV7 format for instance segmentation.
Installation 
You can install labelme2yolo from Pypi. It's going to install the library itself and its prerequisites as well.
pip install labelme2yolo
You can install labelme2yolo from its source code.
git clone https://github.com/Tlaloc-Es/labelme-to-yolo.git
cd labelme2yolo
pip install -e .
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labelme_to_yolo-0.1.0.tar.gz.
File metadata
- Download URL: labelme_to_yolo-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35a7141b02c26947234d50665d37d6cdf1e44e86d47680b15d350281206653a5
|
|
| MD5 |
ec4b35ec4f7b4d47fe8c67fbe317799d
|
|
| BLAKE2b-256 |
31b828d86715cafd049f964f74cc08d780940572c392bca0222bbc6c527f93c2
|
File details
Details for the file labelme_to_yolo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: labelme_to_yolo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fe7bc9f88a5214197045dd310588f6e9ee7d2cd07c39e9a8f28bca080197ccd
|
|
| MD5 |
9b25d21d4bbfc2304f45cddc8ded1caa
|
|
| BLAKE2b-256 |
f9f9e2f438d52aa44a7bbefb62007fccc3d0a0166e8cae6b314c20b969bf2b41
|