Skip to main content

No project description provided

Project description

LabelMe2Yolov7Segmentation

Downloads Stars

Convert LabelMe format into YoloV7 format for instance segmentation.

Instalation PyPI

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labelme2yolov7segmentation-2.0.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file labelme2yolov7segmentation-2.0.5.tar.gz.

File metadata

  • Download URL: labelme2yolov7segmentation-2.0.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1012-azure

File hashes

Hashes for labelme2yolov7segmentation-2.0.5.tar.gz
Algorithm Hash digest
SHA256 886523d32cb0dffadbf2d1fa91cf7b067ff5f0dfdbdd443fd608189fc7fa3ef1
MD5 fbd9f89f6489b83754f32987d6c7fd01
BLAKE2b-256 1584a021dd449b851a6052def7c9a1d16e9ba9fb724455e2e652bb4cf52e9e63

See more details on using hashes here.

File details

Details for the file labelme2yolov7segmentation-2.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for labelme2yolov7segmentation-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5fa7af05a35dc8bb7060828fc57ed9d9892848e775b8f43ca7390447f116517
MD5 b3483147cad4a6762773299fd39da13f
BLAKE2b-256 863d7f8e0aeea10b5e47ba52da57592f3caedd4b8dd254cc21becd407485b072

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page