Skip to main content

Quick audit of an image folder: formats, sizes, mean/std, duplicates.

Project description

vision-data-audit

Audit an image dataset folder in seconds. Get counts, stats, and duplicates.

What you get

  • Image formats (JPEG, PNG, etc.)
  • Color modes (RGB, grayscale, etc.)
  • Size distribution (width/height percentiles)
  • RGB mean/std (quick estimate for normalization)
  • Duplicate detection (perceptual hash)

Install

pip install vision-data-audit

Usage

Basic audit:

vision-data-audit /path/to/images

Save to JSON:

vision-data-audit /path/to/images --out report.json

Skip duplicates (faster):

vision-data-audit /path/to/images --no-dupes

Options

  • --out FILE - save report as JSON
  • --no-dupes - skip duplicate detection
  • --sample N - max images for mean/std (default: 200)

Python

from vision_data_audit.core import audit_folder

report = audit_folder(
    "/path/to/images",
    sample_images=200,
    hash_size=8,
    compute_dupes=True,
)

print(report["formats"])
print(report["width"], report["height"])
print(report["mean_std_rgb_approx"])

# Duplicate groups (if enabled)
print(report.get("duplicates_dhash", []))

Notes

  • Mean/std uses a random sample for speed
  • Duplicates found using perceptual hashing (dHash)

Help improve this

If you use this tool, please open a GitHub issue with:

  • the command you ran
  • the printed summary (or report.json with paths removed)
  • what you wish it reported (corrupt files? split leakage? near-duplicates?)

Ideas on the roadmap:

  • near-duplicate grouping by Hamming distance threshold
  • train/val/test leakage detection across subfolders
  • faster mean/std computation (vectorized)

Development

uv sync
uv run vision-data-audit --help
uv run pytest
uv build

License

Apache-2.0

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

vision_data_audit-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

vision_data_audit-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file vision_data_audit-0.1.2.tar.gz.

File metadata

  • Download URL: vision_data_audit-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_data_audit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d76882150e3313da60f3bff82a8125e78108ca7e747516c2aa042e8da9571eae
MD5 e87338740d9870fde67c9e6b460cee60
BLAKE2b-256 c199fc1a4718187234cbda5cd49d79522f97b91298d8c3b01dfbce7e7aa61a0f

See more details on using hashes here.

File details

Details for the file vision_data_audit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vision_data_audit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_data_audit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5c241b473a66aa43149e63f1ed899ddff05cb7e67edd190c7f7805fbc4d34f3
MD5 823a6b99a26eedf25745bb0cd1eba48e
BLAKE2b-256 4df41f03e642a292e8f5f7a56674e43e9ed85686d5c82d550803d7940cca7d41

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