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) raisesFileNotFoundError
.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
Built Distribution
Hashes for yolo2labelme-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979725f55675be7ca22630db24e663c583391ffd780c24b7b9012c758ce09604 |
|
MD5 | a831a99d4605c1639ed10659e82e5591 |
|
BLAKE2b-256 | 0c39b16c88263cf689c208d9ddf7f68c203270b34d8e03b0f99e5df34c6ad060 |