Skip to main content

Tool to convert yolo format dataset to labelme json format.

Project description

yolo2labelme

Tool to convert yolo format dataset to labelme json format.

Installation

pip install yolo2labelme

Usage

Arguments:

data : path to dataset directory

Keyword arguments:

out : path to output directory. Default dataset is created at same path as data_dir with name labelmeDataset.

skip : action to take if .txt file corresponding to image is not found.

  • False (default) raises FileNotFoundError.
  • print prints missing file path to stdout.
  • True or any other value skips file silently.

CLI Usage:

Following command creates labelme json dataset directory at path/to/yolo/labelmeDataset from path/to/yolo/dataset dataset directory.

yolo2labelme path/to/yolo/dataset

Specify output directory, skip.

yolo2labelme path/to/yoloDataset --out path/to/labelmeJsonDir --skip print

Python Usage:

from yolo2lableme import yolo2labelme
yolo2labelme('path/to/yolo/dataset')

With output directory and skip action

yolo2labelme('path/to/yolo/dataset','path/to/labelme/dataset',skip=True)

Or simply

from yolo2labelme import y2l
y2l('path/to/dataset')

Useful links

https://github.com/kadapallaNithin/yolo2labelme

https://pypi.org/project/yolo2labelme/

Lableme to yolo : https://pypi.org/project/labelme2yolo/

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

yolo2labelme-0.0.7.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

yolo2labelme-0.0.7-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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