Skip to main content

Intro

This tool is meant to help create a custom dataset by picking and choosing class names from pre-existing datasets.

Limitations

  • The dataset YAML file is expected to be called data.yaml
  • The 'path' variable in data.yaml is not processed. It is assumed that the dataset root path is the directory where data.yaml resides and all data is present already.
  • The script variable in data.yaml is not processed. Make sure all data is present.

Usage

If a path ends on data.yaml it will take that file into account. If a path doesn't end on /data.yaml it will recursevly look for all data.yaml files from that directory downards. e.g.

from YoloDatasetCustomizer import YoloDatasetCustomizer

ydc = YoloDatasetCustomizer(list_to_existing_datasets)
ydc.add([one_more_existing_dataset])

if ydc.create_new_dataset_for_class_names(set_of_wanted_class_names, optional_custom_path, optional_custom_name):
    print("All good")
else:
    print("Oh no.")

Run tests

The project uses uv. Install dependencies and run tests with:

uv run pytest

Lint & type-check

uv run ruff check src test
uv run mypy

Build project

Build the package

uv build

Publish to PyPI (still need twine)

uv pip install twine
uv run twine upload dist/\*

Download files

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

Source Distribution

yolodatasetcustomizer-0.3.0.tar.gz (85.3 kB view details)

Uploaded Source

Built Distribution

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

yolodatasetcustomizer-0.3.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file yolodatasetcustomizer-0.3.0.tar.gz.

File metadata

  • Download URL: yolodatasetcustomizer-0.3.0.tar.gz
  • Upload date:
  • Size: 85.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for yolodatasetcustomizer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 900f340b0b69fe0a171c6cbd2b2df49e9833f0dd566c0db7fd6c66082f0e1874
MD5 69d4917e84a38a3d83d2332f7a08e3cd
BLAKE2b-256 43fef2ab65b549173700c0821f38d16c0fd514b1bcc5f02243caf62dc2f70c72

See more details on using hashes here.

File details

Details for the file yolodatasetcustomizer-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yolodatasetcustomizer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8eefa94755aee70d57bacb540101a98c3b9ca07500bbdbc61d5321bdc447e99a
MD5 ab09b9607d6a681e84d766c95a18ef8d
BLAKE2b-256 1ab0cdda8de5a5e166f7853355f2e3b8646d0fe6d29fbd24c3846cf40af6b759

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page