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.1.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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vision_data_audit-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 14de6a934fa7ceaedbc04b7af41e54214812cc9a31a15e1f1a2583f870f5c40f
MD5 ca41e257f7cfe78abb82d3a850946300
BLAKE2b-256 e9e964248cba5a9dae6596da79e73bd9a0dedadc1bffcb39224889db29d1644d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vision_data_audit-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a36c78bf94ba26538c12f94bed5527dd2275bde3e51763679edf09f398d932
MD5 0fa16a5ea1d556ddb4f56efb7a9dee83
BLAKE2b-256 533515f32599aaf961955fa4cf2143102ea23f74b6d58acc87f3f12965eea908

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