Skip to main content

Convert DeepLabCut dataset to YOLO format

Project description

deeplabcut2yolo

Convert DLC to YOLO,
Lightning-fast and hassle-free.

License: GPL v3 PyPI Package Version Package Total Downloads Documentation

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!

Results from d2y All DeepLabCut datasets belong to their respective owner under CC BY-NC 4.0. This particular image is the training data for YOLO, converted using deeplabcut2yolo from the Tri-Mouse dataset (Lauer et al., 2022).

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

For more information, see examples and documentation.

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. (2025). Deeplabcut2yolo: A Python Library for Converting DeepLabCut Dataset to YOLO Format (Version 2.2.4) [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.2.4},
    publisher = {GitHub},
    year = {2025},
    month = {1},
}

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.2.4.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deeplabcut2yolo-2.2.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deeplabcut2yolo-2.2.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for deeplabcut2yolo-2.2.4.tar.gz
Algorithm Hash digest
SHA256 2d9745e877710820e391426a067ead05172011a29d9ac98afcd6dbe56500f5c9
MD5 5d1b0baaa022fd38ffaf0f1df41d4efe
BLAKE2b-256 ccbaa39ce50064502e027790475cd72eaa89d746951b705ce641e992d8a0d2c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deeplabcut2yolo-2.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ced434a0d496065bedc4a529cc4cc3593504858b6b07c9fbce769a58e92824f
MD5 e650a46a65c4c17adb73e8440fc30e0e
BLAKE2b-256 267f380608d0e9f3282b2a37cca455b45059e806e50437d4b61f7b8a80981fd2

See more details on using hashes here.

Supported by

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