Skip to main content

echo1-coco-split

echo1-coco-split provides a faster, safer way to split coco formatted datasets into train, validation and test sets.

Installation & Use

# Install echo1-coco-split
pip install echo1-coco-split

# Run the coco-split
coco-split \
    --has_annotations \
    --valid_ratio .2 \
    --test_ratio .1 \
    --annotations_file ./annotations/instances_default.json

coco-split help

usage: coco-split [-h] --annotations_file ANNOTATIONS_FILE --valid_ratio VALID_RATIO --test_ratio
                  TEST_RATIO [--train_name TRAIN_NAME] [--valid_name VALID_NAME]
                  [--test_name TEST_NAME] [--has_annotations] [--seed SEED]

Splits a coco annotations file into a training, validation, and test set.

options:
  -h, --help            show this help message and exit
  --annotations_file ANNOTATIONS_FILE
                        Path to COCO annotations file.
  --valid_ratio VALID_RATIO
                        set valid dataset ratio
  --test_ratio TEST_RATIO
                        set test dataset ratio
  --train_name TRAIN_NAME
                        Where to store COCO training annotations
  --valid_name VALID_NAME
                        Where to store COCO valid annotations
  --test_name TEST_NAME
                        Where to store COCO test annotations
  --has_annotations     Ignore all images without annotations. Keep only these with at least one
                        annotation
  --seed SEED           set the seed generator

Metadata

Release files for echo1-coco-split 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for echo1-coco-split 0.1.5
File Size Uploaded
echo1-coco-split-0.1.5.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for echo1-coco-split 0.1.5
File Interpreter ABI Platform
echo1_coco_split-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / echo1-coco-split-0.1.5.tar.gz

Download URL echo1-coco-split-0.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9ddce1448cd500de79f1ad0eb6d68fbf116c9abd6e29bf6d7a3b1f783ea3117f
BLAKE2b-256 checksum
How to use checksums
f377e3e56c67b49411e2f4bc862a74ecb154236848505c0eed5da1b060678012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.1.0

Release files / echo1_coco_split-0.1.5-py3-none-any.whl

Download URL echo1_coco_split-0.1.5-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
951ae533c00df3a6199f532a613b779080c69d6b0c839c1d1650633df330d7f9
BLAKE2b-256 checksum
How to use checksums
4bd6acbedf1c0a66f51821e83c0fd3a5eb19c103e58e455f2b54f56a6cb0fa44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.1.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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