LabelMe2Yolov7Segmentation
Convert LabelMe format into YoloV7 format for instance segmentation.
Instalation 
You can install labelme2yolov7segmentation from Pypi. It's going to install the library itself and its prerequisites as well.
pip install labelme2yolov7segmentation
You can install labelme2yolov7segmentation from its source code.
git clone https://github.com/Tlaloc-Es/labelme2yolov7segmentation.git
cd labelme2yolov7segmentation
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
Metadata
Release files for labelme2yolov7segmentation 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labelme2yolov7segmentation-2.0.5.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labelme2yolov7segmentation-2.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / labelme2yolov7segmentation-2.0.5.tar.gz
| Download URL | labelme2yolov7segmentation-2.0.5.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
886523d32cb0dffadbf2d1fa91cf7b067ff5f0dfdbdd443fd608189fc7fa3ef1
|
|
BLAKE2b-256 checksum How to use checksums |
1584a021dd449b851a6052def7c9a1d16e9ba9fb724455e2e652bb4cf52e9e63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure
|
Release files / labelme2yolov7segmentation-2.0.5-py3-none-any.whl
| Download URL | labelme2yolov7segmentation-2.0.5-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5fa7af05a35dc8bb7060828fc57ed9d9892848e775b8f43ca7390447f116517
|
|
BLAKE2b-256 checksum How to use checksums |
863d7f8e0aeea10b5e47ba52da57592f3caedd4b8dd254cc21becd407485b072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure
|