Skip to main content

Convert DeepLabCut dataset to YOLO format

Project description

deeplabcut2yolo

Convert DeepLabCut dataset to YOLO format,
Lightning-fast and hassle-free.

License: GPL v3 PyPI version PyPI Downloads

deeplabcut2yolo facilitates training DeepLabCut datasets on YOLO models. Deeplabcut2yolo automatically converts DeepLabCut (DLC) labels to COCO-like format compatible with YOLO, while providing customizability for more advanced users, so you can spend your energy on what matters!

Quick Start

import deeplabcut2yolo as d2y

d2y.convert("./deeplabcut-dataset/")

# To also generate data.yml
d2y.convert(
    dataset_path,
    train_paths=train_paths,
    val_paths=val_paths,
    skeleton_symmetric_pairs=skeleton_symmetric_pairs,
    data_yml_path="data.yml",
    class_names=class_names,
    verbose=True,
)

To install deeplabcut2yolo using pip:

pip install deeplabcut2yolo

See examples in the examples/ directory.

Contribution

You can contribute to deeplabcut2yolo by making pull requests. Currently, these are high-priority features:

  • Testing module and test cases
  • Documentation

Citation

Citation is not required but is greatly appreciated. If this project helps you, please cite using the following APA-style reference

Pornsiriprasert, S. (2024). Deeplabcut2yolo: A Python Library for Converting DeepLabCut Dataset to YOLO Format (Version 2.1) [Computer software]. GitHub. https://github.com/p-sira/deeplabcut2yolo/

or this BibTeX entry.

@software{deeplabcut2yolo,
    author = {{Pornsiriprasert, S}},
    title = {Deeplabcut2yolo: A Python Library for Converting DeepLabCut Dataset to YOLO Format},
    url = {https://github.com/p-sira/deeplabcut2yolo/},
    version = {2.1},
    publisher = {GitHub},
    year = {2024},
    month = {11},
}

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

deeplabcut2yolo-2.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

deeplabcut2yolo-2.1-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file deeplabcut2yolo-2.1.tar.gz.

File metadata

  • Download URL: deeplabcut2yolo-2.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for deeplabcut2yolo-2.1.tar.gz
Algorithm Hash digest
SHA256 cd02a4f9addfdee6e738a543b0e3699c28be9052fba7ddc92a9f0f554f82d8ab
MD5 de511b3008d517f21830d9280169219e
BLAKE2b-256 58447c4b7cd69c6d0715a3f9ba9cfdaabda219b4ec831804aa4c97565e7fe5d1

See more details on using hashes here.

File details

Details for the file deeplabcut2yolo-2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for deeplabcut2yolo-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0d67330f4f6e1c61257d3c768ae814d46a6a91cefc3ba95436b69ccd4269bf
MD5 e15b7d4645f6b821e36fb36d21bd8109
BLAKE2b-256 e4de0029c50ed42c98f4389eb0c3a7a1ef48175a967ae593d4a556f1239a861f

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